Users getting error messages in MuleSoft Composer flow run history while connecting to Salesforce connector.
-At design time, a red rectangle is displayed with the error label “Invalid Connection” and a “Reconnect” link.
-At runtime, the flow fails with the error message: “AccessToken expired. Refresh token workflow was attempted but failed.”
1.Click the “Reconnect” link and follow regular steps for creating OAuth connection
2.Login page will open in a popup OR on in the next tab
3. Enter Login and Password for the user you plan to use for Salesforce Connector and click “Log In”
4. Click “Allow” to authorize the connected app access
5.Upon success you will be redirected back to the Composer
6.Please wait for some time for connection to complete (it may take up to 10-20 seconds)
Additional considerations
If your org has additional configuration that may prevent Connected App from establishing connection and authorizing requests (like a limited list of allowed IP addresses, session security enhancements like MFA or other configuration) - you may need to do extra steps to make it work.
Example of an error users may see:
OAUTH_APPROVAL_ERROR_GENERIC : An unexpected error has occurred during authentication. Please try again.
This is related to the enhanced security configuration mandated recently - please check this article for al details:
Prepare for Connected App Usage Restrictions ChangeLink: https://help.salesforce.com/s/articleView?id=005132365&type=1
Note: our legacy application was allow-listed and did not require extra approval, however since we had to re-create the org and the application from scratch during the icc-87525480 incident – it is not applicable anymore
To remediate the issue customers should follow the steps:
Create a new Connection using user with System Administrator profile or with “Approve Uninstalled Connected Apps” permission
This typically can done following usual steps mentioned in section -> Steps to Authenticate Salesforce Connector
Once completed - there will be a connected app with name “MuleSoft_Platform” created (but not installed)
Install the app and click “Edit Policies” - make sure to set the following policies:
All users may self-authorize
Relax IP restrictions
High assurance session required is unchecked
3. If user needs to use Standard or integration user for establishing connection - user can now create a new connection using non-Admin user, it should work the same as it did for Admin user (thanks to installed and properly configured Connected app)
Mule Doc link for reference: https://docs.mulesoft.com/composer/ms_composer_salesforce_reference
005305463

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.