Form Dictionary Object reference not set to an instance of object
I have a workflow with a form which outputs to a System.Collections.Generic.Dictionary<System.String,System.Object>. After filling out the form I have a foreach loop which is meant to loop through the dictionary values and check if they're NULL.
ForEach is a ForEach<KeyValuePair<String,Object>>
foreach(item in formDictionary)
The first thing I run is and If statemenet checking --> String.IsNullOrEmpty(item.Value.ToString())
That^ works in Silverlight but in my HTML5 viewer it tells me that "Object reference not set to an instance of an object.". It's as if the objects in the KeyValuePair object are not initialized correctly.
Does anyone know what's going on here? Also can anyone else replicate this?
HTML5 Viewer 2.5.2
GE 4.4.3
GE Workflow
0
-
Ok I figured this out.
In my Display Form there is a field which has "Visible" set to false. That field is the OBJECTID and to the user this information is irrelevant. Additionally I don't want them to have the option to change it so I make it so they can't see it.
It appears to me that there is a _BUG_ in the HTML5 Viewer where the form cannot assign values to hidden fields inside the RuntimeModifications which results in a Null value error message.
Can someone from Latitude please replicate and advise when this will be fixed?0 -
We had this same issue after updating to GVH 2.5. One of our workflows stopped working and we had to submit a ticket to get it resolved. Turned out to be a field with visible=false. The workflow seemed to completely ignore the field (in our case it was a required field for a feature service so we could not post edits without it) and support said it was a bug. 0
Please sign in to leave a comment.
Comments
2 comments