When transferring data from the Main Flow to a Sub-Flow in DataCloud, you might encounter the following error:
Error: “The data type of the resource you entered isn’t compatible.”
This usually occurs when a Sub-Flow variable is populated with data retrieved from a Get Records element in the Main Flow. Follow the steps in the Resolution section to address this issue.
The following steps are provided below to resolve the issue.
Update Resource Type
In the Main Flow, set the Get Records resource type to SalesforceObject to match the Sub-Flow variable.
Workaround Using RecordId
In the Sub-Flow, create a Text variable.
Pass the RecordId from the Main Flow to this variable.
Use a Get Records element in the Sub-Flow to retrieve the record using the RecordId.
Reference
For detailed instructions on creating resource variables in Data Cloud-triggered flows, see the Salesforce Data Cloud Flow Workshop.
005316510

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.