Loading
Salesforce now sends email only from verified domains. Read More
Manage and Release Changes Easily and Collaboratively with DevOps...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Stalled Commits

          Stalled Commits

          A stalled commit can occur when the updates from the external services back to DevOps Center are interrupted during the commit operation. After you determine when the failure occurred, you can fix it.

          Here are the most common scenarios:

          • Commit operation failed when pushing changes to the feature branch.
          • Commit operation succeeded and changes were pushed to the feature branch, but the commit appears stalled in DevOps Center.

          To determine how to proceed to fix the stalled commit, first troubleshoot to discover if the commit succeeded or failed. Then execute a query to find the associated Async Operation Result record and update its status.

          Note
          Note Alternatively, you can change the Status of the work item to Never, and then start again with a new work item.
          A flow chart representing how to figure out which type of stalled commit you have.
          1. In the work item, click the link for the branch to view it in the source control repository.
          2. Find the commits list in the source control repository.

            In GitHub, click the <n> commits link to view commits for the feature branch.

            In GitHub, click the commits link to view a list of all commits for the feature branch.

            In Bitbucket, the list of commits is on the branch’s page.

          3. See if you can find the commit that contains the changes you selected. Look at the commit descriptions to identify the commit.
            • If you find the commit in the list, the commit succeeded.
            • If you don’t see the commit in the list, the commit failed.

            Now you’re ready to find the associated Async Operation Result record in DevOps Center.

          4. In the org in which DevOps Center is installed, launch Developer Console, then select the Query Editor tab.
          5. Enter this SOQL query to find the associated commit that’s still In Progress.

            In this example, line breaks were added for readability purposes. If you copy this query, remove the line breaks before running it.

            SELECT Id FROM sf_devops__Async_Operation_Result__c 
            WHERE sf_devops__Operation__c = 'METADATA_COMMIT' AND 
            sf_devops__Status__c = 'In Progress'

            If you see only one record, select to highlight it, click Open Detail Page, and then go to the next step. If the query returns multiple records, look at each record to determine the correct one.

            1. Select a record to highlight it, then click Open Detail Page.
            2. In the Async Operation Result, look in the Logs section to see if the text contains references to the metadata that you’re trying to commit (1). In the example, the referenced metadata is CustomObject:Estimated_Sales_per_Quarter__c and its layout.
              The Async Operation Result record with the Status field highlighted to show what you need to update. If the query returns multiple records, the source:retrieve command in the Logs section lists the metadata included in the commit.
            3. After you find the correct record, go to the next step.
          6. In the Async Operation Result record, change the Status (2) based on if the commit succeeded or failed, then click Save.
            • If the commit succeeded, change the Status to Completed.
            • If the commit failed, change the Status to Error.
          7. Refresh DevOps Center, then proceed with the work item.
            • If the commit succeeded, the work item is ready for additional commits, or to move to the next stage, In Review.
            • If the commit failed, select the changes again and commit them.
           
          Loading
          Salesforce Help | Article