Forum Discussion
"Create New Folder" error "The system cannot find the path specified" incase the Path contain "#"
Now everything is working well, but when i added a folder with a name that contain "#" such as "Invoice #100" , the action will fail with this error:-
{"error": {"code": 502,"source": "flow-apim-msmanaged-na-centralus-01.azure-apim.net","clientRequestId": "6295d836-eda6-4f8c-b1bf-281f321705a7","message": "BadGateway","innerError": {"status": 500,"message": "The system cannot find the path specified. (Exception from HRESULT: 0x80070003)\r\nclientRequestId: 6295d836-eda6-4f8c-b1bf-281f321705a7\r\nserviceRequestId: b3715ba1-a0da-0000-3d3b-9a38139b0dee"}}}
- Rob_ElliottBronze Contributor
johnjohn-Peter my immediate, somewhat flippant, response would be "well don't use the # then!". The # is not adding anything at all. It's like when people add the word Date to a date column: pointless. However if you do want to use the # then it's a special character so try Invoice%23100.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)- johnjohn-PeterIron Contributor
Rob_ElliottThanks for the reply,,, if you can convince the client then i will be more than happy :). but they have folders inside Z drive that they upload them in bulk...
Now i tried to Encode the value before defining it inside the Create Folder action, but this raised the same error.. now for a reason or another power automate is encoding the # as %2523 ... this is the value i get when i pass the # inside "Get Folder Metadata using Path" action, check the Id field inside the Output section 999999999#43 has been encoded as 999999999%252343 . as follow:-