vRealize Automation - Code Stream Header

vRealize Automation 8.5 – Code Stream – Unexpected character (‘\\’ (code 92))

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]"
vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Error
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.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Original Task

  • I then paste this into https://jsonformatter.org
  • Click “Minify/Compact”
  • Copy the flattened JSON on the right hand side.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Stringify compact flatten json

  • Paste this data back into my payload. Which you’ll now see shows as a single line 1.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Fixed Task

The Fix

This issue is resolved in vRealize Automation 8.5.1.

Regards

Dean Lewis

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.