
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 04-27-2021 10:55 AM
The Issue
If you're here, it's probably because you're seeing an unexpected result in the "Output Data" for your Data Stream action in Flow Designer. Instead of showing any output items, all you get is a big text dump starting with "index":-1.
Here's a trimmed example of the preview output from one of my affect actions, for illustrative purposes:
{"index":-1,"co_collection":"{\"serializationFormat\":\"JSON\",\"version\":\"1.0\",\"complexObject\":{\"name$\":\"dsareport\",\"$COCollectionField\":[{\"self\":{\"$cv\":{\"$c\":\"java.lang.String\",\"$v\"
Why It's Happening
This issue happens if the JSON representation of the output items would be too long for the preview window. By default, the preview caps out at 16384 bytes (approximately 22,000 characters). This limit applies to the sum total combined JSON output of all previewed output objects, it is not per-object!
If the displayed JSON would be longer than 22k characters, the preview fails. The failed preview will cause you to see garbage output in the preview, like that described above.
How to Work Around The Issue
The good news is that only the preview is affected. Even if the preview is showing garbage, you can still expect the actual output (that would appear in a staging table, for example) to be correct. This means you can get away with having the broken preview as long as you're confident that the actual output is correct.
If that's not good enough and you need the preview to work, you must raise the reporting size limit for flow variables. In order to raise the limit, you must modify the system property called "com.snc.process_flow.reporting.serialized.val_size_limit"
Alternatively, you could just try adjusting your action inputs to limiting the output in such a way that the preview data will fit within the default size limit!
- 1,352 Views


- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello,
Was there going to be more content? Right now, I'm unsure if this is an actual question for the forums or a lead-in to an Article...as this was posted as?
Please mark reply as Helpful, if applicable. Thanks!

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
The example output broke the Forum formatting. I had to go in and manually edit the article source to bypass the issue. I believe the article should be displaying properly now.


- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I see it now, thanks! 🙂
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
This one article saved my life. I was angry again, thinking I was doing something wrong. The ServiceNow developers should put the same message it appears in other cases so that we are aware that this is still because the output is so freaking long that I won't see the preview.