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 / Network error when usi...
Power Apps
Answered

Network error when using Patch function. The specific record was not found.

(0) ShareShare
ReportReport
Posted on by 277

We have a Power App canvas app. It use SQL server online as datasource. One of the button can add new record to a table. The syntax is like 

 

Patch('mysqltable',{Name: txtMyName.Text, UserID: Hidden_UserID.Text})

 

It works for a while already.

Recently one of the sql table field have been changed from integer to decimal. Then the same function no longer work. When the patch function is triggered it returned:

Network error when using Patch function. The specific record was not found.

 

By using monitor to track. There is Not Found error on createRow operation:

hongkong_0-1689942800654.png

 

{
  "duration": 37.5,
  "size": 54,
  "status": 404,
  "headers": {
    "Content-Length": 54,
    "Content-Type": "application/json",
    "x-ms-client-request-id": "xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
  },
  "body": {
    "statusCode": 404,
    "message": "Resource not found"
  },
  "responseType": "text"
}

 

What is the problem?

 

Categories:
I have the same question (0)
  • rikdekoning Profile Picture
    281 on at

    It looks like the Patch is expecting a record to be updated. Since you are trying to create a new row, try adding an empty set of curly brackets as record identifier:

    rikdekoning_0-1689944705361.png

    This way, you're telling Power Apps that you are updating a record without a reference, so it will automatically create a new one.
    You can also put the primary identifier inside with an referenced value from somewhere else. If the reference exists, it will update the record. If it doesn't exist, it will create a new one

    rikdekoning_2-1689944983716.png

     

  • Verified answer
    hongkong Profile Picture
    277 on at

    The error is fixed after delete the datasource and re-create. It seems the endpoint of SQL side is changed by some reason.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard