The Issue
When running certain REST Tasks in Code Stream, the pipeline execution fails on this task with:
Unexpected character ('\\' (code 92)): was expecting double-quote to start field name \n at [Source: (io.netty.buffer.ByteBufInputStream); line: X, colume: X]"
The Workaround
You need to flatten/compact/stringify the JSON payload of your task in the pipeline. So that is a single line.
- This is my original payload for the REST task.
- I then paste this into https://jsonformatter.org
- Click “Minify/Compact”
- Copy the flattened JSON on the right hand side.
- Paste this data back into my payload. Which you’ll now see shows as a single line 1.
The Fix
This issue is resolved in vRealize Automation 8.5.1.
Regards