web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Folder Metadata us...
Power Automate
Unanswered

Get Folder Metadata using Path - String path not working

(0) ShareShare
ReportReport
Posted on by

Good day community,

I'm trying to check if a Folder exists in a SharePoint Document Library before creating a new one, since currently if it exists, the create folder simply replaces the existing folder. 

Basically I try to "Get Folder Metadata using Path"  by inserting the PATH from a VARIABLE to check, and if success then folder exists and if not then it doesn't.

The problem is it doesn't accept the folder path i am trying to pass from a variable

Attached a screenshot of the error, any help is appreciated

 

Error text:

InvalidTemplate. Unable to process template language expressions in action 'Get_folder_metadata_using_path' inputs at line '1' and column '2793': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline_1']['connectionId']' cannot be evaluated because property 'shared_sharepointonline_1' doesn't exist, available properties are 'shared_sharepointonline'. Please see https://aka.ms/logicexpressions for usage details.'.

 

 PATH ERROR.png

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    Are you using the PowerApps button as the trigger?

    If yes, after you edited the flow, you need to remove the flow from the specified app and re-add it again, then this error will be solved.

    Please take a try and check if the issue still exists.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-bacao-msft ,

    I'm now using a manual trigger just to test the correct syntax to use with my "PATH" field

    This is my actual path /CL DIGITIAL ARCHIVE/TEST123

    I think there should be %2FCL%20DIGITAL%20ARCHIVE%2TEST123

    Still, it doesn't work - It doesn't make any sense

    Any advice going forward?

  • v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    You could export this flow as .zip file and import it as new flow, after configuring the connection, this error should be solved.

    https://flow.microsoft.com/en-us/blog/import-export-bap-packages/

    Please take a try.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Apologies for my stubbornness @v-bacao-msft 

    Your suggestion worked, all set now 🙂

    Thank you for your help

  • pauldj Profile Picture
    150 on at

    I am having a similar issue with the "Get_folder_metadata_using_path" Action results in the error: 

     

    Folder not found
    clientRequestId: 1d96e901-1f9a-47fb-bd3d-0f5a2e517388
    serviceRequestId: 1d96e901-1f9a-47fb-bd3d-0f5a2e517388

     

    The flow has worked for over 8 months or more in a live environment and suddenly stopped working.

    Anyone have this issue and have a resolution for this?

  • DannyB72 Profile Picture
    on at

    Hi, 

    i have the same issue... flow worked without any problems for months and now suddenly for each flow-execution "folder not found"-error - the requested folder still exists in library. 

    Solution to this is highly welcome 🙂

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @pauldj  & @DannyB72 ,

    did you try the earlier suggestion of recreating the flow - that fixed my issue back then and haven't been facing any issues recently (Not that I'm aware of - no one reported any errors yet)

    Hope this helps 

  • Verified answer
    pauldj Profile Picture
    150 on at

    Hi @Anonymous  Yes, the Dynamic Content "Folder path" has been changed by Microsoft, I have an open Case with them now. The flow will not work as is - there is an issue with the ending slash "/" and the only fix right now is to remove it via a compose action. I added a post regarding the solution to my specific problem here 
    https://powerusers.microsoft.com/t5/General-Power-Automate/Re-Folder-Not-Found-404-error/m-p/1233253

     

    Also I have this and other flows all working on lists in SharePoint, not in an app, so removing and re adding didn't make a difference, the connector is the issue suddenly adding a "/", maybe different within apps... but there seems to be a lot of users with this issue right now.

  • DannyB72 Profile Picture
    on at

    Hi pauldj,

    i've updated the flow following your advice and it runs again - thank you 🙂

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard