> For the complete documentation index, see [llms.txt](https://help.stockeo.solvenium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.stockeo.solvenium.com/troubleshooting/an-error-401-unauthorized-occurs-when-processing-a-google-sheet-feed.md).

# An error 401 (Unauthorized) occurs when processing a Google Sheet feed

If your automation fails with the 401 (Unauthorized) status code when processing a Google Sheet feed that is intended to be publicly accessible, check the sharing settings of your Google Sheet.

The most common cause is that **General access** is set to **Restricted**. If the feed is intended to be publicly accessible, change the setting to **Anyone with the link**.

To change the sharing settings:

1. Open the Google Sheet.
2. From the top menu, go to **File > Share > Share with others**.
3. Under **General access**, change **Restricted** to **Anyone with the link**.
4. Make sure the access role is set to **Viewer**.
5. Click **Done**.

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FD4EN5ckEhAegGE7gOnKb%2Fgoogle-sheet-file-share-share-with-others-option.png?alt=media&amp;token=2bdac331-a9f0-441d-91b6-204ec0a666a7" alt="Google Sheets File menu with the Share and Share with others options highlighted"><figcaption><p>From the top menu, go to <strong>File > Share > Share with others</strong></p></figcaption></figure>

<figure><img src="https://2071801931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz6HyRe5TyFXHKQEybH7n%2Fuploads%2FfBXarT0k4HsgR4WtIKgg%2Fgoogle-sheet-general-access-anyone-with-the-link.png?alt=media&amp;token=7c21016a-314e-47a8-9165-58dce9f16579" alt="Google Sheets sharing settings showing General access set to Anyone with the link"><figcaption><p>Under <strong>General access</strong>, select <strong>Anyone with the link</strong> and set the access role to <strong>Viewer</strong></p></figcaption></figure>

Stockeo should now be able to access the Google Sheet when processing the feed.
