Forum Stats

  • 3,814,319 Users
  • 2,258,860 Discussions


restapi value shown in variable somehow is different from when endpoint actually invoked in a packag

et4891 Member Posts: 17 Green Ribbon

I have a package which calls a restapi to download a file. The url is getting by refreshing a variable.

In the variable I checked that the url is exactly what is wanted but after the full package runs. An error was given, somehow the url but encoded. I tried using a browser console to decodeURIComponent to confirmed my theory, after it's decoded the url works totally fine.

How can I disable ODI to encodeURI while making a rest call or somehow able to decode it right before the call is made?

I made a text comparison to check the differ values

Left is the value I got after ODI invoked, right is after I copy and decode, and is also the exact copy of the value is ODI variable