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 / Action failed and no d...
Power Automate
Unanswered

Action failed and no dependent action succeeded. path for the new folder is not provided error

(0) ShareShare
ReportReport
Posted on by 2,249

I have uploaded the below excel in sharepoint document library in order to power automate to create folder structure

 

Veblitz_0-1719651099069.png

 

Flow steps

 

Veblitz_1-1719651156186.png

Expanding Applyto each step

Veblitz_0-1719652151976.png

 

Veblitz_2-1719651596185.png

Veblitz_3-1719651662589.png

 

Expanding Apply to each step

 

Veblitz_4-1719651760089.png

Veblitz_5-1719651849366.png

 

 

 

Categories:
I have the same question (0)
  • Veblitz Profile Picture
    2,249 on at

    Im able to get rid of error but im unable to create below structure dynamically from excel values 

    Veblitz_0-1719685644946.png

     

    Veblitz_1-1719685725776.png

     

    Veblitz_2-1719685803510.png

    Veblitz_3-1719685893150.png

     

     

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @Veblitz !

     

    Please see below flow of mine. I replicated same and it works. I'll explain it on the way with every screenshot for you to understand.

     

    Flow:

    Pic 1

    NathanAlvares24_0-1719689604401.png

     

    Pic 2

    NathanAlvares24_1-1719689664878.png

     

    Pic 3

    NathanAlvares24_2-1719689805674.png

     

    Let me explain now:

    I guess till list rows is already understood.

    NathanAlvares24_3-1719689885326.png

    I added these two actions because of the case where you have all columns empty in a row based on your data from excel:

    NathanAlvares24_4-1719689990913.png

     

    This will help to filter the rows based on an expression:

    @or(not(equals(trim(item()?['Month']), '')), not(equals(trim(item()?['Country']), '')), not(equals(trim(item()?['Customer']), '')), not(equals(trim(item()?['New']), '')))

    Please ignore the warning above this action after inserting this action and going back to basic mode. It will work for sure.

    NathanAlvares24_5-1719690049437.png

    So example output will be for this:

    NathanAlvares24_6-1719690137229.png

     

    And its just what you need. Use this body in the output of apply to each action.

    NathanAlvares24_7-1719690242328.png

     

    The condition 5 (change the name as you want. I just kept it as the same) is really important. This is the year folder.

    2024
    │
    ├── 1
    │ └── USA
    │ └── Microsoft
    │ └── Renewal
    │
    ├── 2
    │ └── UK
    │ └── ABC
    │ └── Pending
    │
    └── 3
     └── [Country Not Specified]
     └── Cool
     └── Approvals
    
    You gave me this right? Now see in the case of this:
    └── 3
     └── [Country Not Specified]
     └── Cool
     └── Approvals

    You know based on above, the year folder serves as a parent folder to the rest as the year column for the other two rows are empty. This is what the condition does. Store this year folder name in a variable and use it throughout till it encounters another year in that column of which it will overwrite the previous year.

     

    Now I will give expressions for each condition and its yes and no parts:

    1) Condition 5

    NathanAlvares24_8-1719690611512.png

    Expressions used:

     

    (type these in the expression tab)
    
    Condition 5:
    not(equals(items('Apply_to_each')?['Year'],''))
    true (type this in the expression tab)
    
    directly paste the following in the "Folder Path" section:
    
    Create new folder 5:
    @{items('Apply_to_each')?['Year']}

     

    2) Condition

    NathanAlvares24_9-1719690835652.png

    Expressions used:

     

    (type these in the expression tab)
    
    Condition:
    not(empty(items('Apply_to_each')?['Month']))
    true (type this in the expression tab)
    
    directly paste the following in the "Folder Path" section:
    
    Create new folder 4:
    @{variables('Year')}/@{items('Apply_to_each')?['Month']}

     

    3) Condition 2

     

    NathanAlvares24_10-1719691082839.png

    Expressions used:

     

    (type these in the expression tab)
    
    Condition 2:
    not(empty(items('Apply_to_each')?['Country']))
    true (type this in the expression tab)
    
    directly paste the following in the "Folder Path" section:
    
    Create new folder 3:
    @{variables('Year')}/@{items('Apply_to_each')?['Month']}/@{items('Apply_to_each')?['Country']}

     

    4) Condition 3

    NathanAlvares24_11-1719691199090.png

     

    Expressions used:

     

    (type these in the expression tab)
    
    Condition 3:
    not(empty(items('Apply_to_each')?['Customer']))
    true (type this in the expression tab)
    
    directly paste the following in the "Folder Path" section:
    
    Create new folder 2:
    @{variables('Year')}/@{items('Apply_to_each')?['Month']}/@{items('Apply_to_each')?['Country']}/@{items('Apply_to_each')?['Customer']}

     

    5) Condition 4

    NathanAlvares24_12-1719691253232.png

     

    Expressions used:

     

    (type these in the expression tab)
    
    Condition 4:
    not(empty(items('Apply_to_each')?['New']))
    true (type this in the expression tab)
    
    directly paste the following in the "Folder Path" section:
    
    Create new folder:
    @{variables('Year')}/@{items('Apply_to_each')?['Month']}/@{items('Apply_to_each')?['Country']}/@{items('Apply_to_each')?['Customer']}/@{items('Apply_to_each')?['Name']}

     

    Input:

    NathanAlvares24_16-1719692036414.png

     

    Output:

     

    NathanAlvares24_15-1719691567390.png

     

    In 2022:

    NathanAlvares24_20-1719692162201.png

    NathanAlvares24_17-1719692061053.png

     

    In 2023:

    NathanAlvares24_21-1719692171331.png

    NathanAlvares24_18-1719692079960.png

    The other one of 2023 has Month column empty hence won't create the folders for the subsequent data.

     

    In 2024:

    NathanAlvares24_19-1719692145546.png

    NathanAlvares24_22-1719692187497.png

     

    NathanAlvares24_23-1719692198581.png

     

    NathanAlvares24_24-1719692213197.png

     

    This flow will surely guarantee you 100% success in creating the folders.

     

    I hope this helps. Please do let me know once tried.

     

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