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 Apps / Dataverse Patch Error ...
Power Apps
Answered

Dataverse Patch Error - Network error when using Patch function: You don't have permission to create this row.

(0) ShareShare
ReportReport
Posted on by 228

I have a canvas Power App that executes a Patch() to add a new user to the AssignedUsers table in Dataverse.  This has been working for me in both my Dev and Prod environments when I am logged in using my respective service accounts.  However, when I test it using my work email, I get this error: "Network error when using Patch function: You don't have permission to create this row."
DV Permissions Issue - PATCH Lack Permissions to Create Row Blurred.png
I have created a dedicated DV role for this app and have the permissions set for the AssignedUsers table as follows. 
DV Permissions Issue - PATCH AssignedUsers Permissions.png

My Patch looks like this.

Set( varRecord, Patch( AssignedUserss, {
 cr4de_assignedfullname: dropdownAssignedUser.Selected.'Full-Name',
 cr4de_assignedemail: assignedUserEmail,
 cr4de_roleassigned: dropdownAssignedRole.Selected.cr4de_role,
 cr4de_DRID: LookUp(DealIntakeApps, Name = vSelectedGalleryLHAssignedResources.Name),
 PercentAllocated: 0,
 cr4de_created: Now()
 } )
 );

 // Determine if Patch was successful
 If(!IsBlank(varRecord),

This code has been working for months so it must be a DV-related permissions issue but I have never seen this error before.  Thanks in advance to anyone with recommendations. 

I have the same question (0)
  • Verified answer
    AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @cmanning, make sure that your work email account has a security roles assigned for that table you are trying to patch.

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Gowri Halan Profile Picture
    262 on at

    @cmanning If you trying to update any lookup field. Then set append and append to rights as well. 

  • cmanning Profile Picture
    228 on at

    @AhmedSalih - Thank you for the info.  I just needed to associate my email with the new DV user role.  Marking as the solution, thanks!

  • cmanning Profile Picture
    228 on at

    @gowrihalan04 - Thank you for the very useful info!

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @cmanning, Always happy to help 🙂

  • issac_franklin Profile Picture
    113 on at

    Hello @AhmedSalih @gowrihalan04 

    It would be great if you could help me as well. I am facing the same error.

    issac_franklin_2-1674755407037.png


    I have created a different role which has create/read/write permissions and assigned to this user. However, it doesn't work with custom role or basic user.

    When I assign System Administrator role, user can create a row in table.

    It would be great if you could help me here 😉

  • Palaces Profile Picture
    81 on at

    @gowrihalan04,

     

    Awesome!

    Thank you for sharing this!!

    As a note for you future reader, you have to set Append and Append To permissions on both tables, the one being referenced and the one that contains the lookup field.

     

    Best regards! 🙂

  • Palaces Profile Picture
    81 on at

    @gowrihalan04,

    Thanks for posting this, I almost pass your comment because of focusing my reading on the solution here.

    As a note for future readers, you have to add the Append and Append To permissions on both tables, the one containing the Lookup field and the one being referenced.

    Best regards,

  • Santhosha Profile Picture
    4 on at

    @AhmedSalih @cmanning @gowrihalan04 @issac_franklin 

    I am also facing the same error.

    The user is able to add the records from app if I give organisation access.

    But it is throwing error if we use Parent child B U access.

    I given parent child bu access for read , write, create,append and append to.

    We have a BU hirarchy from 

    All country users to individual country BU.

    This is working till last 15 days.But not working now 

     

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @Santhosha, would you please create a new Post with your issue. Thank you

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard