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 / Error flow Parameter '...
Power Automate
Suggested Answer

Error flow Parameter 'To' cannot be null or empty

(1) ShareShare
ReportReport
Posted on by 4
Hi,
I created a very simple flow, which sends an email to notify the user that a file has been uploaded to their personal folder.
The flow worked correctly for 8 months, then suddenly it started to go into error.
Analyzing the flow, I saw that it does not find the email to send the notice to.
This is the output part of the working flow:
 
  "Editor#Claims": "i:0#.f|membership|wn00220367@wgs.wuerth.com",
  "Person": {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    "Claims": "i:0#.f|membership|wn00180633@wgs.wuerth.com",
    "DisplayName": "Saccon, Guido",
    "Email": "g.saccon@mebelettroforniture.it",
    "Picture": "https://witglobal.sharepoint.com/sites/MEBIntranet/_layouts/15/UserPhoto.aspx?Size=L&AccountName=g.saccon@mebelettroforniture.it",
    "JobTitle": "Capoarea"
 
This is the part where it gives the error:
 
  "Editor#Claims": "i:0#.f|membership|wn00197389@wgs.wuerth.com",
  "MediaServiceImageTags": [],
  "MediaServiceImageTags@odata.type": "#Collection(Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy)",
  "MediaServiceImageTags#WssId": [],
  "MediaServiceImageTags#WssId@odata.type": "#Collection(Int64)",
  "SharedWithUsers": [],
  "SharedWithUsers@odata.type": "#Collection(Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser)",
  "SharedWithUsers#Claims": [],
  "SharedWithUsers#Claims@odata.type": "#Collection(String)",
  "Created": "2025-02-03T14:16:56Z",
  "Author": {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    "Claims": "i:0#.f|membership|wn00197389@wgs.wuerth.com",
    "DisplayName": "RABIN, ABDUS",
    "Email": "r.abdus@mebelettroforniture.it",
    "Picture": "https://witglobal.sharepoint.com/sites/MEBIntranet/_layouts/15/UserPhoto.aspx?Size=L&AccountName=r.abdus@mebelettroforniture.it",
    "Department": "Bassano Del Grappa",
    "JobTitle": "Uff. Marketing"
 
When it fails, the part of the data relating to the "Person" entry is missing.
 
What could this be due to?
Thank you.
Categories:
I have the same question (0)
  • MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    The eMail Id which you referring in the flow is the active user or Inactive user?
     
    Also, can you please share the screenshot of the flow which you are facing issue.
     
     
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    Hi @ash79,
     
    With personal folder you mean you the OneDrive for Business site?
     
    Can you also share a screenshot of your current setup, this will help troubleshooting.
     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • ash79 Profile Picture
    4 on at
    Hi,
    here the image of the flow:
  • Suggested answer
    MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    In which action the flow is failing. from the error it showing To Parameter is empty. 
     
    In any of the assigned parameters with the user eMail value having blank or user which is assigned is not active? If yes that is the issue i believe
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item
     
  • ash79 Profile Picture
    4 on at
    Hi,
    the flow fails in the "compose" command, because it does not find the recipient's email (as it was not detected by the previous step). the user is active.
  • Suggested answer
    MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    It looks like your Power Automate flow is failing because the "Person" field is missing in some cases. Since the user is active, here are some possible reasons and solutions:
     
    The "Person" Field is Not Always Populated
    • If the "Person" field is optional in SharePoint, some items might not have a value assigned.
    • Solution: Use a condition (null check) before the "Compose" action to verify if "Person" exists before trying to extract the email.
     
    Modify the Compose action to handle missing values safely:
     
    Use an expression like:
     
    if(empty(outputs('Get_item')?['Person']?['Email']), 'fallback_email@domain.com', outputs('Get_item')?['Person']?['Email'])
     

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard