Friday, July 3, 2015

Dynamics AX Retail Essenetials Error: 'Could not find a part of the path 'C:\DemoFiles\Retail\Accouting export\...'

If you are using or exploring the new Retail Essentials configuration (basically AX 2012 R3's Retail components geared towards the SMB market), you'll notice that there is no AX GL and the accounting needs to be exported out to an external system.

When clicking the 'Export account activity' menu item after generating the account activity, you may see the error 'Could not find a part of the path 'C:\DemoFiles\Retail\Accounting export\...xml' (below in Figure 1)

Likely, this would occur for someone who is testing the new functionality of Retail Essentials while still using full blown AX in the backend. There is a configuration key for Retail Essentials which is checked to enable the SMB functionality. This config key, when enabled will let you see a new setup in the REtail Parameters form for account exports.

The error is because this 'hidden' setup in full blown AX is looking for a folder location that doesn't exist. To fix it you can 1) add a folder called 'accounting export' in the C:\DemoFiles\Retail folder location or 2) unhide the parameter and specify your own location. The first is preferred but based on demo requirements, you may need to do #2.

Option #1
Add a folder called 'Accounting export' in the C:\DemoFiles\Retail folder location. See Figure 3 below. done!

Option #2
WARNING: This is for non-prod use only and is not warranted by me. The sole purpose is helping to get AX professionals up to speed with the Retail Essentials product for evaluation purposes.

 I was going to post pictures of the code flow but I'd rather not enable people with ammunition for doing things they likely shouldn't so I won't post it here.

If you need to get past it for testing, comment out lines 25-28 in Retail Parameters form init method. If you don't know what I'm saying, you shouldn't be touching it :-) those who do, you should be all set with what you see in Figure 4 below.


Figure 1 - The error during account export
 
Figure 2 - missing Accounting Export between Posing and Product Creation Page
 
Figure 3 - The accounting export folder added to the right spot
 
Figure 4 - The newly added accounting export retail parameter tab
 
 
Figure 4 - the missing folder for accounting export