# Message is not a SAP object, it is of type byte[] in MuleSoft: cause and fix

Source page: https://ipaaserrors.com/mulesoft/sap-message-is-not-a-sap-object
Platform: MuleSoft · SAP Connector
Checked against vendor docs: 2026-11-30

This SAP Connector error means the BAPI or IDoc call did not receive a valid SAP object, because required input parameters are missing or the object is malformed. Build the SAP object as XML before the call.

## Error text

```
org.mule.api.transport.DispatchException: Message is not a SAP object, it is of type "byte[]"
```

## Likely causes

- The required input parameters are missing.
- The SAP object is malformed.

## How to fix it

1. Create an SAP object for the BAPI or IDoc call, either as XML containing the SAP object or as an XML definition that includes the input.
2. Run the call again.

## Sources

- [Troubleshooting SAP Connector](https://docs.mulesoft.com/sap-connector/latest/sap-connector-troubleshooting)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/mulesoft/sap-message-is-not-a-sap-object and the vendor documentation above.
