Skip to main content
Nintex Community Menu Bar
Answer

Upload file on subsite document library

  • February 8, 2017
  • 7 replies
  • 65 views

Forum|alt.badge.img+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

Best answer by TomaszPoszytek

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

7 replies

TomaszPoszytek
Forum|alt.badge.img+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


Forum|alt.badge.img+3
  • Author
  • February 22, 2017

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


Forum|alt.badge.img+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.


Forum|alt.badge.img+4
  • Rookie
  • January 14, 2019

Hi Yoav,

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


Forum|alt.badge.img+2
  • March 3, 2020

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

This action works beautifully for me?

 


Forum|alt.badge.img+2
  • March 3, 2020

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.


Forum|alt.badge.img+4
  • Rookie
  • March 3, 2020

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