Ask Search:
Craig ClementCraig Clement 

Flow issue: Unhandled Process Fault

Hi all: 

I've been trying to create a custom Flow to make it easier on our sales guys to enter in a new opportunity, and I've made it pretty far. The issue comes on the second to last step after a screen prompts the user if the client name he/she entered corresponds with the one I have instructed it to look up. The user either chooses yes or no, and when I click "Next," I'm greeted with the unhandled process error. This is the e-mail I receive: 

Encountered unhandled fault when running process New_Prospect_Flow/301E0000000L2TG exception by user/organization: 00DE0000000K0vm/{4}
 
interaction.sfdc.adapter.rules.SalesforceRuleBrokenException: UPSERT --- UPSERT FAILED ---  ERRORS :  (INVALID_CROSS_REFERENCE_KEY) Prospect Record Type: id value not valid for the users profile:  ---  for SFDC record with ID : null,
 
caused by element : Data update.Prospect_Record_Created
 
caused by: interaction.sfdc.adapter.rules.SalesforceRuleBrokenException: UPSERT --- UPSERT FAILED ---  ERRORS :  (INVALID_CROSS_REFERENCE_KEY) Prospect Record Type: id value not valid for the users profile:  ---  for SFDC record with ID : null,
 
Salesforce Error ID: 1697988543-1880 (2042960605)


I'm brand new to flows and I can't figure out what is going wrong - if anyone can provide me with some direction as to what may be causing this I'd greatly appreciate it - also let me know if you have any additional questions or need screenshots. 

Thanks!
Joey - CloudJediJoey - CloudJedi
Based on the error I think you're trying to use a record type that your user profile doesn't have access to. Could you check your prospect record types and make sure the user profile you're testing it on have access to the record type?
Craig ClementCraig Clement
Joey, I was looking around other help topics and saw that what you said had been an issue with some other people, but the profile I was testing it on was the System Admin profile (myself), so I can't imagine why it wouldn't work. 

Incidentally (and I'm not sure if this means anything at all), but I was looking through the System Admin profile overview and under System Permissions, the "Run Flow" Checkbox by default was left unchecked (and I wasn't able to change it). But we're using Enterprise edition so I don't understand why i wouldn't be able to do it (again not sure if that means anything)

Thanks for your help thus far!
Joey - CloudJediJoey - CloudJedi
Hi Craig,

Could you check if the record type is also assigned to the System Administrator profile? Its also technically possible that it wasn't assign to that profile.

--