Wednesday 18 May 2022

Summer 22 Regression Issue : Fatal Error : UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support

Summer 22 Release Causing issues in Deployment : 

Issue : GACK error while validating the package / Deploying

"Fatal Error : UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support (XXX)"

GACK  is an error got thrown within application and didn't catch it / handle it gracefully.

Impacted Instance : CS80 

Navigate to know your instance details : Set Up --> Company Information --> Instance

Workaround : Proceed with delta deployment

Root Cause : Package has duplicate entries which is causing the issue of deployment.

Our Case : File Name.layout & File Name.layout-meta.xml

Earlier also had the duplicate entries ,So why now it's causing this issue ?

There is enhancement in the Salesforce validation engine, Earlier it was serial and now it handles in bulk manner.

When it was serial validation used to override the duplicate entries with latest one, Since now entire validation way is changed to improve the performance & It will not allow any duplicate entries with Salesforce Summer Release. 

Why GACK ?

Receiving the GACK error for this scenario is causing lot of trouble in investigating the issue both from Salesforce side & From User side.

EX: If the package is huge and like consider have 5K+ components & There is no way to change the strategy to delta deployment 

So Salesforce Team is working to handle this error gracefully and In future it provides the proper log w.r.t the exact duplicate entry details which helps in troubleshoot quickly.

Final Thoughts : If you are facing the deployment issue after summer 22 release update ,Kindly verify the duplicate entries of your metadata & Hope Salesforce releases knowledge article shortly on this.