Error: “The Tool ID [id] is not in the document”
Environment Details
When opening a workflow, the following error is received:
"The Tool ID [xxx] Is not in the document".
- Alteryx Designer
- List of other symptoms
- If you attempt to remove the duplicate questions and Tool ID references using a text editor, the error happens again for different Tool IDs.
- Show All Macro Messages Additional Information/Messages (Specifically Macro tools/R tools)
- If using a Macro, this message may also appear: "An error occurred while loading questions into the view. Error message: There was a duplicate question named "MacroInput [ID]"."
image.png Cause
Typically, this type of error is the result of the workflow XML getting corrupted.
Resolution
Solution A
Autorecover the File
- In designer, navigate to File > Open Workflow > Open Autorecovered Files.
- Select a version of the file prior to the corruption.
- Click "Open".
- Repeat this process until an uncorrupted version is found.
Solution B
Restore a Previous .bak File
- Navigate where the workflow is stored.
- Enable hidden items within File Explorer to search for .bak files (View > Show > Hidden Items).
- Right-click the .bak file and select "Rename"
- Delete the .bak extension from the name (so that the file ends in .yxmd, .yxmc, .yxwz, etc.)
- Reopen the file in Designer
Additional Resources