Skip to main content
Nintex Community Menu Bar

MOSS Components Document Event

  • December 29, 2007
  • 1 reply
  • 5 views

Forum|alt.badge.img+7

Hi,

Wonder if anyone's seen this: 

I drag a document event onto my process and configure it to upload a document to a MOSS workspace. I set all my options in the wizard, compile the process and export.

When I try to upload the document, the process always crashes with "System.FormatException: Invalid character in a Base-64 string."

So I generate code on the event and comment out these two lines:

 

         //    K2Base64.K2Base64 K2B64 = new K2Base64.K2Base64();
        //    oByte = K2B64.DecodeBase64(K2.ProcessInstance.DataFields["FilePath"].Value.ToString());

And replace them with one lifted verbatim from the code that gets generated against a SPS2003 workspace:

oByte = System.Text.ASCIIEncoding.ASCII.GetBytes(K2.ProcessInstance.DataFields["FilePath"].Value.ToString());

And now I can upload documents without an issue.

Obviously my problem seems to be solved but I'd be interested in any thoughts on this behaviour. Is it just a bug in the generated code?

Thanks, Richard 

1 reply

Forum|alt.badge.img+10
  • Nintex Partner
  • December 29, 2007

Never seen that exact problem.  The only thing similar i can think of is creating new list entries in moss where the datatype i am feeding it does not match the column type.


 


Anyone else seen this.