Support Article

Unable to pass -z and -Z to pxExtractDataWithArgs

SA-35948


Summary



An agent is configured to run an activity and this activity calls pxExtractDataWithArgs. When trying to pass -z and -Z arguments, the extract fails with an error that invalid arguments were specified. Adding quotes to the arguments does not allow the activity to be saved.


Error Messages



** Invalid pyArgs specified.


Steps to Reproduce

  1. Call pxExtractDataWithArgs from an activity.
  2. Try passing both -z and -Z.


Root Cause



A software use or operation error
The values were not being passed correctly.


Resolution



Perform the following local-change to pass -z and -Z to pxExtractDataWithArgs from another activity:
  1. Enclose the entire string in double quotation marks.
  2. Enclose each pzInsKey in double quotation marks.
  3. Escape the quotation marks around the pzInsKeys in order for the rule form to be saved.
    The value will look like this:

"-z \"PEGA-SAMPLE-WORK C-1\" -Z \"PEGA-SAMPLE-WORK C-1\""

Published April 3, 2017 - Updated April 28, 2017

Have a question? Get answers now.

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