Server, cannot find macro
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I am getting the error msg :
- Cannot find macro "PDF Input\PDFInput.yxmc". (Tool Id: 1)
How can I use a macro on the server? I have copied it to the folder that my workflow is using.
- Labels:
- Custom Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @wonka1234
The macro will need to be accessible by the server machine.
You will need to store the macro in a network location that the server can access.
If you go to Options --> Advanced Options --> Workflow dependencies.. you can edit the path of the Macro to the network location that the server can access.
Hope this helps. If it does, please like the post and mark it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can also add the macro to the upload package when saving to the Gallery. Save a Workflow to Gallery
In the Save Workflow window
- Select your Workflow Options.
- Manage workflow assets: Select to manage the assets associated with the workflow. Be sure to select your macro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Additionally, I have found that I need to often edit the XML if I'm using the macro from a macro directory that I have mounted to Designer. It will often in XML be macro="..\..\location\macro.yxmc". I have found that I have to hard code it to a URI mode, save it as a second yxmd, test it and make sure you don't have the dreaded question-mark-in-place-of-your-macro, and then upload.
To edit the XML, bring any yxmd (or yxwz) into a Notepad++ and look for <EngineSettings Macro= in Notepad++.
The part in the red box is the part that I substituted from "..\..\..\" to the full URI version of the location.
And, yes, the Gallery Server must be configured to have access to this shared drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I know this is an older post, but wanted to add some context that helped solve the problem for us. Check if the Designer on your machine has user settings configured to map a macro repository. Those settings can be found here: Options > User Settings > Edit user settings > Macro tab. When that is setup for a user, they should have a matching tool palette folder containing the macros found in that location. If a user drags a macro from that macro tool palette, then the following items needs to checked before the workflow will save to Alteryx server:
- The macro folder path in the user settings macro tab should be in UNC format
- The above mentioned path should be accessible by the run as user that will be selected (or chosen by default) when saving the workflow to server
- IMPORTANT: your Alteryx server admins need to log into the server machine(s) and open Alteryx Designer as an administrator, navigate to the macro tab within user settings and setup the same macro folder path with UNC format
Provided all three of those things are done, then you should not see a validation job error with the "unable to find macro" message.
