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

# Failure when interacting with Databricks

> Resolve the Databricks error returned when your pipeline and another process update the same data partition at once.

## Error message

```text wrap theme={null}
Failure occurred when interacting with third party service 'Databricks'
```

This error can appear when a component in your pipeline updates data in Databricks.

### Explanation

Your pipeline encountered a `ConcurrentAppendException` when interacting with Databricks.

### Potential causes

Your pipeline and another process or user updated the same data partition at the same time, causing a conflict.

***

## Resolve the error

1. Re-run the pipeline.
2. If you still need help, [contact Maia Support](https://support.matillion.com/s/) and include the items listed below.

   * The full error text.
   * The root pipeline execution ID.
   * The Maia runner ID and time of failure (UTC).

### Prevent future errors

To prevent this error occurring again:

* Configure your Databricks environment to support transactions, then wrap your update operations in transactions to maintain data integrity.
* Adjust your data partitions to minimize concurrent access to the same partitions, and use finer-grained partitions to reduce the likelihood of conflicts.
* Set up an alert for `ConcurrentAppendException` events in Databricks to notify you if this occurs again.
* Review your data access patterns and [adjust your scheduling](https://docs.maia.ai/docs/guides/schedules.md) to avoid any recurring conflicts.


## Related topics

- [SQL compilation error in the warehouse](https://docs.maia.ai/docs/errors/sql-compilation-error-in-the-warehouse.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.