web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Release Pipelines -[error]Leaf path not found: 'D:\a\r1\a\_Unified Operations platform - Build TEST\Packages\AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip' - in upload to LCS step

(0) ShareShare
ReportReport
Posted on by 35

Hi,

I have created release pipeline and during the upload to LCS Asset steps , I am facing the below issue .

[error]Leaf path not found: 'D:\a\r1\a\_Unified Operations platform - Build TEST\Packages\AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip'

Please find my build and release pipeline details.

Build pipeline details:

Default Pipeline , I have changed only the Branch path .

pastedimage1611596887613v3.png

Artifacts are successfully via Build pipeline.

pastedimage1611597078981v4.png 

Release pipeline details 

pastedimage1611596727241v2.png

iniline code for rename deployableRuntime zip file name.


$PackgesFolder="$(System.DefaultWorkingDirectory)/_Unified Operations platform - Build TEST-License/Packages"

$TargetName="$(Release.ReleaseName)"

if ((Test-Path -Path $PackgesFolder) -eq $true)

{

Get-ChildItem $PackgesFolder -Filter AXDeployableRuntime*.zip |

Foreach-Object {

Rename-Item -Path $_.FullName -NewName "$TargetName.zip"

}

}

pastedimage1611597244629v5.png

pastedimage1611597445464v7.png

Please guide me , Is there task do I need to change?

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi sabarni,

    According to the last screenshot "Rename AxDeployableRuntime*.zip" is not executed in the pipeline. Is it enabled?

  • sabarni Profile Picture
    35 on at

    Hi Sergei ,

    yes It is enabled .

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi sabarni,

    Check also Download artifact logs. Do you see if something was downloaded from artifacts?

  • sabarni Profile Picture
    35 on at

    Hi Sergei,

    Please check the download artifact packages step Log file.

    2021-01-25T18:50:27.2576420Z ##[section]Starting: Download artifact - _Unified Operations platform - Build TEST-License - Packages

    2021-01-25T18:50:27.3777868Z ==============================================================================

    2021-01-25T18:50:27.3778532Z Task         : Download build artifacts

    2021-01-25T18:50:27.3780002Z Description  : Download files that were saved as artifacts of a completed build

    2021-01-25T18:50:27.3780303Z Version      : 0.178.0

    2021-01-25T18:50:27.3780717Z Author       : Microsoft Corporation

    2021-01-25T18:50:27.3781772Z Help         : docs.microsoft.com/.../download-build-artifacts

    2021-01-25T18:50:27.3782496Z ==============================================================================

    2021-01-25T18:50:28.6872549Z Downloading artifacts for build: 12

    2021-01-25T18:50:29.5783988Z Downloading items from container resource #/13122847/Packages

    2021-01-25T18:50:29.5784553Z Downloading artifact Packages from: dev.azure.com/.../13122847

    2021-01-25T18:50:29.5798342Z Downloading Packages/AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip to D:\a\r1\a\_Unified Operations platform - Build TEST-License\Packages\AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip

    2021-01-25T18:50:29.5799337Z Downloaded Packages/AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip to D:\a\r1\a\_Unified Operations platform - Build TEST-License\Packages\AXDeployableRuntime_7.0.5816.35672_2021.1.25.2.zip

    2021-01-25T18:50:29.5808500Z Downloading Packages/AXModelSource_7.0.5816.35672_2021.1.25.2.zip to D:\a\r1\a\_Unified Operations platform - Build TEST-License\Packages\AXModelSource_7.0.5816.35672_2021.1.25.2.zip

    2021-01-25T18:50:29.5809234Z Downloaded Packages/AXModelSource_7.0.5816.35672_2021.1.25.2.zip to D:\a\r1\a\_Unified Operations platform - Build TEST-License\Packages\AXModelSource_7.0.5816.35672_2021.1.25.2.zip

    2021-01-25T18:50:29.8065972Z Total Files: 2, Processed: 2, Skipped: 0, Failed: 0, Download time: 1.008 secs, Download size: 1.684MB

    2021-01-25T18:50:29.8322240Z Successfully downloaded artifacts to D:\a\r1\a/_Unified Operations platform - Build TEST-License/

    2021-01-25T18:50:29.8357019Z ##[section]Finishing: Download artifact - _Unified Operations platform - Build TEST-License - Packages

  • sabarni Profile Picture
    35 on at

    Hi Nikolaos,

    I already checked the discussion. Did not find the solution for this issue.

  • Verified answer
    Joris dG Profile Picture
    17,775 on at

    As Sergei mentioned, your screenshot of the log does not show the PowerShell is in the list of tasks. The screenshot appears to be from a different pipeline or different phase in your pipeline? So make sure it actually renamed it: ensure the powershell is executed, and make sure it actually renamed/found the file.

    On the flipside, you're renaming it to the release name, but your upload is complaining it can't find the original filename (see title of this post).

    Again, are you running a different pipeline than the one you added the powershell to?

  • sabarni Profile Picture
    35 on at

    Hi Joris and Sergei ,

    You both are correct. Initially ,I was not added the Rename AXDeployableRuntime*.zip PowerShell task to my release pipeline. When I get the leaf error then I have added the task. May be somehow it was not deploying properly .Today I have created a fresh new release pipeline and copy the same steps and now I am able to upload the package to LCS asset library.

    Thanks for your guidance.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 533 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans