The MuleSoft Salesforce Query Connector executes SOQL queries using the permissions of the configured Salesforce integration user. If this user lacks access to the objects, fields, or relationship metadata referenced in the query, Salesforce returns an error indicating the relationship is not recognized.
This behavior can be misleading because:
org.mule.extension.salesforce.internal.error.exception.service.InvalidRequestDataException:
Didn't understand relationship 'AssetWarranties__r' in FROM part of query call.
If you are attempting to use a custom relationship, be sure to append the '__r'
after the custom relationship name.This commonly occurs when:
AssetWarranty__c) are not assigned
Compare the integration user with a working user (typically System Administrator):
Navigate to Salesforce Setup → Object Manager
Open each object referenced in the SOQL query (parent and child)
Go to Fields & Relationships
For each queried field:
AssetWarranty__c)Clone the System Administrator profile and tailor it for integrations
or Create a dedicated “MuleSoft Integration” Permission Set and assign:
The issue was resolved by aligning the MuleSoft integration user’s permissions with those of the Salesforce UI user. Assigning the System Administrator profile and granting permissions to the AssetWarranty object and related fields allowed the __r relationship queries to execute successfully through the MuleSoft Salesforce Query Connector.
005299561

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.