Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

AccountEnabled does not exist

(0) ShareShare
ReportReport
Posted on by 364

Hi there, 

 

I'm patching a selected person to a collection and I keep getting the error on the patch of "AccountEnabled does not exist", despite that fact that I haven't created a field for that in the collection.

 

This is my inital clearcollect:

 

 

 

ClearCollect(
 varCurrentEventLeads,
 {
 TaskLead: {
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: "",
 DisplayName: "",
 Email: "",
 JobTitle: ""
 }
 }
);

 

 

 

And this is my patch:

 

 

 

Patch(
 varCurrentEventLeads, 
 ThisItem,
 {
 TaskLead: {
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: "i:0#.f|membership|" & Lower(ThisItem.Mail),
 DisplayName: ThisItem.DisplayName,
 Email: ThisItem.Mail,
 JobTitle: ThisItem.JobTitle
 }
 }
);

 

 

 

 

No errors at all on the clearcollect, just on the patch. Anything I'm missing here?

 

Categories:
  • Verified answer
    BhaskarDhone Profile Picture
    1,129 Super User 2025 Season 1 on at
    Re: AccountEnabled does not exist

    change your person field record to 

    {
     Claims: "",
     Department: "",
     DisplayName: "",
     Email: "",
     JobTitle: "",
     Picture: Blank()
    }

     

    Not necessary that you should provide values to all fields of the record. You can have values to Claims, DisplayName, Email. Rest you can leave it black. SharePoint person field will understand and patch correct user.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1