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

Community site session details

Session Id : SX4nS8SHbTZN99STJImVaQ
Power Apps - Building Power Apps
Answered

AccountEnabled does not exist

Like (0) ShareShare
ReportReport
Posted on 28 Mar 2024 09:37:48 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 2 on 31 Mar 2024 at 20:23:16
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Loading complete