
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
