This seems to be the same problem mentioned here.
https://community.retool.com/t/multi-step-function-parameters-not-found/55608/5
I think I found the way to reproduce the error, and a quicker solution than what was on the thread I found while researching the bug.
Steps to reproduce:
- Create a loop step in your workflow with parameters
- Map values to parameters on the loop step
- Edit the loop function, and remove one of the parameters with a value mapped
- Re-run the flow, and you'll get the "Function block parameter not found" error on the metadata of the loop step.
What's happening:
When the parameter is removed from the loop, it gets removed from the loop's function block, but not the loop block itself. This causes an error at runtime.
Another way to fix the problem
The other thread about this talked about rebuilding the entire loop step. I think this is faster and easier than that solution, especially if you're talking about multi-step loops.
- From the ellipsis menu in the upper right corner, export the workflow to JSON
- Open the JSON file, and find the block in
$.blockDatathat matches the loop object. Find the key underoptions.functionParametersthat matches the ID from your error message. Remove this key and value. - Save the JSON file.
- From the ellipsis menu in the upper right corner of the workflow, import your modified JSON file.
If, like me, you removed more than one parameter, you may need to do this several times until you get rid of all the missing parameters from the loop block. The error message that I found unfortunately only shows the first missing parameter's ID.