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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to Clone DLP Po...
Power Automate
Suggested Answer

Unable to Clone DLP Policy

(0) ShareShare
ReportReport
Posted on by
Error
Action 'Create_DLP_Policy_V2' failed
 
Unable to process template language expressions in action 'Create_DLP_Policy_V2' inputs at line '0' and column '0': 'The template language expression 'body('Filter_array')[0]['defaultConnectorsClassification']' cannot be evaluated because array index '0' cannot be selected from empty array. Please see https://aka.ms/logicexpressions for usage details.'.
image (17).png
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    Your Filter array returned zero items, so [0] fails. The fix has two parts:
     
    1)Why is the array empty? (diagnose and correct the filter so it returns exactly 1 policy)
    2)Guard your expression so the flow doesn’t crash if a match isn’t found (good hygiene even after you fix the filter).
     
    Before using it, check if it has a value at 0 index in a condition: body('Filter_array')[0]['defaultConnectorsClassification']
         length(body('Filter_array'))
     
    Like below example:
    if true, then you have value in it and you can use it, if false they you have not received a value, might me a misconfiguration in filter.
     
    Common reasons for no matches
    Wrong property name: e.g., you filtered on name but the JSON has displayName.
    Case/whitespace mismatch: “Finance DLP” ≠ “finance dlp”.
    Wrong scope: Tenant policy vs Environment policy. If you’re cloning an environment policy, make sure the List action is scoped or filtered correctly by environment.
    Not in this geo/tenant: Verify you’re in the correct environment/region.
    Permissions: The “Power Platform for Admins” connector requires sufficient admin rights to list tenant policies.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard