cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Prodigy
Post Prodigy

The requested operation is invalid Error in Powerapps

Hi,

In my app i need to patch values to sharepoint list through powerapps.

 

When i am patch some values it's stored into a List.

 

But when others patch some values it's getting following error,

The requested operation is invalid. Server Response: Listname failed. The specified user i:0#f|membership| could not be found. 

 

What's the problem of this error?

 

 

Thanks,

Dhinesh.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

i:0#f|membership| is an incomplete username.  it should be i:0#f|membership|someuser@domain.com . So either you are trying to patch a user column without a correct user name or the action is loosing track of the user trying to do that patch.  What types of values are you trying to patch when it fails?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

11 REPLIES 11
Pstork1
Dual Super User
Dual Super User

i:0#f|membership| is an incomplete username.  it should be i:0#f|membership|someuser@domain.com . So either you are trying to patch a user column without a correct user name or the action is loosing track of the user trying to do that patch.  What types of values are you trying to patch when it fails?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

hi @Pstork1,

The following is my patch function,

{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.DisplayName,
DisplayName: LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.DisplayName,
Email: LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.Email,
JobTitle: "",
Picture: ""
}

 

Is this correct?

 

Thanks.

The second part of the claims entry should be an email address, not a display name.  If the Lookup is working then it should be 

Claims: "i:0#.f|membership|" & LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.Email,

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1,
After changed my formula to following,

{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.Email,
DisplayName: LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.DisplayName,
Email: LookUp(List,HRMID=Dropdown2.Selected.HRMID).OData__x0031_stInterviewer.Email,
JobTitle: "",
Picture: ""
}

 

When am patch its working.

 

But when other peoples trying to patch its getting that same error.

 

 

Thanks.

Make sure that the other people have access to the List that you are using for the LookUp().  The patch will run using their security context. So if they don't have access the Lookup won't return an email and the Claim will be incomplete.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1,

Other users having the access for this lookup list.

But still getting error.

 

Thanks.

All I can suggest is to check the actual lookups you are using to make sure they work for everyone using the app.  The error you are getting is because something in the lookup is returning an invalid or null value.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1 ,

 

No, now am checked. A lookup return exactly correct value. But i don't know why am getting this error.

 

Thanks.

You're sure its the same error? Can you show me the specific error message you are getting now? And did you test the lookup with someone having getting the error or with your account?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,025)