HPE Morpheus Enterprise Software
1856403 Members
5964 Online
104112 Solutions
New Discussion

Re: Error processing option list , Make sure the final dataset is an array"

 
Not applicable

Error processing option list , Make sure the final dataset is an array"

Hello,

Am making an API call to my application , it returned e an error “Error processing option list , Make sure the dinal dataset is an array”

How to sort out this ?

1 REPLY 1
cbunge
HPE Pro

Re: Error processing option list , Make sure the final dataset is an array"

You have to translate the data to return as name/value pairs. Request and Translation scripts are written in JS. A good starting point is using this as your translation and modifying to return the correct results:

for(var x=0;x < data.length; x++) {
  results.push({name: data[x].name,value:data[x].id});
}

Check out this site for a bit more details:
https://docs.morpheusdata.com/en/latest/library/options/option_lists.html