Cannot create a SharePoint folder

hi, I get an error in the Create Folder activity of the SharePoint Custom Activities Package.

Message: List ‘xxx’ does not exist at site with URL ‘ttps://xxxxxx’.

I think this is a problem with SharePoint permissions. Where should I check it?

  • Upload File and Get File activities work normally, so URL and Library Name are correct.
  • I can create a folder manually in the browser.
  • I can create a folder with the Create Folder activity at another site in the same environment.

Package
SharePoint Custom Activities Package
https://go.uipath.com/ja/component/sharepoint-custom-activities-package

There are two types of sites, and there is an error in production.

  • ttps://aaa.sharepoint.com/sites/bbb/ccc/ddd/production/library1/Forms/AllItems.aspx
  • ttps://aaa.sharepoint.com/sites/bbb/ccc/ddd/development/library1/Forms/AllItems.aspx

SharePoint application scope
-URL:“ttps://aaa.sharepoint.com/sites/bbb/ccc/ddd/production”
-UserName:“user”
-Password:“pass”
-SharePoint Instance Type:Online

Create folder(Exception)
-LibraryName:“library1”
-Item URL:“add Folder”

Upload file(Complete)
-Item URL:“library1”
-Local Path:“C:\test.txt”

@Yuuki , i would suggest you to add sharepoint folder in your local drive and then you can use it as a local path and can perform folder management operations.

#HappyRobotics

hi @Yuuki,

Did you manage to create a folder using the Sharepoint activitities?
I’m facing the same issue with creating a new folder. I tried every combination with library name and relative URL but none of them seems to be working.

I want to create a new folder at the following path using the sharepoint activities: (adding the sharepoint folder to the local drive is not an option)
https://CompanyName.sharepoint.com/sites/HR/Innovation/Shared%20%20documents/folderABC/

The folder was created by UI operation in the browser.
The other day, I found out why I couldn’t create a folder.

The display name when the document library was opened in the browser was changed, and it was because it did not match the URL.
The URL was the robot ID, and the display name was the job ID added to the robot ID.

Hi! Did you manage to solve this? I’m having the same issue to. I can upload files etc, but cannot get Create Folder to work. I’ve tried every combination of URLs I can think of but always gets the error: “Create folder: List ‘xyz’ does not exist at site with URL ‘https://abc.sharepoint.com/path/to/site’”.

Yes, I got it working.
The direct URL of my folder was https://CompanyName.sharepoint.com/sites/HR/Innovation/Shared%20%20documents/folderABC/.

I used to following setting:
SP Application scope: https://CompanyName.sharepoint.com/sites/HR/Innovation
Library: Documents
Item URL: folderABC/

So for my case it has something to do with the ‘Shared Documents’ and ‘Documents’ part

5 Likes

Thanks. Yes now I finally solved it too. The thing is that, in your case, “Share Documents” is the so called internal name of the library and “Documents” is the display name. It is is the display name you should use. Not easy to know, and usually it’s not the way things work… I did like you and tried to use the path from URL. And I also had some confusion when it comes to what part of the URL represents the library and what is just subfolders… I’m new to working with SharePoint so… but finallay.

I’m facing the same exact error. What should be the right Library name?
I tried about thousand times and made sure the link is working fine, its the thing about “Library”

You should use the display name of the library. You can find your display name when you visit the root of your library in a browser. In my case this URL would be https://CompanyName.sharepoint.com/sites/HR/Innovation/Shared%20%20documents/.
On this page the display name is located in the header of the page. In my case the display name of my ‘shared documents’ page is ‘Documents’.

Hi, is there any other variant for this? Here’s an example of how my link looks like:

https://companyName.sharepoint.com/sites/Country/Airplane/2 General Documents/2.8 RPA/Folder number One/Folder Number Two/test/