A user receives an error while using MuleSoft for a Salesforce Connector stating "An unexpected error occurred. Please include this ErrorId if you contact support".
ERROR 2018-02-26 10:54:57,415 [[app].flow.stage1.02] org.mule.exception.DefaultMessagingExceptionStrategy:
********************************************************************************
Message : Failed to invoke publishPlatformEventMessage.
Payload : {Email__c=someemail@gmail.com, Enrollment_Id__c=2226, GPID__c=1234, Institution_ID__c=1234}
Payload Type : java.util.LinkedHashMap
Element : /update-sf-enrollment-notifications/processors/2 @ Mulesoft-app
--------------------------------------------------------------------------------
Root Exception stack trace:
[UnexpectedErrorFault [ApiFault exceptionCode='UNKNOWN_EXCEPTION'
exceptionMessage='An unexpected error occurred. Please include this ErrorId if you contact support: 260902376-24794 (1818010119)'
extendedErrorDetails='{[0]}'
]
]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:673)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:556)
at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:236)
at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:210)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
at com.sforce.soap.partner.PartnerConnection.create(PartnerConnection.java:1538)
at org.mule.modules.salesforce.SalesforceConnector.publishPlatformEventMessage(SalesforceConnector.java:2531)
at org.mule.modules.salesforce.generated.processors.PublishPlatformEventMessageMessageProcessor$1.process(PublishPlatformEventMessageMessageProcessor.java:154)
at org.mule.security.oauth.process.ProcessCallbackProcessInterceptor.execute(ProcessCallbackProcessInterceptor.java:24)
at org.mule.devkit.3.9.3.internal.connection.management.ConnectionManagementProcessInterceptor.execute(ConnectionManagementProcessInterceptor.java:57)
at org.mule.devkit.3.9.3.internal.connection.management.ConnectionManagementProcessInterceptor.execute(ConnectionManagementProcessInterceptor.java:23)
at org.mule.security.oauth.process.RetryProcessInterceptor.execute(RetryProcessInterceptor.java:84)
at org.mule.devkit.3.9.3.internal.connection.management.ConnectionManagementProcessTemplate.execute(ConnectionManagementProcessTemplate.java:36)
The Salesforce connector is sending a message and the Salesforce server is having an internal problem resulting in the error and error ID.
Please contact Salesforce Support and provide wire-logging from Salesforce connector logs by enabling DEBUG logs for package: org.mule.modules.salesforce in src/main/resources/log4j2.xml configuration file using for example the folowing statement:
<AsyncLogger name="org.mule.modules.salesforce" level="DEBUG"/>
DEBUG 2018-02-26 10:54:57,286 [[App].flow.stage1.02] org.mule.modules.salesforce.config.AbstractConfig: Sending request to https://somehost.my.salesforce.com/services/Soap/u/41.0/00D180000002334
DEBUG 2018-02-26 10:54:57,286 [[App].flow.stage1.02] org.mule.modules.salesforce.config.AbstractConfig:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<AssignmentRuleHeader xmlns="urn:partner.soap.sforce.com">
<assignmentRuleId xsi:nil="true"/>
<useDefaultRule>false</useDefaultRule>
</AssignmentRuleHeader>
<AllowFieldTruncationHeader xmlns="urn:partner.soap.sforce.com">
<allowFieldTruncation>true</allowFieldTruncation>
</AllowFieldTruncationHeader>
<SessionHeader xmlns="urn:partner.soap.sforce.com">
<sessionId>
00D180000002334!AQQAQOvvgiZgk0DL3mC45k4cCfGc1vYVRaPaTc3BkwIYeMycs_Vfk4pyIk68Q.y1Y9buuetmCeG.TmFTUAf84pYll5YrlQzh
</sessionId>
</SessionHeader>
</env:Header>
<env:Body>
<m:create xmlns:m="urn:partner.soap.sforce.com" xmlns:sobj="urn:sobject.partner.soap.sforce.com">
<m:sObjects>
<sobj:type xsi:type="xsd:string">someName__e</sobj:type>
<sobj:Email__c xsi:type="xsd:string">someemail@gmail.com</sobj:Email__c>
<sobj:Enrollment_Id__c xsi:type="xsd:int">2226</sobj:Enrollment_Id__c>
<sobj:GPID__c xsi:type="xsd:string">3974328</sobj:GPID__c>
<sobj:Institution_ID__c xsi:type="xsd:string">UC102</sobj:Institution_ID__c>
</m:sObjects>
</m:create>
</env:Body>
</env:Envelope>
DEBUG 2018-02-26 10:54:57,376 [[Mulesoft-bisk-lmp-integrations].update-sf-enrollment-notifications.stage1.02] org.mule.modules.salesforce.config.AbstractConfig: Receiving response from https://somehost.cs23.my.salesforce.com/services/Soap/u/41.0/00D180000002334
DEBUG 2018-02-26 10:54:57,376 [[Mulesoft-bisk-lmp-integrations].update-sf-enrollment-notifications.stage1.02] org.mule.modules.salesforce.config.AbstractConfig:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sf="urn:fault.partner.soap.sforce.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>sf:UNKNOWN_EXCEPTION</faultcode>
<faultstring>UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact
support: 260902376-24794 (1818010119)
</faultstring>
<detail>
<sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault">
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>An unexpected error occurred. Please include this ErrorId if you contact support:
260902376-24794 (1818010119)
</sf:exceptionMessage>
</sf:UnexpectedErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>001118037

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.