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
- Create a Connect-REST with query string parameters connecting to an external service.
- 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");
Published October 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.