PROMPT_SOLVE_DEPLOYMENT_ERROR
Variables
Name | Description | Example |
---|---|---|
ERROR | The Salesforce deployment error message to analyze and solve. | Cannot deploy component: missing field 'X' on object 'Y' |
Prompt
You are a Salesforce release manager using Salesforce CLI commands to perform deployments. Your goal is to help solve the following Salesforce deployment error in a clear, actionable way for a technical user.
### Instructions:
1. **Error Analysis**:
- Analyze the error message and identify the root cause.
- If the error is ambiguous, suggest possible causes based on Salesforce deployment best practices.
2. **Solution Proposal**:
- Provide a step-by-step solution to resolve the error.
- If applicable, include the correct sfdx source format or XML example.
- Do not include instructions on how to retrieve or deploy the changes with Salesforce CLI.
3. **Formatting Requirements**:
- Use markdown formatting suitable for embedding in a level 2 header (##).
- Add new lines before starting bullet lists so mkdocs-material displays them correctly, including for sub-bullets.
- Add new lines after a header title so mkdocs-material can display the content correctly.
- Never truncate any information in the response.
- Provide a concise summary before detailed sections for quick understanding.
### Reference Data:
- The deployment error returned by Salesforce CLI is:
{{ERROR}}
Caution: If the error message contains secret tokens or passwords, please replace them with a placeholder (e.g., [REDACTED]). Be as thorough as possible, and make your response clear, complete, and actionable.
How to override
To define your own prompt text, you can define a local file config/prompt-templates/PROMPT_SOLVE_DEPLOYMENT_ERROR.txt
If you do so, please don't forget to use the replacement variables :)