Hi everyone,
We are encountering two separate issues while deploying unified packages to the a new Power Platform environment, and I would appreciate your insights on resolving them.
As you kwno this will be the new mode to deploy packages when LCS is deprecating.
WaitingForResources Issue: The deployment process initiated from Azure DevOps gets stuck in the WaitingForResources state with the log showing:
Unexpected Environment State Failure: In previous attempts, the deployment failed entirely, indicating an unexpected environment state.
In previous deployments, the process go on, but failed with the following error logs:
2024-11-18T20:49:31.8733214Z [ 2024-11-18T20:49:31.8734843Z 'Upload Finance and Operations Module RUB_1_0_0_1_managed.zip - Applying Application Module - Failed; Error Message: "Microsoft.Dynamics.CAP.Iris.NanoServices.EnvironmentStatusCheckerException: Environment has reached an unexpected state Failed\\r\\n\\r\\n\\r\\n at Microsoft.Dynamics.CAP.Iris.NanoServices.EnvironmentInstanceStatusChecker.HasTargetStatusReached(String pollingLocation, HashSet`1 expectedStates, HashSet`1 unExpectedStates, CancellationToken cancellationToken) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Iris.Infrastructure\\\\Services\\\\StatusPoller\\\\EnvironmentInstanceStatusChecker.cs:line 81\\r\\n at Microsoft.Dynamics.CAP.Iris.Jobs.LifecycleJobs.DeployFinOpsCustomPackageJob.RunPollAsync(DeployFinOpsCustomPackageMetadata deployFinOpsPackageMetadata) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Iris.Infrastructure\\\\Jobs\\\\Lifecycle\\\\JobCallbacks\\\\DeployFinOpsPackage\\\\DeployFinOpsCustomPackageJob.cs:line 113\\r\\n at Microsoft.Dynamics.CAP.Iris.Jobs.Platform.LongRunningWithPollingJob`1.RunAsync() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Iris.Infrastructure\\\\Jobs\\\\Platform\\\\LongRunningWithPollingJob.cs:line 60\\r\\n at Microsoft.Dynamics.CAP.Iris.Jobs.Platform.WhatIfModeSupportedJob`1.ExecuteAsync() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Iris.Infrastructure\\\\Jobs\\\\Platform\\\\WhatIfModeSupportedJob.cs:line 68"' 2024-11-18T20:49:31.8737197Z ] 2024-11-18T20:49:36.8739793Z [ 2024-11-18T20:49:36.8740504Z 'Upload Finance and Operations Module RUB_1_0_0_1_managed.zip - Failed - Complete' 2024-11-18T20:49:36.8740867Z ] 2024-11-18T20:49:36.9008444Z [ 'Installation failed for Finance and Operations application' ] 2024-11-18T20:49:36.9032988Z [ 'Beginning queueing up UpdateRibbonClientMetadata job.' ] 2024-11-18T20:49:37.0586906Z [ 2024-11-18T20:49:37.0587564Z 'Successfully queued up UpdateRibbonClientMetadata request. - Complete' 2024-11-18T20:49:37.0588105Z ] 2024-11-18T20:49:37.5005640Z [ 'Microsoft PowerPlatform CLI' ] 2024-11-18T20:49:37.5034843Z [ 'Version: 1.35.1+g0c2637a' ] 2024-11-18T20:49:37.5035480Z [ 'Online documentation: https://aka.ms/PowerPlatformCLI' ] 2024-11-18T20:49:37.5035956Z [ 2024-11-18T20:49:37.5036415Z 'Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions' 2024-11-18T20:49:37.5036848Z ] 2024-11-18T20:49:37.5037185Z [ '' ] 2024-11-18T20:49:37.5037658Z [ 'Error: Installation failed for Finance and Operations application' ] 2024-11-18T20:49:37.5038105Z [ '' ] 2024-11-18T20:49:37.7925433Z ##[error]error: 1 2024-11-18T20:49:37.8187451Z ##[error]failed: Connected as *** Reading the import configuration. Please wait. Import configuration loaded. - Complete Reading the solutions. Please wait. Reading the solutions. Please wait.
Thank you in advance for your support!
Best regards, Diego
@Martin Dráb
The pipeline fails specifically at the Power Platform Deploy Package step with the following error:
Microsoft.Dynamics.CAP.Iris.Connectors.Exceptions.DSSidecarOperationException: DS/Sidecar operation: dbsync failed with the error code FailedDependency; error message: Failure happened while running DBSync on environment [environment name]…
However, when I manually deploy the same model package and run a full database synchronization directly from Visual Studio (Extensions → Dynamics 365 → Deploy → Synchronize Database) on the same UDE environment, everything works successfully without any errors.
I’ve attached screenshots showing:
The manual deployment of models to the online environment
Successful database synchronization (Completed DB Sync with syncKind: Full)
syncKind: Full
Despite that, the automated release pipeline fails on the DBSync step within the Power Platform Deploy Package task.
Is there any specific configuration or permission required for the pipeline service connection to perform DBSync on UDE environments?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 1,964
André Arnaud de Cal... 823 Super User 2025 Season 2
Sohaib Cheema 564 User Group Leader