Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Problem with Power Platform Pipelines

(0) ShareShare
ReportReport
Posted on by 12

Hello,
I did a run of Power Platform Pipelines, but the deployment crashed:

JnanaAgni_0-1686905619914.png

But despite of it crashing, solution was at least partially migrated to the Test Env:

JnanaAgni_1-1686905672333.png

Solution duplicated with _Upgrade added to its name. For 19h now.
I cannot delete it because i get an error, and cannot start another Pipelines deployment, because I get the message that another upgrade is pending.
Do you have any ideas how to solve this?

 

 

Categories:
  • FatihDagdelen Profile Picture
    53 on at
    Re: Problem with Power Platform Pipelines

    Hi,

    Unfortunately I didnt understand your solution. If possible can you explain again. 🙂 Many thanks!

  • Geeks_D Profile Picture
    1,169 on at
    Re: Problem with Power Platform Pipelines

    I managed to remove the old solution by using a previous solution artifcat that was deployed successfully 

    If you are using Deployment Pipelines you can go into the history and look for an old solution export the solution 
    Change the version number to allow for upgrade in the solution Zip files
    Import the solution manually as an upgrade, after a successful import, you can then delete the solution 
    This fixed the problem for me 

  • westerdaled Profile Picture
    616 on at
    Re: Problem with Power Platform Pipelines

    I am having the same issue - effectively blocked from progressing? Did you find a way to remove the old solution?

  • Geeks_D Profile Picture
    1,169 on at
    Re: Problem with Power Platform Pipelines

    Hello 
    To resolve this you will need to go to the target environment and look for the solution name with _upgrade and remove it 
    After this try to import the solution in a manual way to the target environment to determine the blocker 

  • AxelFoley Profile Picture
    on at
    Re: Problem with Power Platform Pipelines

    Yes, indeed i am using a pipeline. Happens between DEV and STAGE after initial deployment went correctly and I tried to deploy my first delta change (deleting fields from the schema) and trying to redeploy the changes I made in DEV. With this first change to the intial solution, the pipeline breaks.

  • Geeks_D Profile Picture
    1,169 on at
    Re: Problem with Power Platform Pipelines

    Do you use the deployment pipeline ? 

  • Verified answer
    Geeks_D Profile Picture
    1,169 on at
    Re: Problem with Power Platform Pipelines

    Hi Everyone
    So i was able to fix this problem using an Old Artefact from the Deployment Pipeline (Good to have version/Source control)
    I imported the solution manually into the Test Environment and changed the version number as well  
    Then deploy the update with the pipeline and was all good 

  • AxelFoley Profile Picture
    on at
    Re: Problem with Power Platform Pipelines

    I am facing the exact same issue being stuck in not being able to apply the upgrade, cannot delete the existing solutions in destination env nor can I redeploy a modified corrected version. Anybody found a solution yet?

     

  • Geeks_D Profile Picture
    1,169 on at
    Re: Problem with Power Platform Pipelines

    Hi @parvezghumra 
    This is the using the classic design 
    System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Sql error: Statement conflicted with a constraint. The DELETE statement conflicted with the REFERENCE constraint "environmentvariabledefinition_environmentvariablevalue". The conflict occurred in database "db_crmcoregbr_20221031_01452565_2076", table "dbo.EnvironmentVariableValueBase", column 'EnvironmentVariableDefinitionId'.
    The statement has been terminated. CRM ErrorCode: -2147185375 Sql ErrorCode: -2146232060 Sql Number: 547 (Fault Detail is equal to Exception details:
    ErrorCode: 0x80048D21
    Message: Sql error: Statement conflicted with a constraint. The DELETE statement conflicted with the REFERENCE constraint "environmentvariabledefinition_environmentvariablevalue". The conflict occurred in database "db_crmcoregbr_20221031_01452565_2076", table "dbo.EnvironmentVariableValueBase", column 'EnvironmentVariableDefinitionId'.
    The statement has been terminated. CRM ErrorCode: -2147185375 Sql ErrorCode: -2146232060 Sql Number: 547
    TimeStamp: 2024-01-19T10:21:20.3762891Z
    --

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Problem with Power Platform Pipelines

    @Geeks_D If you try to apply the upgrade in the classic experience, you'll get a more readable error message and listing of the dependencies. Try that and paste the screenshot of the list of dependencies here

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics