How to catch a workflow error in Backend Workflows?

Hi guys,

How to catch a workflow error in Backend Workflows?

Example:

I created a backend workflow to send some data through an API call; in a bubble page, I schedule this backend workflow and pass the pre-determined parameters with the data I want to send.

But if any error occurs in this one, how could I catch the error? I can’t see any option in the backend workflows.

Hey @rafael.alima

This will break what you have set up already in your workflows, so be careful. It will add another layer on top called ‘body’. But you need to have this checked in the API Connector for the next step to see any errors. You will also need to re-initialize it after you make the change.

Does that make sense?

Hope that helps! :blush:

@j805 www.NoCodeMinute.com

For All Your No-Code Education Needs:

3 Likes

Hi @J805 thanks for your support,

Unfortunately it’s not inside a API Connector.

But is in Backend Workflow
image

I have this Backend Workflow →

and when I click in a button on my bubble page, it’s call this backend workflow

But I don’t know how to catch a error if an error occours inside this Backend Workflow.

Best Regards,

Rafael de Lima.

to complement this issue:

step 1 → Post Purchase Order, is an api call (externally). I use bubble to call this endpoint to post my purchase order to other system.

@Jici do you have any idea for this case? thanks all

If Post Purchase is AN API Call, follow what @J805 said to enable errors in responsve and allow workflow to continue. After that you can choose to create a DB thing, return DATA from API that will include the error for example.
If this is for debugging, you can also find error using logs (advanced)

3 Likes

@J805 and @Jici you both are awesome, I didn’t know that. When we check this box in the API call, we can get the error as a part of the body in anywhere of workflow. That’s amazing.

Thanks!

2 Likes

So glad that helped. :raised_hands::blush:

1 Like