> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP S/4HANA Troubleshooting

> Troubleshoot SAP S/4HANA connector issues related to authentication, access, or ingestion errors.

### Common Issues

#### Authentication Failures

* For **Basic Auth**, verify the SAP user account is active and has the roles required to access the Fiori App Index and OData Gateway Catalog.
* For **OAuth 2.0 Client Credentials**, verify the Client ID and Client Secret are correct and that the Token Endpoint is reachable from the ingestion runner.

#### Missing Dashboards or Data Models

* Confirm the user has read access to `/sap/bc/ui2/app_index/` (Fiori App Index) for dashboards, and `/sap/opu/odata/IWFND/CATALOGSERVICE` (SAP Gateway Catalog) for CDS analytical views.
* Check the Dashboard and Data Model filter patterns for rules that might be excluding the assets you expect to see.

#### Connection Timeouts

* Verify the **Host and Port** URL is correct and reachable from the ingestion runner.
* If your SAP instance requires mutual TLS, set **Verify SSL** to `validate` and provide the CA certificate, SSL certificate, and SSL key under **Advanced Config**.

## Troubleshooting

### Workflow Deployment Error

If there were any errors during the workflow deployment process, the
Ingestion Pipeline Entity will still be created, but no workflow will be
present in the Ingestion container.

* You can then Edit the Ingestion Pipeline and **Deploy** it again.
* From the Connection tab, you can also Edit the Service if needed.

## Connector Debug Troubleshooting

This section provides instructions to help resolve common issues encountered during connector setup and metadata ingestion in Collate. Below are some of the most frequently observed troubleshooting scenarios.

## How to Enable Debug Logging for Any Ingestion

To enable debug logging for any ingestion workflow in Collate:

1. **Navigate to Connections**
   Go to **Connections** > **Service Type** (e.g., Database) in the Collate UI.

2. **Select a Service**
   Choose the specific service for which you want to enable debug logging.

3. **Access Agents Tab**
   Go to the **Agents tab** and click the three-dot menu on the right-hand side of the ingestion type, and select Edit.

4. **Enable Debug Logging**
   In the configuration dialog, enable the **Debug Log** option and click **Next**.

5. **Schedule and Submit**
   Configure the schedule if needed and click **Submit** to apply the changes.

## Permission Issues

If you encounter permission-related errors during connector setup or metadata ingestion, ensure that all the prerequisites and access configurations specified for each connector are properly implemented. Refer to the connector-specific documentation to verify the required permissions.
