Unable to approve Program Application due to "Community Username" error
Table of Contents
Description
When you manually create a Student Contact record and try to approve a Program Application, you might encounter this error below:
This is the RIO Education expected behaviour, when you are attempting to approve a Program Application for a Student Contact:
- without a User, or,
- without a "Community Username" in the Contact record (field empty).
The related trigger that governs this can be found here: PRAP_StudentCommunity_TDTM.
Resolution
There are three options to resolve this:
Option 1
Disable the 'Auto Student Community Registration' setting in RIO Education Custom Setting.
Option 2
Expose and populate the "Community Username" field in the Student Contact record.
Option 3
Disable the PRAP_StudentCommunity_TDTM trigger handler for the rio_ed__Program_Application__c object only.