cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft Graph SharePoint - Create Folder Error

BenjaminGarton
Level 2
Hi

I am having an issue creating a folder using the Microsoft Graph SharePoint connector. 

I have created an object where I can pass in a path, and it works its way down the path getting the folderid of each parent folder until it finds a folder that doesn't exist, and at that point it tries to create the missing folder.

The message I am being returned is :

Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 400
HTTP Response Content: {"error":{"code":"BadRequest","message":"Resource not found for the segment 'children'.","innerError":

The AccessToken, SiteID and DriveID are the same ones that I am using in Get Drive Items which works without issue.

What am I missing here?
7400.png

------------------------------
Benjamin Garton
Consultant
Virtual Operations
Europe/London
------------------------------
6 REPLIES 6

ewilson
Staff
Staff
Hi @Benjamin Garton,

​I believe I know what the problem is. There's a bug in the SharePoint connector on a couple of the file-related actions. We're addressing it now and should be pushing out an update to the connector shortly. I'll post a note when it's on the DX.

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Thanks Eric. For now I have gotten around it by using the standard Upload action which then automatically creates the required folders. 
Do you know if the SharePoint Upload Sessions object has similar issues? I got an error from it but as the 'regular' upload action worked I haven't investigated further.

------------------------------
Benjamin Garton
Consultant
Virtual Operations
Europe/London
------------------------------

@Benjamin Garton,

It looks like I spoke to soon. I thought we had a malformed URL on the Web API definition, but we just ran several validation tests and the URL is valid. So back to square one. Just to be sure, the drive ID you're specifying is something in the form of:

​b!aqgWxYEI9Ui0TkdDxyoNwJ13-eJIKLVFoQQ1-4ojlqKinmuwhaxASbLb7LxXnDXu

Whereas the parent folder ID is in the form of:

01KEHKGKL6Y2GOVW8465BZO354PWSELADS

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Yes exactly like that. And that drive/folderid setup is working to determine folder contents and also for the upload. It just doesn't work to create the folder.

------------------------------
Benjamin Garton
Consultant
Virtual Operations
Europe/London
------------------------------

@Benjamin Garton,

We just pushed a change to the SharePoint connector that I think may address your issue. Version 2.2.0 is the latest.

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Sorry for my delayed response I have been OOO. Am testing now and will let you know the outcome. Thanks Eric.

------------------------------
Benjamin Garton
Consultant
Virtual Operations
Europe/London
------------------------------