Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Unanswered

Retail SDK Pipeline Error Copying RetailDeployablePackage.zip

Posted on by Microsoft Employee

Hello community,

We have a pipeline created to generate the RetailDeployablePackage.zip in Azure Devops, however, we are receiving an error in the PowerShell step that copy the final RetailDeployablePackage of the build to the ArtifactStagingDirectory, we are following thhis official documentation on the creation of the pipeline:

docs.microsoft.com/.../sdk-build-pipeline


The explicit error is:

Copy-Item : Cannot find path 'D:\a\1\s\RetailSDK\Packages\RetailDeployablePackage\RetailDeployablePackage.zip' because
it does not exist.

Even if the Build of the SDK is OK (without errors),the RetailDeployablePackage.zip file is not created for the MSBuild step.

If we compile the same Retail SDK thru command line (msbuild /p:Configuration=Release) the end result of this command is the creation of the .zip file, but in the pipeline is not happening the same...

Any suggestion?
Thanks

pastedimage1621986117025v1.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retail SDK Pipeline Error Copying RetailDeployablePackage.zip

    Hello Juliet,

    We finally found the error: In the official documentation the path to copy the .zip package is as following:

    # Script to copy the Retail deployable package with Build number.

       Copy-Item "$(Build.SourcesDirectory)\RetailSDK\Packages\RetailDeployablePackage\RetailDeployablePackage.zip" -Destination

       "$(Build.ArtifactStagingDirectory)\RetailDeployablePackage_$(Build.BuildNumber).zip"

    But in fact is not necessary to have the folder root of the SDK in the path (RetailSDK Folder), so to avoid this issue the command should be:

    Copy-Item "$(Build.SourcesDirectory)\Packages\RetailDeployablePackage\RetailDeployablePackage.zip" -Destination

       "$(Build.ArtifactStagingDirectory)\RetailDeployablePackage_$(Build.BuildNumber).zip"

    Thank you for your support!

  • Juliet Zhu Profile Picture
    Juliet Zhu on at
    RE: Retail SDK Pipeline Error Copying RetailDeployablePackage.zip

    Hi Diego,

    Suggest you open a support ticket to Microsoft Support and ask for help.

    Thanks,

    Juliet Zhu 

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans