When a deployment fails, the Lifecycle Center MCP tools analyze the logs to find the problem and provide clear explanations or steps to fix it.
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. Lifecycle Center is supported in orgs in the EU that aren’t part of EU OZ, per standard product terms and conditions. |
Before you begin, set up the Salesforce DX MCP Server. See Access Lifecycle Center MCP Tools.
Diagnose and resolve a deployment failure
Analyze the logs to identify the cause of the deployment failure and provide recommendations or troubleshooting steps for resolution.
- Prompt
- "Resolve the deployment failure for Work Item WI-001234.
- The source workItem branch : WI-001234
- Target Branch : Mar4_Int
- Error Details : DEPLOYMENT_FAILURE: DeploymentFail2: Variable does not exist: Say_hello (classes/DeploymentFail2.cls)"
- How It Works
- The
resolve_devops_center_deployment_failuretool analyzes the deployment logs, identifies the error, and suggests potential troubleshooting steps, such as full promotion.
- Sample Response
- "1. Branch verification
- - Confirmed repository path: /home/codebuilder/dx-project/devops-center-repo
- - Checked out and verified branch: WI-001234
- - Current branch is up to date with origin/WI-001234
- 2. Deployment failure analysis
- - Error: DeploymentFail2: Variable does not exist: Say_hello (classes/DeploymentFail2.cls)
- - Determination: Full promotion can resolve the failure because dependency Say_hello exists in source and target.
- 3. Full promotion
- - Submitted full promotion for work item WI-001234
- - Response: message: Submitted for promotion, promotedWorkitemids: ["1fkWt000000VzVRIA0”], requestld: 06309a61-d9da-492c-b9d8-a11b0b6a378, status: SUBMITTED
- Next steps performed by pipeline: Lifecycle Center will process the full deployment for WI-001234. You can monitor promotion status in Lifecycle Center UI using the work item and requestld above.
- - Deliverables:
- - Verified correct branch checked out (WI-001234)
- - Promotion submitted to resolve dependency failure via full”