"The given path's format is not supported"


Help needed! I encountered this error when trying to create folder.

“The given path’s format is not supported”.

I am using variables in Create Directory activity and my variable type is “String”.


Hi @Cheang … Could you please try this…


Hi @prasath17
Thanks, tried with \ but it’s still having the same error.


I recommend to use System.IO.Path.Combine method as the following.


It will reduce trouble of path separator.


1 Like

thanks… but it doesn’t work as well. I still getting the same error message.

Hi @Cheang

Could you show what the value inside pathparentFolder and sunFolder… thanks


Place a log message activity and pass the PathParentFolder.ToString+""+SubFolderName and check, so this may help you to track the error


my PathParentFolder is


and my SubFolder is “Direct buy”

It’s actually from a read range of an excel file.
So what I’ve done is using Get Row Item for PathParentFolder and SubFolder from the datatable (excel) and create the SubFolder in the PathParentFolder.

Currently my uipath studio is unable to install “Sharepoint package”. Was wondering if this is causing the error.


Read Range activity works if it is a local file

For sharepoint related things you have to either install the package / you download it locally and upload again

Hope this may help you