Trying to connect to azure database. Can connect, but I cannot run a simple query. My entire app will not work. Everything worked fine yesterday and no changes were made.
Are you perhaps using a firewall on the SQL Azure db?
If you say that you can connect, is this through SQL Studio or PowerApps or Flow that you can connect, and were are you getting the error from?
If you are talking about a simply query, I assume you are referring to Flow? If so, when you run the Flow please make sure that you have the correct connection selected. If you run a flow on demand, you have to specify the correct connection (table or view) even thought it has been specified in the Flow action as well. See attached.
Let me know if you don't come right.
Dawid van Heerden
Follow on Twitter: @davestechtips
Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions. AND we get points for it 😉
I created a seperate app in powerapps. Inserted a gallery. Connected that gallery to the same Azure sql database table that im using in my "Main" app. The Data shows. If i put a Filter(database,Field1 ="Status") ......or anything simple like that, it fails. I cannot make collections or anything in the test app. I am not running flows. Just simple fill of a gallery. My main app is very complex. I have not made any changes since yesterday. It was running great. Today, i have nothing.
I think i have narrowed down the issue. This is the filter I use. Filter('[dbo].[testDB]',DeployedDate >=Date(Year(Now()),01,01))
This throws an error. So I tried just doing Today() didn't work. Tried just filtering on different fields, and it worked. Tried <> with the date fields and it worked. Tried = with the date fields and it worked. So it looks like the error is being thrown from the >= or <= which I use everywhere in the app. What change was made to make that not work properly now, when it worked fine yesterday?
Hi @Rebeccak ,
That's a little strange.
Maybe try this formula:
Filter('[dbo].[testDB]',(DeployedDate >Date(Year(Now()),01,01))|| (DeployedDate =Date(Year(Now()),01,01)) )
Community Support Team _ Phoebe Liu
I am using a sql connector to an azure database. The field is a date field. I only want to filter data in the date field. This worked fine for months before the new release, I have changed nothing.
Filter('[dbo].[testdb]',DeployedDate >= Date(Year(Now()),01,01))
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.