Solved

Upload file on subsite document library

  • 8 February 2017
  • 7 replies
  • 25 views

Badge +3

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 [InputFileToUpload]"

 

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

icon

Best answer by TomaszPoszytek 10 February 2017, 23:58

View original

7 replies

Userlevel 7
Badge +17

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

Badge +3

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

Badge +2

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.

Badge +4

Hi Yoav,

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

Badge +2

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


This action works beautifully for me?


 

Badge +2

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.

Badge +4

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

Reply