You are here:
Set up Error Handling for Bulk Enrollment
Get notified if any errors occur during a CSV file upload and when completed asynchronous jobs identify missing or incomplete data.
- On the Insurance Contract object, create a custom field to use as a lookup for
Insurance Async Bulk Request. The field stores the
asyncBulkRequestIdwhen the enrollment process starts using theenrollMembersAsyncservice. -
Ensure your Rating Procedure Type field of your product is set to Expression Set, and Rating Procedure Name field is set to the name of the Expression Set.
- Associate the Data Mapper bundle to the rating fact product. The Data Mapper must be OmniDataTransform type, which is Omnistudio on core object.
- From the Setup menu, click Developer Console.
-
Create an InsBatchFailureService Apex Class. Copy and paste the Apex code provided in the LargeGroupEnrollment_Artifacts file to this Apex Class.
Important If you’ve configured the
InsBatchFailureServiceApex Class with Winter’ 24 package, replace it with the updated class provided in the LargeGroupEnrollment_Artifacts file. Ensure the API version of the batch class is 60 or above. - In the code, replace vlocityins10__InsuranceAsyncBulkRequest__c with the custom field name created above, and save the Apex Class.
- From the App Launcher, find and select OmniStudio FlexCards.
-
Click Import and upload the
GenerateFailureErrorBatch.jsonfile provided in the LargeGroupEnrollment_Artifacts file. - Open the FlexCard and make sure it's activated and deployed.
- On the group Account page, click the Gear icon and select Edit Page.
- In Lightning App Builder, add a custom tab, and then and then drag and drop the FlexCard component on it. Then, select the FlexCard that's activated in step 6.

