- February 7, 2014 at 11:35 am #6949
I have a Travel Form created that works fine if it is not loading in HTML format but if it is it gives the following error regardless of browser or even device.
System.InvalidCastException: Unable to cast object of type ‘Newtonsoft.Json.Linq.JValue’ to type ‘Newtonsoft.Json.Linq.JArray’. at PerfectForms.HTMLPlayer.Form.Controls.TableControl.SetDataJSON(JObject jobject) at PerfectForms.HTMLPlayer.Form.Controls.BaseContainerControl.SetDataJSON(String json, String lastShownPageId, String workflow, Dictionary`2 mappingDoc) at PerfectForms.HTMLPlayer.Form.FormX.SetDataJSON(String json, String lastShownPageId, String workflow, Dictionary`2 mappingDoc) at PerfectForms.HTMLPlayer.Player.FormSession..ctor(PlayInfo playInfo, IFormSessionServer server, String lastShownPageId, XPathDocument mappingDocXpath, Boolean isSubmission) at PresentationServer.Controllers.FormController.Submit(String jsonVal, String lastShownPageId, String submitAsChild, String linkId, String notification, String instanceGUID)
Any direction on where to start trouble shooting or to correct this would be helpful.
AndrewFebruary 7, 2014 at 11:44 am #6954
Dennis @ PerfectFormsBlocked
Flash is much more forgiving or errors in behaviors and logic than HTML. Start by auditing all of the behaviors associated with the submit action. Make sure to check all of the associated behaviors as well. In other words, if a field is set, is there a behavior on when that field changes data? Is there a “form is closed” behavior? Look for incomplete behavior objects, flawed logic, etc…
If that bears no fruit also look at your tables. The error does reference table controls as well.
You must be logged in to reply to this topic.