An Apex error occurred: System.DmlException: ConvertLead failed. First exception on row 0; first error: UNAVAILABLE_RECORDTYPE_EXCEPTION, Unable to find default record type: []
For Context: calling an Apex class from flow and trying to convert a Lead by creating Person Account and Opportunity manually and set the Ids of Opportunity and Account in the Database.Leadconvert.
Running the Flow as System Administrator and Default record type (Person Account, Opportunity) is set in the Object setting of the Profile.
Checked the RecordType Id set in the debug log and it is correct. Not sure where it is going wrong? #Flow #Apex #Lead Conversion