Rollback failed -Dynamics 365 Finance and Operations On premises.
As part of the Dynamics 365fo on-premises architecture, we have the Environment Orchestrator which enables on-premises environment management from LCS. We can consequently monitor our deployments in the OrchestratorData database via SQL management studio.
There are 5 steps for on-premises, whether you are deploying a package, an instance, or an ISV solution:
Step 1: Downloading the artifact from LCS and cleaning up services
Step 2: Extracting the artifacts from LCS
Step 3: Executing the pre-deployment scripts
Step 4: Deploying services
Step 5: Executing the post-deployment scripts
Now, I am stuck. arrrrrrrrrrrrrrrh đ .
There are times when a package deployment fails on LCS. Let’s say, we found out the issue, and we want to reapply a new package. We discover that Abort/retry also fails. It can be quite frustrating when rollback keeps failing.
What to do ?Â
To resolve this, and have the environment status back tot deployed, we will try to update it status to the last successful package application.
Run the following command to get the JobID and TaskID of the last successful run.
select * from OrchestratorJob order by LastProcessedDateTime desc
select * from RunBookTask order by StartDateTime desc
Execute both script at a time in SSMS
There is light at the end of the Tunnel?Â
Now, let’s run the following script and wait few minutes for the success mail from LCS. Your environment page on LCS becomes a clean slate with no error.
update OrchestratorJob set State = 1 where JobId = âxxxxxxxxxxxâ
update RunBookTask set State = 1, Retries = 1 where RunbookTaskId = âxxxxxxxxxxxxxâ
Merci.
Your comment is awaiting moderation.
Greetings from Los angeles! I’m bored to death at work so I decided to browse your blog on my iphone during lunch break. I really like the information you present here and can’t wait to take a look when I get home. I’m surprised at how fast your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyhow, good site!