Workflow REST Generator crashes when using Create Response Content

book

Article ID: 172565

calendar_today

Updated On:

Products

Workflow Solution ServiceDesk

Issue/Introduction

When using either "Create From Request" or "Create From Sample" in the REST Generator to create "Response Content" the generator crashes.

Cause

The reason for the crash is empty arrays in JSON that have no items in them and have no type defined. The next step in the wizard is generating a (static) data type for the JSON Response Content. If the array does not have a defined type, this fails and causes the wizard to crash.

Environment

Workflow 8.1
ServiceDesk 8.1

Resolution

This behaviour has been reported to Symantec Engineering for review.

The only way to get this working is to make sure there are objects in all arrays. Of course these need to be of the right type for the data type to work properly later when request should return data for these arrays.