Code 500 JSONArray[0] not found.

1639
6
02-08-2017 07:55 AM
TL2
by
Occasional Contributor III

I have attached the table below. 

I am able to create the table and download it to my device. I get the Code 500 JSONArray[0] error when I try to submit.

I am trying to include multiple photos in a repeat, not sure if that is my problem?

Any suggestions?

0 Kudos
6 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Tucker,

I'm not seeing the JSON array error, but I am seeing a failure to submit data caused by the hidden 'Auditdate_' field. By default, hidden questions are of type 'text', issues arise in converting that to date on submission.  You can add a column named 'bind::type' and set the type of data for that column to 'date' - this leads to successful submission for me.

0 Kudos
TL2
by
Occasional Contributor III

Thanks James, 

You rock! 

Also, should I be able to do a relevant (='true') on a repeat?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Yes, relevancy works on displaying repeats.

0 Kudos
TL2
by
Occasional Contributor III

Is ${ID_1}='true' the correct syntax.  When I do this it hides the repeat, but when I enter something in ID nothing happens.

0 Kudos
TL2
by
Occasional Contributor III

I am trying to make it so any entry displays the repeat.  I see now that when you type 'true' that makes it display.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Tucker,

I would use the string-length function to evaluate whether a text field is blank or not:

string-length(${ID_1}) > 0