User getting error while editing OR saving trigger OR class via Salesforce Developer console, getting below error.
"An unexpected error has occurred. [Error Number] for deploymentId=[DEPLOYMENT-ID] If this persists, please contact customer support."
Sample error message:
An unexpected error has occurred. 842774476-1269 (-426779915) for deploymentId=1drZ0000000MlaeIAC If this persists, please contact customer support.
The first part of the error is the time stamp, the second part is the error code.
• Copy the Deployment ID in your clipboard, and head to:
[INS] - your Server instance
[PUT-DEPLOYMENT-ID]- Deployment ID for which you have received error
Click on the Delete button to delete the deployment record, and everything should be back to normal.
• Create new Work Space on Developer console and modified the trigger, it will not through any error.
Workspace / New Workspace ---- Then switch to the newly created workspace:
Below are Salesforce reference link.