Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Converted to SQL and having all sorts of problems

(0) ShareShare
ReportReport
Posted on by 194

Hi Hivemind! I need some help please!

So I have an app that originally was built using Sharepoint List and now I've converted to premium connector using SQL on prem via data gateway. Everything was working great until I started adding some extra columns needed, specifically a timestamp because I learned my power automate flows dont work for triggering on update/insert without a timestamp column.

 

I've had nothing but problems since adding a timestamp column. As soon as I did my patch functions all broke and I can no longer save anything into any of the tables (it was working before). So this morning I deleted the timestamp column just to see and now i'm getting an error that says "Error when trying to retrieve data from the network: Microsoft SQL: Invalid column name "LastModifiedTS". inner exception: Microsoft SQL: Invalid column name "LastModifiedTS".

 

This is the column I deleted. I refreshed the data in power apps, I removed it and added it back in, I tried refreshing the connection reference in the solution, and cleared my cache. I can't move forward; this is a nightmare just working on this app because i'm now on my second work day trying to get the app to work again after getting this column, that microsoft requires for flow, to now work.

 

Please help if you can!!

  • Nicci Profile Picture
    194 on at
    Re: Converted to SQL and having all sorts of problems

    hah naw more like we had to remove those triggers and handle it app side (not best practice though) because we gotta get this data off of SP.

  • timl Profile Picture
    34,951 Super User 2025 Season 1 on at
    Re: Converted to SQL and having all sorts of problems

    @Nicci - thanks for the update. Yes, it's ashame that MS still hasn't added support for tables with triggers. If it's any consolation, I guess at least you've saved the cost of some premium licenses!

  • Nicci Profile Picture
    194 on at
    Re: Converted to SQL and having all sorts of problems

    Hi Timl! Yup thats exactly what happened. It was a wait time issue, however my other patch issue that was a generic 400 bad request error ended up being some triggers we have setup for created/modified timestamps. Its REALLY frustrating power apps does not insert/update/work with SQL that has triggers setup. That is a big failure because this app is to be integrated with a traditional web app and those triggers need to stay so now we're at a place we'll need to end up dropping the data in a table and running a job to move it on the database side which defeats the purpose of going to SQL since we can run the same batch with sharepoint list extract and not pay for premium....yikes Microsoft, yikes!

  • Verified answer
    timl Profile Picture
    34,951 Super User 2025 Season 1 on at
    Re: Converted to SQL and having all sorts of problems

    Hi @Nicci 

    With on-premise SQL Server, it can often take some time for schema changes to be recognised by Power Apps. What can sometimes help is to restart the on-prem data gateway service.

    If you've refreshed the data source in Power Apps, I'd wait a few hours to see if the error goes away.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard