# java.lang.NoClassDefFoundError: com/sap/conn/idoc/IDocMetaDataUnavailableException in MuleSoft: cause and fix

Source page: https://ipaaserrors.com/mulesoft/sap-noclassdeffounderror-idocmetadataunavailableexception
Platform: MuleSoft · SAP Connector
Checked against vendor docs: 2026-11-30

This SAP Connector error means the SAP IDoc JAR was not loaded when you tested the connection or deployed the app. Add the IDoc library in the Required Libraries section of the connector configuration.

## Error text

```
java.lang.NoClassDefFoundError: com/sap/conn/idoc/IDocMetaDataUnavailableException
```

## Likely causes

- The required SAP IDoc dependency is not loaded when testing the connection or deploying.

## How to fix it

1. In the connector's global configuration, find the Required Libraries section.
2. Click Configure next to the dependency marked with a red exclamation icon and select the file.
3. The dependency is added to the classpath automatically; test the connection 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-noclassdeffounderror-idocmetadataunavailableexception and the vendor documentation above.
