Skip to main content

Hello,


I have one site collection with one subsite.

 

I create a site workflow for technical reason.

 

I would like to use "Office 365 Upload file" action but i have an error :
"An exception occurred while processing parameter rInputFileToUpload]"

 

See my configuration below.

 

 

This is the "ServerRelativeUrl" of my document :

 

/sites/<NameSiteCollection>/<SubsiteName>/<MyLib>/<FolderParent>/<FolderChild>/<myDoc>.docx

And i put this value on that field in Nintex Action : 

 

198515_pastedImage_5.png

 

I don't understand why this doesn't work because "ServerRelativeUrl" is the correct parameter if i see the nintex documentation, they say we have to put the relative url of the document "<LibraryName>/<MyDoc>.docx".


This value is returned from SharePoint REST API :

198517_pastedImage_1.png

 

Thanks in advance to help me happy.png

Hi,

This field requires a site relative URL. So if you have your workflow in the same site, as the library where you keep the file you want to upload, then from your URL:

/sites/<NameSiteCollection>/<SubsiteName>/<MyLib>/<FolderParent>/<FolderChild>/<myDoc>.docx

only this part should be left:

/<MyLib>/<FolderParent>/<FolderChild>/<myDoc>.docx

Regards,

Tomasz


And if you want to upload file into the subsite and not into sitecollection ?


Did you figure this out? I can't get a file to upload from a site doc lib to a subsite doc lib.  Or perhaps I don't have the correct Destination site URL and the Folder Path. This is how i have it set up.


Hi Yoav,

Have exactly the same problem, did you get it working?


Hi @EricV , Have you managed to get this resolved.



This action works beautifully for me?



 


Hi @yoav_rappaport , hopefully you have managed to resolve this issue by now?



if not the error I can see on your screen capture is the destination site URL, you cannot use the 'WC:Current site URL' as it is the URL of the site you are executing the workflow from. you need to add the URL of the sub site in it.


Yes, we used the same sort of configuration. Thanks for your response! :smileyhappy:


Reply