> ## 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.

# SharePoint scope is not a valid connection property

> Resolve the error returned when a SharePoint Query component uses a SharePoint OAuth connection that was re-authorized.

## Error message

```text wrap theme={null}
'sharepointscope' is not a valid connection property.
```

This error can appear when using the [SharePoint Query](https://docs.maia.ai/docs/components/sharepoint-query.md) component.

### Explanation

SharePoint OAuth is no longer supported in the SharePoint Query component. After you re-authorize a SharePoint OAuth connection, you can't validate or run any pipelines containing a SharePoint Query component that uses the re-authorized OAuth connection. These processes will fail before any data is extracted, because the error occurs while the component looks up schemas and metadata.

For more information, read the [SharePoint Query and SharePoint OAuth re-authorization](https://docs.maia.ai/docs/tech-notes/tech-note-sharepoint-query-oauth-reauthorization.md) tech note.

### Potential causes

* A SharePoint OAuth connection used by a SharePoint Query component was re-authorized.

***

## Resolve the error

1. Find the SharePoint Query components that use the re-authorized SharePoint OAuth connection.
2. Replace them with the [SharePoint Load](https://docs.maia.ai/docs/components/sharepoint-load.md) component, which isn't affected and is the supported way to fetch data from SharePoint.
3. [Validate the pipeline](https://docs.maia.ai/docs/guides/validating-pipelines.md) and run it again.
4. 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).

> [!NOTE]
>
> Connections that you haven't re-authorized keep working. For more information, read the [SharePoint Query and SharePoint OAuth re-authorization](https://docs.maia.ai/docs/tech-notes/tech-note-sharepoint-query-oauth-reauthorization.md) tech note.

### Prevent future errors

To prevent this error occurring again:

* Upgrade your pipelines to the [SharePoint Load](https://docs.maia.ai/docs/components/sharepoint-load.md) component.
* Don't re-authorize any SharePoint OAuth connections that are used by SharePoint Query components.


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