Hello,
Several flows have been deployed using devops center and after activation they fail with the following message:
We can't save this record because the ... This error occurred when the flow tried to create records: INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user: . You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187910 (514525920)ok up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187910 (514525920). You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187913 (-169807181)k up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187913 (-169807181)
I´ve assigned the corresponding permission sets to my user however the error persists. Run Flows permission is active as well.
Am I missing something?
Record Type ID changes when you deploy a new record type from Sandbox to Production. I would recommend using Custom Metadata or Custom Settings to hold record type ids and replace them later after deployment with newly generated ids in Production.