+ Start a Discussion

Error While creating account in salesforce health cloud

invalid. Ask your admin to check the individual record type configurations in Setup. Class.HealthCloudGA.MoiConfiguration: line 639, column 1 Class.HealthCloudGA.MoiConfiguration: line 593, column 1 Class.HealthCloudGA.MoiConfiguration.loadIndividualRecordTypeMapping: line 546, column 1 Class.HealthCloudGA.MoiConfiguration: line 734, column 1 Class.HealthCloudGA.MoiConfiguration.isRecordOfTypeIndividual: line 807, column 1 Class.HealthCloudGA.AccountTriggerHandler.onBeforeInsert: line 31, column 1 Class.HealthCloudGA.MoiBaseTriggerHandler.handleEvent: line 120, column 1 Trigger.HealthCloudGA.AccountTrigger: line 12, column 1
VinayVinay (Salesforce Developers) 
Hi Gaurav,

Review below link that can help you.

https://help.salesforce.com/articleView?id=000318117&language=en_US&type=1&mode=1 (https://help.salesforce.com/articleView?id=000318117&language=en_US&type=1&mode=1)

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Vinay Kumar
AnudeepAnudeep (Salesforce Developers) 
Hi Gaurav, 

This is certainly related to the record type. Can you check if the individual record type is configured properly as documented ? If it doesn't work, try and deactivate the individual record type for Account object or contact support

Christan G 4Christan G 4
Based on the error message you are receiving, it seems that record type of the new account you are trying to create, is changing based on some of type of criteria. It's possible that the record type has either changed or is no longer available. If possible, please share the code for the following methods to troubleshoot this further: MoiConfiguration,  AccountTriggerHandle, MoiBaseTriggerHandler to further troubleshoot this.