Workflow webhook problem -- "your workflow contains resources that are not configured for the

I have this workflow that does two things.

First, take values passed in through a POST request, and write the values to a database.

Second, it emails someone to point out that the database is updated.

I noticed that you can choose either a Production or Staging endpoint. So I have these:

https://ourstuff.com/url/application-endpoint?environment=production
https://ourstuff.com/url/application-endpoint?environment=staging

When I send a request to the first URL, it's fine. When I send to the second URL, I get this error:

{"success":false,"error":"Your workflow contains resources that are not configured for environment staging: aa41829d-6325-4260-8039-c650894e8842, retool_email","message":"Your workflow contains resources that are not configured for environment staging: aa41829d-6325-4260-8039-c650894e8842, retool_email"}

I have tried to remove the Email sending step, but that didn't work. Do I have to set up a staging environment somewhere, with separate tables?

Hi @Michael_Stabosz,

I've run into this before too in my workflow and it is caused by using Retool Email. Other providers can be configured to work in different environments, but you can't have any reference to Retool Email in a non-production environment. You can't just disconnect the block, you have to completely remove it. It's like Retool does a check on all the code/functions etc. and throws an error, even if that code block is essentially unreachable.

If you're using Retool DB, then yes, you also need to ensure the tables are set up in the environment you're using, but the email issue seems to be the source of the error messages you've listed above.

@MIkeCB

I did remove the Retool Email at one point, but it still failed. How do I set up different environments?

Wait... scratch that. Quick Google search turned up this: Configure resource environments | Retool Docs

1 Like

Hey @Michael_Stabosz - are you still running into issues with this? Removing the "Retool Email" block should definitely resolve the error that you shared in the original post, unless you have additional resources that also require a staging configuration. The link you shared in your most recent post is the right place to look in order to do this!

As a general rule, every resource that you're actively using will need a staging configuration if you want to execute a workflow in staging mode.

Let me know if you have any questions or are still running into issues! :+1:

This was basically the error. The staging environment existed, but had no tables in it. This morning, I copied all the tables over there, and removed the Retool Email thing, and the workflow worked properly.

1 Like