REST step in Flow Designer Actions does not work

Yuhei Katsumi
Tera Contributor

I got a below error on "D CONSUMER:Test the Action" on Lab 4.2

on ServiceNow Administration Advanced On Demand [日本語].

 

Invalid uri 'https://xxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_query=ORDERBYDESCsys_created_on&sysparm_fields=number%2Cstate%2Cshort_description': escaped absolute path not valid

 

How can I resolve this error?

 

 

***Memo1***

I got a expected result successfully with curl command below:

curl --user webservices.connection:xxxxx "https://xxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_query=ORDERBYDESCsys_created_on&sysparm_fields=number%2Cstate%2Cshort_description"

 

***Memo2***

Firstly, I got a below error on Lab4.2:

Invalid uri 'https://xxxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_fields=number%2Cstate%2Cshort_description%EF%BB%BF&sysparm_query=ORDERBYDESCsys_created_on%EF%BB%BF': escaped absolute path not valid

 

But I resolved the problem of %EF%BB%BF .

 

 

*** consumer instance environment ***

Build name: Tokyo
Build date: 09-16-2022_1610
Build tag: glide-tokyo-07-08-2022__patch1-09-01-2022

 

Because above curl command work successfully, publisher instance must not have any problem.

 

2 REPLIES 2

darren_halliday
ServiceNow Employee
ServiceNow Employee

Hi there,  I believe there maybe a small bug in the REST Step.  You create the REST Step to create the API call.  You put in the paramaters:

(i) Base URL

(ii) Resource Path

(iii) sysparm_fields

(iv) sysparm_query

I believe in error at the end of the parameters is placed a hidden "space" which is causing a problem with the URL.  The solution is to go to each parameter and at the end use the 'backspace' key on your keyboard.  It should delete these hidden spaces.  If the parameter remains in tact after the use of the backspace, you know you have deleted these hidden spaces.  Try that.  Darren

Thank you for your reply.

I tried "to go to each parameter and at the end use the 'backspace' key on your keyboard", 

but it just deleted last character.