If DevOps Center deployed the changes to the target environment and merged them into the target stage branch, but the promotion doesn’t appear as completed in DevOps Center, update the associated records to reflect the successful result.
Required Editions
| Available in: Lightning Experience in Professional (API access required), Enterprise, Performance, Unlimited, and Developer Editions |
| Not available in: Government Cloud Plus. Contact your Salesforce account executive for more details. |
| Not available in: EU Operating Zone. EU Operating zone is a special paid offering that provides an enhanced level of data residency commitment. DevOps Center is supported in orgs in the EU that aren’t part of EU OZ, per standard product terms and conditions. |
| User Permissions Needed | |
|---|---|
| To fix a stalled promotion: | DevOps Center Deployment Manager |
To identify where the promotion stalled, see Troubleshoot a Stalled Promotion.
- In your DevOps Center org, open Developer Console, then select the Query Editor tab.
-
To find the Deployment Result record that’s still in progress, run this SOQL query:
SELECT Id, sf_devops__Status__c FROM sf_devops__Deployment_Result__c WHERE sf_devops__Status__r.sf_devops__Status__c = 'In Progress' -
If the query returns multiple records, identify the record associated with the affected
work item.
Copy the ID of a returned record. Replace
<deployment-result-record-id>in this query with the copied ID, and then run the query. Repeat for each returned ID until the query returns the affected work item.SELECT Id, Name FROM sf_devops__Work_Item__c WHERE sf_devops__Operation_Status__c = '<deployment-result-record-id>' - In the original query results, select the deployment record associated with the affected work item, and then click Open Detail Page.
-
On the Deployment Result record, set Deployment Id to
undeployed, and then save your changes. - Click the AOR-<id> link in the Status field to open the associated Async Operation Result record.
- On the Async Operation Result record, change Status to Completed, and then save your changes.
-
In DevOps Center, refresh the Pipeline Stages view.
The stalled-promotion error no longer appears.