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 / 403 Forbidden Error Wh...
Power Apps
Answered

403 Forbidden Error When Saving Data to SQL DB from PCF in Play Mode (Power Apps)

(0) ShareShare
ReportReport
Posted on by 21

 

Hello Power Apps Community,

I'm encountering a perplexing issue with a Power Apps canvas app that utilizes a PCF (PowerApps Component Framework) to save data to an SQL database using a SQL connector. The PCF is designed to use setValue and save functions to commit data changes. When the app is in edit mode, everything functions correctly, and data is saved to the SQL database as expected. However, when I publish the app and play it directly, I receive a 403 Forbidden error during the save operation.

Here are some specifics about the setup and the issue:

  • The PCF is designed to work with SQL Server data via a SQL connector.
  • Data saving works flawlessly within the app's edit mode.
  • The issue arises only when the app is played after publishing — at this point, the setValue and save functions trigger a 403 Forbidden error.
  • I have confirmed that I possess a premium Power Apps license.
  • To isolate the issue, I used the same SQL connector with a Patch function elsewhere in the app, and data is saved without any errors, which suggests that the connector and my permissions are configured correctly.
  • The main goal is to ensure data can be saved to the SQL database from the PCF in both edit and play modes without encountering 403 errors.

    I'm looking for insights or solutions from anyone who might have faced a similar issue or understands the intricacies of PCF data operations within Power Apps.

    Here's the error message I'm getting:

     

    POST https://unitedstates-002.azure-apim.net/invoke 403 (Forbidden)
    Error: {code: 403, message: "Method patch is not allowed for table [dbo].[CostGrid_Project]"}

    It's perplexing because this only happens in play mode, not in edit mode, and my Patch function works without issue. I've checked my app's settings and permissions and everything seems to be in order.

    Has anyone encountered this or a similar issue? Any guidance on how to resolve this would be greatly appreciated.

    Thank you in advance for your help and support!

Categories:
I have the same question (0)
  • aaronfritschen Profile Picture
    2 on at

    Having the same issue. 

  • Verified answer
    Himanshu GTS Profile Picture
    21 on at

    Hey, I had a same problem and opened a ticket with Microsoft. We found a solution by changing a setting in the Canvas app. Just turn on 'Disable secure implicit connections' in the retired section of the app settings. This should fix the issue you're having with saving data. 😊

    84fba4f0-8e52-499c-9d31-27b7c8182e9a.png

     

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