web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Ant Keep Marching on P...
Power Apps
Answered

Ant Keep Marching on Patch to New Azure SQL DB

(0) ShareShare
ReportReport
Posted on by 353

Issue:

Data Source Never Gets Patched

 

Background

  • New Azure SQL DB
  • Connector was established using SQL Admin Credentials Defined when Database was Created
  • Patch Statement is: Patch('[dbo].[CPT_Codes]',Defaults('[dbo].[CPT_Codes]'),{CPT_Code:txtCPT_Code,CPT_Value:txtCPT_Value});Reset(txtCPT_Code);Reset(txtCPT_Value);
  • Ants keep marching across top of screen
  • No Errors 
  • No info

What can i check? Is this possibly a permissions thing cause I used the SQL Admin credentials? 

 

Update

I was able to successfully add data to the database table using the SubmitForm() method. So that confirms the account has the access I need. So my problem must relate to how I am trying to patch() the data.

 

More Updates

I was able to  get the Data Source Patched after creating a new login and user account on the DB with dbo rights. I will say that it sucks that you do not get a GUI Wizard when using SSMS with Azure SQL DBs. I am still fighting with some data source refreshes and unknown runtime errors but i am hoping that gets resolved. 

 

Thanks

Matt

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @schuess3 ,

    Have you solved your problem?

    Does the txtCPT_Code, txtCPT_Value represent the Text Input box in your app?

     

    If the txtCPT_Code, txtCPT_Value represents the Text Input box in your app, please modify your formula as below:

    Patch(
    '[dbo].[CPT_Codes]',
    Defaults('[dbo].[CPT_Codes]'),
    {
    CPT_Code: txtCPT_Code.Text,
    CPT_Value: txtCPT_Value.Text
    }
    );
    Reset(txtCPT_Code);
    Reset(txtCPT_Value);

    or

    Collect(
     '[dbo].[CPT_Codes]',
     {
     CPT_Code: txtCPT_Code.Text, 
     CPT_Value: txtCPT_Value.Text
     }
    );
    Reset(txtCPT_Code);
    Reset(txtCPT_Value);

    If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

  • schuess3 Profile Picture
    353 on at

    Missing the .text was part of the unknown runtime error. And the bulk of the original issue was a SQL Database permissions issue. 

     

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 516

#2
WarrenBelz Profile Picture

WarrenBelz 428 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 292

Last 30 days Overall leaderboard