Skip to main content


 

Symptoms


SharePoint Documents Wizard with Save as PDF Control
 

Diagnoses


I am trying to get the PDF generated in the "Save as PDF" Control to save to SharePoint. Right now I have a simple process that is started when the PDF is generated in the Smart Form. The Start Event Passes the PDF ID generated in the SmartForm to the workflow. There is only one other event in the workflow. It is SharePoint Documents Event. I attached some screenshots to help visualize what I am describing. Capture.png is the workflow, and Capture2.pnt to Capture6.png is the steps of the wizard.

I am getting an error when I try to run this process. The error string is "Server was unable to process request. Invalid URI: The Uri string is too long."

Is there a way to work around this? I don't see how I can shorten the URI String.

Please let me know if you have any questions.
 

Resolution

When going through the SharePoint document event wizard, on the page with the SharePoint URL and document library K2 populates the filename field, this needs to be changed to something shorter as the value in there is XML data along with the filename.

So changing that should allow the file to be saved on the SharePoint. I was able to use the SharePoint Document event and with a short filename it did save the file to the sharepoint library. To do so I had to change the defaulted filename to something shorter, either hardcoded or to just the filename k2 field.




 
Be the first to reply!

Reply