Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us