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

Unable to set REST URI query parameters as optional

SA-66127

Summary



Unable to set REST URI query parameters as optional. The request URI generated in the log displays as a blank string.


Error Messages



Incorrect URL


Steps to Reproduce

  1. Create a Connect-REST with query string parameters connecting to an external service.
  2. Do not set the query string parameters. Check the logs for the generated request URI.


Root Cause



A defect or configuration issue in the operating environment.


Resolution



Perform either of the the following local-changes: 
  • Set the pySkipBlankQueryParts input parameter value to true in the calling activity rule just before the step which invokes the Connect-REST method.
     
  • Use the below sample code in a Java step to set pySkipBlankQueryParts parameter value to true in the Parameter page before invoking the Connect-REST rule. 

    ParameterPage pp = tools.getParameterPage(); 
    pp.putString("pySkipBlankQueryParts", "true"); 
Suggest Edit

Published October 12, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

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

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