How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (<refname>': escaped absolute path not valid

swapnilagrawal
Kilo Contributor

Hello All,

I have configured REST GET Method, its working fine when I'm Testing from REST Message GET method, but the same method when I called from workflow activity it giving me this error.

java.lang.IllegalArgumentException: Invalid uri 'https://***.****.****.*****.***:9060/**/***/**/**/ReferenceError: "name" is not defined. (<refname>': escaped absolute path not valid

find_real_file.png

Please guide to resolve the issue.

Thanks & Regards,

Swapnil Agrawal

10 REPLIES 10

heinkoster
ServiceNow Employee
ServiceNow Employee

I believe that Sergui means that a possible workaround is: To move the file to a directory WITH OUT spaces in the name. 

The Error message is related to Unexpected characters in the URL: 
Alternatively when using a URL with spaces or other special characters in a script is to URL encode these. 

If you are seeing this issue using a script try using: 

var urlencoded=encodeURIComponent('/some/path/with spaces/');