Support Article
Cannot specify extract directory from Agent execution
SA-39663
Summary
User is using an advanced agent that calls a custom activity that in-turn calls the pxExtractDataWithArgs activity as recommended in the BIX help. The custom activity prepares the -P <outputdirectory> argument for passing to the pxExtractDataWithArgs activity. However, that argument is failing. This means user is unable to have a configurable output directory for the extract.
Error Messages
** [Rule-Admin-Extract.pyMessageLabel]pzInvalidExtractArgument -P]
Steps to Reproduce
1. Create an advanced agent that calls a custom activity.
2. In that custom activity call pxExtractDataWithArgs passing pyArgs = "-P /xyz/abc/def" (where /xyz/abc/def is a valid directory path on the server).
3. Trace the agent execution to see the error.
Root Cause
An issue in the custom application code or rules : As per the BIX user guide -P option is not available when running an extract rule with pxExtractDataWithArgs.
Resolution
Here is the explanation for the reported behaviour: The -i, -a, -p, -T, and -P command-line parameters are not supported for pxExtractDataWithArgs.
Published August 21, 2017 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.