How do I resolve a CLR Object Error on a workstation using Microsoft Dynamics AX?
Overview
When entering an order entry, calculating tax, confirming a sales order, processing a packing slip, or posting an invoice in Microsoft Dynamics AX, you get this error:
"CLRObject Error (Posting Clr object is not initialized; Posting Object 'CLRObject' could not be created; or Posting Could not load file or assembly 'Avalara.AvaTax.Adapter, Version=xx.x.x.x, Culture=neutral, PublicKeyToken=34e4ef76d6267205' or one of its dependencies. The system cannot find the file specified.)"
Environment
Microsoft Dynamics AX
Resolution
- This error indicates the Avalara.AvaTax.Adapter.dll and Avalara.AvaTax.Adapter.dll.config files are missing
- Reinstall AvaTax for Microsoft Dynamics AX on the workstation
- Make sure you are using the installer version for the AvaTax connector in use
- Find your current version number on the AvaTax tab at Administration > AvaTax > Setup > Configuration Settings
- Or, obtain the files from a machine where the issue is not present
- Copy the Avalara.AvaTax.Adapter.dll and Avalara.AvaTax.Adapter.dll.config files
- Paste them in the C:\Program Files\Microsoft Dynamics AX\50\Client\Bin folder on the workstation with the error
- Reinstall AvaTax for Microsoft Dynamics AX on the workstation
Note: On a 64-bit workstation the path will be C:\Program Files (x86)\ and not C:\Program Files\ and it may be necessary to run the application as administrator in 64 bit environments after the initial registration to get a successful test connection.
Next steps
For more information, review the Microsoft Dynamics AX 2012 user guide.