During the Deployment of the Demand Forecasting license in your D365 F&O for Release 10.0.X  via the command line or via LCS and you may receive an error similar to this: "Failed to Import license" with an preceding error  message "System.NullReferenceException: Object reference not set to an instance of an object."


Which may appear similar to the error shown below.



In D365 Finance & Operations Release 10.0.X, there is a separate executable used by the Microsoft.Dynamics.AX.Deployment.Setup.exe process when deploying ISV licenses such as one we provide with Demand Forecasting.


If you get this license deployment error, and cannot see any reason for the error, then find and rename the executable, which is in the same folder as the Microsoft.Dynamics.AX.Deployment.Setup.exe that is named "Microsoft.Dynamics.AX.ImportLicense.Setup.exe".

Rename it - do not delete it, to something like:

Microsoft.Dynamics.AX.ImportLicense.Setup.exe.Org 

Then retry the import process - the ISV license should deploy correctly.


For most sites, you will not experience this issue. However, if you do, this may be a quick workaround you can try.

If you do rename the executable, remember to rename it back when you have finished.


It is expected that for D365 F&O Release 10.0.11 and later public releases that this issue will be corrected.