+ Start a Discussion
JohnR Llewellyn ACSJohnR Llewellyn ACS 

How to resolve flow error: (INVALID_CROSS_REFERENCE_KEY) Record Type ID: this ID value isn't valid for the user:

We have a VisualForce page/form (embedded flow) that is designed to create a scholarship application for our convention. When running the flow internally, there is no error and the scholarship application is created. When running through the form externally (https://convention.acslaw.org/Student_Convention_Scholarship), the following error occurs and no record (scholarship application) is created.

ERROR MESSAGE
An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.

The Flow Appliation error email is sent and provides the following for several attempts to fill out the form:

An error occurred at element Create_Student_Convention_Scholarship_Application (FlowRecordCreate).
INSERT --- INSERT FAILED --- ERRORS : (INVALID_CROSS_REFERENCE_KEY) Record Type ID: this ID value isn't valid for the user: 012G0000001QKQHIA4

In the Create Student Convention Scholarship Application flow, the Record Create element includes RecordTypeID = 012G0000001QKQH. This is the Student Convention Scholarship record type in the custom object Application (Application__c).

Here is information received from a flow alert email (I have the full report available):

An error occurred at element Create_Student_Convention_Scholarship_Application (FlowRecordCreate).
INSERT --- INSERT FAILED --- ERRORS : (INVALID_CROSS_REFERENCE_KEY) Record Type ID: this ID value isn't valid for the user: 012G0000001QKQHIA4

...
RECORD CREATE: Create_Student_Convention_Scholarship_Application
Create one Application__c record where:
Alternate_Email__c = {!Alternate_Email} (shannonportia@gmail.com)
Application_Type__c = Student Convention Scholarship
Cell_Phone_Number__c = {!varCellPhone} (2149493703)
Contact__c = {!varContactID} (003G000002YwQbu)
RecordTypeId = 012G0000001QKQH
SCS_ACS_Career_Goals__c = {!ACSCareerGoals} (Being in ACS leadership has helped me meet progressive lawyers in the ACS network, which I think is indispensable help in today's job search.)
SCS_ACS_Chapter_at_School__c = {!ACSChapteratSchool} (Yes)
SCS_ACS_Value_Most__c = {!What_do_you_value_most_about_ACS} (My law school is relatively conservative. Progressive viewpoints are not welcomed by the student body. The best part of our ACS chapter is simply giving progressive students (however few of us) a platform in a somewhat unfriendly environment.)
SCS_Attend_Previous_Student_Convention__c = null
SCS_Chapter_Activity__c = {!ChapterActivity} (Yes, I am president of the Alabama chapter. I plan all of our events and delegate some responsibilities to the other chapter leaders. I am speakers' point of contact at Alabama.)
SCS_Convention_Arrival_Date__c = {!ConventionArrivalNew} (March 30, 2017)
SCS_Convention_Arrival_Time__c = {!Convention_Arrival_Time_New} (4:30 PM)
SCS_Convention_Departure_Date__c = {!Convention_Departure_Date_New} (April 2, 2017)
SCS_Convention_Departure_Time__c = {!Convention_Departure_Time_New} (6:25 AM)
SCS_Departure_City__c = {!DepartureCityNew} (BHM)
SCS_First_Choice_Package__c = {!FirstChoicePackage} (Scholarship Package B: Travel Costs)
SCS_Gender__c = {!varGender} (Female)
SCS_Hosted_Locally__c = {!HostedLocally} (Yes)
SCS_If_Awarded__c = {!IfAwarded} (Yes)
SCS_Lodging_Dates__c = null
SCS_Lodging_Friends_Family__c = {!FriendsandFamily} (Yes)
SCS_Lodging__c = {!Lodging} (No)
SCS_NGL__c = {!ACSNGL} (I plan to apply to become an NGL)
SCS_Pet_Allergies__c = {!PetAllergy} (None)
SCS_School_Assistance_Type__c = {!SchoolAssistanceType} (N/A)
SCS_School_Assistance__c = {!SchoolAssistance} (Yes)
SCS_Smoke_Bother__c = {!Does_smoking_bother_you} (Yes)
SCS_Smoker__c = {!Smoker} (No)
SCS_Special_Circumstances__c = {!SpecialCircumstances} (None)
SCS_Travel_Scholarship_Type__c = {!TravelScholarshipTypeNew} (Airfare; Driving-mileage reimbursement)
SCS_Traveling_Costs__c = {!TravelingCostsNew} ($400)
School__c = {!varSCID} (a0WG000000DPHTVMA5)
Result
Failed to create record.



Any help would be appreciated.
Best Answer chosen by JohnR Llewellyn ACS
Peter FribergPeter Friberg
Check that the running user/profile has access to that record type with Id = '012G0000001QKQHIA4'. After adding the access rights you will probably be fine :)

All Answers

Peter FribergPeter Friberg
Check that the running user/profile has access to that record type with Id = '012G0000001QKQHIA4'. After adding the access rights you will probably be fine :)
This was selected as the best answer
JohnR Llewellyn ACSJohnR Llewellyn ACS
Thanks! That took care of it.
Latif BashirLatif Bashir

This is a splendid read man. Great Share. However I’m having issue with your RSS. https://aussiedoodlemoon.com/standard-aussiedoodle (https://aussiedoodlemoon.com/standard-aussiedoodle/) Fail to subscribe. So anybody else having similar RSS problem? Anybody who can assist kindly reply. Thanks in advance
simply buzzes 9simply buzzes 9
Thanks for your kind information but i am still facing an error could you please have a look Here (https://www.tommypet.com) and recommend why these errors are helding, I'll be very very thanksfull to you. For more detail please visit the link to see error shots.