TROUBLESHOOTING: My APIs error "Invalid orchestration flow – no batch export found in the flow..."

Q. I received the following error when I ran a flow from a My APIs endpoint:

Message: Invalid orchestration flow – no batch export found in the flow
Code: invalid_orchestration_flow

What could be causing the problem?

A. integrator.io cannot find exported data to process in the flow. The most likely cause is that the flow is initiated by a webhook listener (in a “real-time” flow).

Real-time flows are triggered by a calling application sending information to integrator.io. Starting a flow via a flow.run() call – without any data to stream – necessarily generates an error.