Skip to main content

Notifications

Community site session details

Community site session details

Session Id : GUwDb18bXANAoKOV4TjP43
Power Apps - Building Power Apps
Answered

Getting Error on SubmitForm

Like (0) ShareShare
ReportReport
Posted on 16 Jan 2023 02:44:08 by 12

Hi, let me first say this is my first Powerapps app I have created.  I mostly have it working.  One of the remaining issues I am having is when I do a SubmitForm on a form that is in Editmode.New.

 

I get the following error when I submit the form:

 

 

The requested operation is invalid.

Server Response: PI Planning Notes and Items Tracker failed: The specified user 1:0#.f[membership]xxxxxxx@xxxxxxx.com could not be found.

 

 

I do not have error on other forms anywhere in the app.  I also can update the same data, just get this error on saving data in the form set it new mode.

Categories:
  • jmikemyers Profile Picture
    12 on 16 Jan 2023 at 16:03:08
    Re: Getting Error on SubmitForm

    Thank You, that worked!

  • Verified answer
    v-liwei-msft Profile Picture
    on 16 Jan 2023 at 06:41:38
    Re: Getting Error on SubmitForm

    Hi @jmikemyers 

     

    Please try this formula in the DefaultSelectedItems of the field

    {Claims:"i:0#.f|membership|"&User().Email,Email:User().Email,Department:"",DisplayName:User().FullName,JobTitle:"",Picture:""}

     

    Best Regards,

    Levi

  • jmikemyers Profile Picture
    12 on 16 Jan 2023 at 04:20:38
    Re: Getting Error on SubmitForm

    I figured out the problem, just not how to fix it.  I was thinking it was an error about my account not existing but it is because one the fields is a user complex field.  I am using the below code to fill in the current user but apparently I am doing something wrong because it says that user does not exist.

     

     

     

    {'@odata.type':"#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser", Claims:Concatenate("1:0#.f[membership]",User().Email),DisplayName:User().FullName,Email:User().Email}

     

     

     

    This is in the DefaultSelectedItems of the field where the user is entered.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 58

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 42 Super User 2025 Season 1

Overall leaderboard
Loading started