Skip to content
Back

Issue Adding Environment Variables After Pushing New Function (Duplicate ID Error)

  • 0
  • Self Hosted
  • Functions
  • Web
JAV
22 Apr, 2025, 12:51

Hey everyone,

I just created a new function and pushed it successfully. Now I'm trying to add some environment variables to that function, but I'm hitting an error:

Variable with the same ID already exists in this project. Try again with a different ID.

Any ideas on what might be causing this or how to resolve it?

Thanks in advance for any help!

TL;DR
New function was successfully pushed, but encountering "Duplicate ID" error when trying to add environment variables. To resolve, delete the existing variable with the same ID and then add the new variable.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more