Troubleshooting K2 Smartform

  • 24 November 2015
  • 3 replies
  • 45 views

Badge +1

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: [ERR] 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)

 

 


10816iAA8DFBA1A013D11D.png


3 replies

Badge +9

Have you checked the host server logs? if there are errors in the smartobject execution, it will show up there instead of the smartforms runtime error log.

Badge +1

Hi Ziqing,

 

Thank you for the reply.

 

I checked the Host file log. Below are the error message. However the message is more or less same as event viewer. Is there any other area that I can check and prvent the issue for future?

 

"630484","2015-10-24 15:45:53","Error","FormsClientServer","21041","GetFormError","SourceCode.Forms.Runtime.ClientServer.GetFormAx(string culture, Guid guid, string name, int version, string stateName, bool loadViews)","21041 A error occurred while getting Form SE_RegisterFrm","","","SIFDCK2:C:Program Files (x86)K2 blackpearlHost ServerBin","630484","25677c01cfb847c992bf03c56361c53f",""
"630485","2015-10-24 15:45:53","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling SourceCode.Forms.Runtime.ClientServer.GetFormAx, State 'favicon.ico' not found","","","SIFDCK2:C:Program Files (x86)K2 blackpearlHost ServerBin","630485","6c1083384dff4c8fbe6754be1f264176",""
"630486","2015-10-24 15:45:53","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Services.TCPClientSocket.InternalMarshal","2025 Error Marshalling SourceCode.Forms.Runtime.ClientServer.GetFormAx, State 'favicon.ico' not found","system","::1","SIFDCK2:C:Program Files (x86)K2 blackpearlHost ServerBin","630486","6b7ef3f3ac854c538cbcfb8063673ef1",""
"630487","2015-10-24 15:45:53","Error","Communication","8060","ProcessPacketError","SourceCode.Hosting.Server.Services.TCPClientSocket.ProcessMessage","8060 ProcessPacket Error, State 'favicon.ico' not found","system","::1","SIFDCK2:C:Program Files (x86)K2 blackpearlHost ServerBin","630487","534142dbca4f482fbf30e839872f5af1",""

Have this issue resolved? I am face this issue as well.

Anyone  have any idea on troubleshooting this issues?

Reply