# Building and Evaluating Data Agents -Snowflake Connection Error in All Labs: "Programmatic access token is expired"

**URL:** <https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662>\
**Category:** Building and Evaluating Data Agents\
**Created:** [August 17, 2026, 2:58pm UTC](https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662 "2026-08-17T14:58:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANDRES\_MAURICIO\_MENDOZA\_ESPINO](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ANDRES\_MAURICIO\_MENDOZA\_ESPINO](https://community.deeplearning.ai/u/ANDRES_MAURICIO_MENDOZA_ESPINO)\
**Post date:** [August 17, 2026, 2:58pm UTC](https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662/1 "2026-08-17T14:58:19Z")

</div>

Hi Course Staff and Community,

I am currently working through the **Building and Evaluating Data Agents** course, but I am unable to proceed because I am encountering a `DatabaseError` across **all the labs**.

The error occurs right at the beginning when trying to import from `helper` (which initializes the Snowflake session). It seems the platform-level Snowflake credentials have expired.

Here is the specific error message I am getting at the end of the traceback:

DatabaseError: 250001 (08001): Failed to connect to DB: SFSENORTHAMERICA-DEEPLEARNING\_08\_2025.snowflakecomputing.com:443. Programmatic access token is expired. [ec5b258d-e2ea-4c47-9ac7-6dbc0f1fa2da]

And here is the code cell that triggers it:

from helper import cortex\_agent, State

Since this is happening in every single lab environment, it looks like a system-wide issue with the provided `.env` credentials rather than a code mistake.

Could someone from the technical team please look into this and renew the programmatic access tokens for the lab environments?

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [August 17, 2026, 4:08pm UTC](https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662/2 "2026-08-17T16:08:12Z")

</div>

Thanks for reporting! I’ve encountered the same and just reported to the teams.

 ![Screenshot 2026-08-17 at 12.07.31 PM](https://global.discourse-cdn.com/dlai/original/3X/c/5/c5016ee6b87126a92f2be44d77678d1d3c044497.jpeg)

I will share updates this week!

Lesly - DLAI

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [August 31, 2026, 2:20pm UTC](https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662/3 "2026-08-31T14:20:02Z")

</div>

Hello! Thank you for your patience! All notebooks are working now!

Happy learning,

Lesly - DLAI

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [August 31, 2026, 2:20pm UTC](https://community.deeplearning.ai/t/building-and-evaluating-data-agents-snowflake-connection-error-in-all-labs-programmatic-access-token-is-expired/894662/4 "2026-08-31T14:20:09Z")

</div>

Closed on August 31, 2026, 2:20pm UTC


