11.x
Upgrading and Migrating Salesforce Connector to 12.x
Upgrade Anypoint Connector for Salesforce (Salesforce Connector) from version 11.x to version 12.x.
Changes
12.0
-
This connector is now compatible with Java 17 only.
-
The OAuth Username Password connection type is removed because Salesforce is retiring the OAuth 2.0 Username-Password flow. Applications that use this connection type fail to deploy on 12.0.0. Migrate to another supported connection type, such as OAuth 2.0, OAuth Client Credentials, OAuth JWT, or OAuth SAML.
-
The new Query Time Buffer (Seconds) field enables you to configure a polling time buffer (from
0to120seconds) for source listeners to prevent missing records committed between polls for the On New Object, On Modified Object, and On Deleted Object sources. The query buffer time for the On Modified Object source now defaults to0seconds, instead of the former hardcoded default of2seconds. Applications that rely on the previous 2-second buffer must explicitly configure this value in the Query Time Buffer (Seconds) field. -
The On Modified Object source now honors the read timeout configured in the connector configuration for internal
DescribeSObjectscalls. Previously, these calls defaulted to an infinite timeout (readTimeout=0), which caused connections to hang under certain network conditions. -
These libraries are upgraded to address reported security vulnerabilities:
-
The Apache CXF library is upgraded to version 4.1.7.
-
The
jackson-coreandjackson-databindlibraries are upgraded to version 2.21.5. -
The
woodstox-corelibrary is upgraded to version 6.7.0. -
The
httpclientlibrary is upgraded to version 4.5.14. -
The
commons-codeclibrary is upgraded to version 1.22.0. -
The
opencsvlibrary is upgraded to version 5.12.0. -
The
jackson-annotationslibrary is upgraded to version 2.21. -
The
gsonlibrary is upgraded to version 2.12.0. -
The
jaxws-rtlibrary is upgraded to version 2.3.7. -
The
jettylibrary is upgraded to version 12.1.10. -
The
cometd-javalibrary is upgraded to version 8.0.7.
-
Upgrade Prerequisites
Before you perform the upgrade, you must:
-
Create a backup of your files, data, and configuration in case you need to restore to the previous version.
-
Ensure that your environment meets the version 12.x requirements, including Java 17, Mule runtime 4.9.0 or later, and Anypoint Studio 7.21 or later.
-
If your app uses the OAuth Username Password connection type, migrate to the OAuth Client Credentials, OAuth JWT, OAuth SAML, or OAuth 2.0 connection type, because the OAuth Username Password connection type is removed in version 12.x.
-
Install Salesforce Connector 12.x to replace the Salesforce operations that were previously included in Salesforce Connector 11.x.
Upgrade Steps
Follow these steps to perform the upgrade from Salesforce Connector v11.x to Salesforce Connector v12.x:
-
In Anypoint Studio, create a Mule project.
-
In the Mule Palette view, click Search in Exchange.
-
In the Add Dependencies to Project window, enter
Salesforcein the search field. -
In the Available modules section, select Salesforce Connector - Mule 4 and click Add.
-
Click Finish.
-
Verify that the
salesforce-connectordependency version is12.x.xin thepom.xmlfile, wherex.xis the minor release and patch version number. For example, if you are upgrading to v12.0, the dependency version in thepom.xmlfile should be12.0.0.
Studio upgrades the connector automatically.
Verify the Upgrade
After you install the latest version of the connector, follow these steps to verify the upgrade:
-
In Studio, verify that there are no errors in the Problems or Console views.
-
Check the project
pom.xmlfile and verify that there are no problems. -
Test the connection and verify that the operations work.
Troubleshooting
If there are problems with caching the parameters and caching the metadata, try restarting Studio.



