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, ...
Suggested Answer

Error while deploying package using release pipeline

(0) ShareShare
ReportReport
Posted on by 230

Hi All,

 I am trying to deploy package using release pipeline I am getting this error.

1050.JPG

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Krishnendu,

    What version of AX are you using? Could you please tell us regarding the deployment process you have at present?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Krishnendu,

    Has it worked before? What is the version of the deploy task are you using? (there is new version 1.* available). Are Environment Id and project Id set up correctly for deploy task?

  • Krishnendu Profile Picture
    230 on at

    It dint work b4....env and project is are correct...package upload to lcs is passed ...deployment have failed.

    shall I use task version 1 or 0? I am using 0

  • Krishnendu Profile Picture
    230 on at

    i am getting if I am using task "0"  : Error '' in request to deploy file asset: 'The request is invalid.'

    and API Call returned BadRequest: Bad Request for task "2"

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Krishnendu,

    Could you, please, share parameters for upload and deploy step? I'm interested in assetId variable. Did you set up it correctly? You can check the assetId value in upload step and it should be the same in deploy step.

    Deploy task 1.* is needed if you deploy package to sandbox on self- service architecture.

  • Krishnendu Profile Picture
    230 on at

    Hi Sergei,

    Thanks for your response,,,

    It deployed successfully, the problem  was assetid wasn't passed ..had to use a variable to pass assetid.

    Deploy task 1 can be used for both architecture,  task 0 supports only old Build VM architechture.

    twitter.com/.../1301415519208128512

    Thanks

    Krishnendu

  • sabarni Profile Picture
    35 on at

    Hi Krishnedu,

    How did you resolved the issue? I am also facing the same error while deploying the package to the UAT environment.

    In my release pipeline I have given the reference name as (Upload) in output variables section in Upload to asset library pipeline steps. I have passed $(Upload.FileAssetId) value in Lcs file asset id field of Dynamics Lifecycle Services (LCS) Asset Deployment task . Also I am using Task version (1*).

    I am able to upload the asset in LCS via pipeline but deployment is not happening due to API  bad request.

    Please let me know where I am missing the steps.

    Error log :

    2021-02-06T07:56:36.5799070Z Task         : Dynamics Lifecycle Services (LCS) Asset Deployment

    2021-02-06T07:56:36.5799442Z Description  : Task to deploy assets from the LCS asset library to an environment

    2021-02-06T07:56:36.5799769Z Version      : 1.1.73

    2021-02-06T07:56:36.5800008Z Author       : Microsoft Corporation

    2021-02-06T07:56:36.5801135Z Help         : Review the Dynamics 365 for Finance and Operations [Developer Documentation](go.microsoft.com/.../

    2021-02-06T07:56:36.5801692Z ==============================================================================

    2021-02-06T07:56:50.6315081Z ##[warning]The names of some imported commands from the module 'AzureRM.Websites' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    2021-02-06T07:56:50.6392216Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    2021-02-06T07:56:50.6797636Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    2021-02-06T07:56:50.6928206Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    2021-02-06T07:56:50.6939033Z ##[warning]The names of some imported commands from the module 'LifecycleServices' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

    2021-02-06T07:56:50.7387922Z Deploying asset '$(Upload.FileAssetId)' to environment '3e265815-4585-4c31-b469-a9f02b0905a1' of project '1598003'

    2021-02-06T07:56:50.7428675Z Authenticating with AAD on login.microsoftonline.com/.../oauth2 for API lcsapi.lcs.dynamics.com

    2021-02-06T07:56:53.3912312Z Start deployment V2

    2021-02-06T07:56:54.1244646Z ##[error]API Call returned BadRequest: Bad Request

    2021-02-06T07:56:54.2143400Z ##[section]Finishing: Deploy to environment Sandbox

    Thanks in advance.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi sabarni,

    According to your logs variable $(Upload.FileAssetId) can't be resolved. Most likely you have an issue in Upload task with the output variable. Are you using brackets (Upload) or not Upload? You should not.

    There is also a name of the output variable under Variables list section

    6138.pastedimage1612601217535v1.png

  • geminikartik Profile Picture
    241 on at

    Hi Sabarni,

    Were you able to solve your issue?

  • sabarni Profile Picture
    35 on at

    Yes Kartik, my release pipeline is working fine.Let me know if you need any 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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans