When using SAP Connector to execute BAPI function, the java.io.UnsupportedEncodingException similar to the ERROR log below is thrown:
ERROR 2019-01-01 10:00:00,111 [[MuleRuntime].io.01: [example].exampleFlow.BLOCKING @100ee11] [event: xxxxxxxxxxxxxxxxxxxxx] org.mule.runtime.core.internal.exception.OnErrorPropagateHandler: ******************************************************************************** Message : An exception occured while parsing XML. java.io.UnsupportedEncodingException: ISO 10646/Unicode(UTF-8). Error type : SAP:XML_PARSING_ERROR Element : exampleFlow/processors/3 @ example:example.xml:50 (Execute BAPI / Function over sRFC) Element XML : <sap:execute-synchronous-remote-function-call doc:name="Execute BAPI / Function over sRFC" doc:id="xxxxxxxxxxxxxxxxxx" config-ref="SAP_Outbound" key="/xxx/xxxx"></sap:execute-synchronous-remote-function-call> (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
And you have defined an encoding value for your SAP Connector similar to the screenshot below:
This issue occurs when you have defined a encoding which is not supported by SAP Connector.
According to MuleSoft SAP Connector Documentation, The encoding defined in your SAP Connector should be inline with the Canonical name of an encoding as per Oracle's Supported Encoding.
001123437

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.