When I try to create a deployable package for a custom model by connecting the UDE environment to the local VS, I am facing the following error. Could you please help with this:
Note: Creating a package for standard models is working fine.
Building models...
Building models succeeded
Creating package...
Starting creation of x++ package 'MyModel'
Importing metadata assemblies
Getting x++ dependencies
Getting dependencies for package 'MyModel' with type 'run'
Creating nuspec for package 'MyModel' with package id 'dynamicsax-mymodel' at directory 'C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel'
Placing nuspec file at: C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel\dynamicsax-mymodel.nuspec
Set requireLicenseAcceptance 'false'
Set description 'The package of dynamicsax-mymodel.'
Set summary 'MyModel'
Set title 'Dynamics 365 Unified Operations: dynamicsax-mymodel package'
Set tags 'admin CompatibleWithSealedRelease'
Set copyright '2015 Microsoft Corporation'
Setting dependencies 'System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[] System.String[]' for package 'MyModel'
Found dependency dynamicsax-applicationcommon
Added depdendency 'dynamicsax-applicationcommon'
Found dependency dynamicsax-applicationfoundation
Added depdendency 'dynamicsax-applicationfoundation'
Found dependency dynamicsax-applicationplatform
Added depdendency 'dynamicsax-applicationplatform'
Found dependency dynamicsax-applicationsuite
Added depdendency 'dynamicsax-applicationsuite'
Found dependency dynamicsax-calendar
Added depdendency 'dynamicsax-calendar'
Found dependency dynamicsax-contactperson
Added depdendency 'dynamicsax-contactperson'
Found dependency dynamicsax-currency
Added depdendency 'dynamicsax-currency'
Found dependency dynamicsax-directory
Added depdendency 'dynamicsax-directory'
Found dependency dynamicsax-fiscalbooks
Added depdendency 'dynamicsax-fiscalbooks'
Found dependency dynamicsax-personnel
Added depdendency 'dynamicsax-personnel'
Found dependency dynamicsax-sourcedocumentation
Added depdendency 'dynamicsax-sourcedocumentation'
Found dependency dynamicsax-sourcedocumentationtypes
Added depdendency 'dynamicsax-sourcedocumentationtypes'
Found dependency dynamicsax-tax
Added depdendency 'dynamicsax-tax'
Found dependency dynamicsax-unitofmeasure
Added depdendency 'dynamicsax-unitofmeasure'
Found dependency dynamicsax-framework-staticmetadata
Added depdendency 'dynamicsax-framework-staticmetadata '
Finished creation of nuspec file C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel\dynamicsax-mymodel.nuspec'
Copying script file from C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\InstallPackage.ps1 to C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel\tools\InstallPackage.ps1
Copying script file from C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\UninstallPackage.ps1 to C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel\tools\UninstallPackage.ps1
Copying script file from C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\dynamicspackagemanagement.psm1 to C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel\tools\dynamicspackagemanagement.psm1
Preparing package files C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\RuntimeSymLinks\xppconfig_c1b5f\MyModel, MyModel, C:\Users\GUNAPANDI\Downloads\deh3023p.bn0, C:\DynamicsTools\7za.exe, dynamicsax-mymodel
Finished prepare package files
Switching to directory 'C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel'
Calling:& nuget.exe -ArgumentList pack dynamicsax-mymodel.nuspec -NoPackageAnalysis -NoNewWindow -Wait
Calling: nuget.exe dynamicsax-mymodel.nuspec exit unexpected. Retry once more. This command cannot be run due to the error: The system cannot find the file specified..
Calling: nuget.exe dynamicsax-mymodel.nuspec exit unexpected. Retry once more. This command cannot be run due to the error: The system cannot find the file specified..
Cleaning up directory C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel
Remove-Item : Cannot remove the item at 'C:\Users\GUNAPANDI\AppData\Local\Temp\MyModel' because it is in use.
At
C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\CreatePackage.psm1:294
char:13
+ Remove-Item $packageDirectory -Force -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Remove-Item], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RemoveItemCommand
C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\RunPackageCreationAll.ps
1 : Calling: nuget.exe dynamicsax-mymodel.nuspec failed after retries. This command cannot be run due to the error: The
system cannot find the file specified..
At line:1 char:1
+ C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\P ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,RunPackageCreationAll.ps1
Calling: nuget.exe dynamicsax-mymodel.nuspec failed after retries. This command cannot be run due to the error: The system
cannot find the file specified..
At
C:\Users\GUNAPANDI\AppData\Local\Microsoft\Dynamics365\10.0.2345.71\PackagesLocalDirectory\Bin\CreatePackage.psm1:719
char:17
+ ... throw "Calling: $nugetLocation $packageId.nuspec failed a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Calling: nuget....ile specified..:String) [], RuntimeException
+ FullyQualifiedErrorId : Calling: nuget.exe dynamicsax-mymodel.nuspec failed after retries. This command cannot be ru
n due to the error: The system cannot find the file specified..
Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
It sounds to me like if nuget.exe itself can't be found.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.