# Intermittent Credential Error in mysql node: "Credential with ID XYZ does not exist"

**URL:** <https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184>\
**Category:** Questions\
**Tags:** credentials, mysql\
**Created:** [14. März 2025 um 06:25 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184 "2025-03-14T06:25:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_v\_e\_n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/s_v_e_n/32/47537_2.png) [@S\_v\_e\_n](https://community.n8n.io/u/S_v_e_n)\
**Post date:** [14. März 2025 um 06:25 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/1 "2025-03-14T06:25:31Z")

</div>

Hey everyone,

I’m experiencing a strange issue with my n8n setup. Sometimes my MySQL nodes fail with the error:

> **Credential with ID “{id}” does not exist for type “mySql”.**

However, other times, the exact same flow runs without any issues. The credentials haven’t been changed, and I’m not sure why this is happening.

### **What I’ve checked so far:**

- The credentials exist in **Settings → Credentials**
- The Credential ID hasn’t changed (as far as I can tell)
- No major changes in my n8n environment

Has anyone else run into this issue? Any insights or fixes would be greatly appreciated!

Thanks in advance! 🙂

---

<div class="post-metadata">

**Author:** ![ThinkBot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thinkbot/32/62172_2.png) [@ThinkBot](https://community.n8n.io/u/ThinkBot)\
**Post date:** [14. März 2025 um 19:32 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/2 "2025-03-14T19:32:46Z")

</div>

Could you provide your workflow json to see if anything is odd in the logic or if you are dynamically setting the credential ID and sometimes it may be wrong?

---

<div class="post-metadata">

**Author:** ![S\_v\_e\_n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/s_v_e_n/32/47537_2.png) [@S\_v\_e\_n](https://community.n8n.io/u/S_v_e_n)\
**Post date:** [17. März 2025 um 09:13 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/3 "2025-03-17T09:13:50Z")

</div>

> [@ThinkBot](#):
>
> he logic or if you are dynamically setting the credential ID

The funny thing is that the credentials are fixed… That’s why the error message is so extremely strange and it can’t really be.

---

<div class="post-metadata">

**Author:** ![PMKA](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pmka/32/65621_2.png) [@PMKA](https://community.n8n.io/u/PMKA)\
**Post date:** [18. März 2025 um 01:09 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/4 "2025-03-18T01:09:06Z")

</div>

Im also seeing this, Localhosted N8N on version 1.83.2, my Microsoft SharePoint OAuth2 API credential will connect or reconnect from the credential menu fine, But in a workflow I get Problem in node ‘GET web context‘

Credential with ID “Qo7da0I6hsUnGFev” does not exist for type “microsoftSharePointOAuth2Api”. regenerating a new Secret in the Azure app registration yields the same result, successful connection in the credential menu but the error in the HTTP node

---

<div class="post-metadata">

**Author:** ![ThinkBot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thinkbot/32/62172_2.png) [@ThinkBot](https://community.n8n.io/u/ThinkBot)\
**Post date:** [22. März 2025 um 18:14 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/5 "2025-03-22T18:14:03Z")

</div>

I would advise for now then to try do manual oauth requests, as this may be a bug if setup was done correctly.

---

<div class="post-metadata">

**Author:** ![\_jd](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/_jd/32/25928_2.png) [@\_jd](https://community.n8n.io/u/_jd)\
**Post date:** [1. April 2025 um 16:06 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/6 "2025-04-01T16:06:56Z")

</div>

I’m having the same issue with Gitlab API authentication, node is failing randomly after X runs and suddendly aborts.

---

<div class="post-metadata">

**Author:** ![satonotdead](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@satonotdead](https://community.n8n.io/u/satonotdead)\
**Post date:** [7. Juni 2025 um 13:10 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/7 "2025-06-07T13:10:11Z")

</div>

Hello, does anybody figured this out?

---

<div class="post-metadata">

**Author:** ![KELLY\_Kelly](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kelly_kelly/32/64775_2.png) [@KELLY\_Kelly](https://community.n8n.io/u/KELLY_Kelly)\
**Post date:** [21. Juli 2025 um 12:04 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/8 "2025-07-21T12:04:22Z")

</div>

I’m also experiencing this similar issue, the credential works fine when executing the workflow manually in the editor, but when the workflow runs on schedule (or via trigger), it intermittently throws the error

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [19. Oktober 2025 um 12:04 UTC](https://community.n8n.io/t/intermittent-credential-error-in-mysql-node-credential-with-id-xyz-does-not-exist/88184/9 "2025-10-19T12:04:48Z")

</div>

Geschlossen, am 19. Oktober 2025 um 12:04 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
