Hi,
A k2 smartform which contains five attachments saves the attachment data (with mandatory validation) to the SQL table using SmartObject. When user submits the form, some columns value of the one record is "Null" in SQL table. For example., 2 attachments column contains data and other 3 columns contain"Null" value and saving the 5 attachments in one smart object call. When I tested the form again, even if attachment control is empty. the saved value in table is <file><name>scnull</name><content>scnull</content></file> but not "Null" value. I checked the form error log in SourceCode.Forms.Runtime.error under K2 blackpearlHost ServerBin folder. I found that error was thrown the almost exact time at record created in SQL. Also same error is found in Event Viewer as well.
It seems like the error was internally thrown during middle of the saving attachments and it doesn't relate to my form logic. How can I do further troubleshooting ways to find out the root cause? Appreciate for any advise.
24/10/2015 3:45:53 PM: 2015-10-24T15:45:53: 5ERR] Source:<SourceCode.Forms.Runtime.ClientServer.GetFormAx(string culture, Guid guid, string name, int version, string stateName, bool loadViews)> Message=<GetFormError> Arguments=<SE_RegisterFrm>
System.ArgumentException: State 'favicon.ico' not found
at SourceCode.Forms.Runtime.Form.Save(ArchiveX ax, String stateName)
at SourceCode.Forms.Runtime.ClientServer.GetFormAx(String culture, Guid guid, String name, Int32 version, String stateName, Boolean loadViews)