AX / D365FO – How To : Package creation failed. Netmodule File Missing Error in 10.0.31.

Did you just update your D365FO release to 10.0.31 and encountered errors while deploying the package?

Something like that :

Error occurred.
Package creation failed.
missing:Dynamics.AX.OTSModel.5.netmodule, 
Error occurred.
Package creation failed.
At line:1 char:1
Error occurred.
Package creation failed.
+ C:\AOSService\PackagesLocalDirectory\Bin\RunPackageCreationAll.ps1 -p ...
Error occurred.
Package creation failed.

This is because Microsoft added some additional logic to the CreatePackage.psm1 file (located in your AosService\PackagesLocalDirectory\bin folder).

This logic is basically checking for ‘orphaned’ netmodule files within your solution.

To solve the issue just delete all the contents of the Model Bin folder and redo the Deploy

The files will be recreated during the deploy

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s