Skip to main content

Hello,


 I'm using the Sharepoint Multiple document Event with MOSS and I don't find some help with this event. My process works well but there are no files upload on the moss library. With the single document event, it's work find.


 I have an aspx form using K2ROM. My files are first upload on a local directory, then I call the Event with "XML documents that contains attachments' option. I don't understand how its works, because my XML files is well filled :


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">


   <document FileName="NTUser.DAT.LOG" FolderName="D:inetpubk2rootSANOFI_ESMERALDATemp" />


   <document FileName="Sti_Trace.log" FolderName="D:inetpubk2rootSANOFI_ESMERALDATemp" />


</xs:schema>


I need some help.


 


Thx


Aude

Well I've made some change in my XMLField, looks like  :


<documents>


  <document>


    <FileName>spsdoc.xsd</FileName>


    <FolderName>D:inetpubk2rootSANOFI_ESMERALDATemp</FolderName>


  </document>


<document>


<FileName>StiTrace.txt</FileName>


<FolderName>D:inetpubk2rootSANOFI_ESMERALDATemp</FolderName>


</document>


</documents>


 


Now I have an error in my Multiple Document Event :


System.FormatException: Invalid character in a Base-64 string.
   at System.Convert.FromBase64String(String s)
   at SourceCode.K2Utilities.Encoding.DecodeBase64(String StringToDecode)
   at SourceCode.K2SPUtilities.InfoPath.Attachment.DecodeAttachedIpFile(String& AttachedIPFile)
   at SourceCode.K2SPUtilities.InfoPath.Attachment..ctor(String& AttachedIPFile)
   at SourceCode.K2SPUtilities.InfoPath.Attachments..ctor(String InfoPathDoc, String AttachmentsXPath)
   at K2Code3156.Main(ServerEventContext& K2)


 Someone can help ?


Tanhks a lot


After lot of test, I'm afraid that this event bring only files on SPS library, and not on my local machine 😥 The '' or ':' are not understand in :


oAtts = new SourceCode.K2SPUtilities.InfoPath.Attachments(
    K2.ProcessInstance.XmlFieldsl"AttachedDocuments"].Value, "spsdocuments/documents/document/folder");


Reply