I am trying to save a completed Infopath form to different form library. I am using the Sharepoint Document wizard. Stepping thru the code it executes the UploadDocumentFromK2Field_ExecuteCode procedure just fine. The problem occurs during the UploadDocumentFromXmlAttachment_ExecuteCode procedure.
Error occurs at this statement...
Attachments ipAttachments = new Attachments(xmlValue, attachmentFieldEXPath); (see attachment)I have an attachment field in the Infopath form. At one point I removed the InfoPath attachment field but this code was still being hit. If someone could help I would really appreciated it. I am new to K2 but I can't seem to see anything wrong.