cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Meneghino
Level 10

Bug report: unable to remove some items from Auzure SQL DB table

It is a bit random but using the RemoveIf statement sometimes works, sometimes doesn't.

 

Nothing changes in the code, just the parameters.  The items that could not be reomoved in PowerApps were successfully removed with T-SQL so there are no database constraint issues there.

 

The code used is:

RemoveIf('[dbo].[Invoices_Transactions]', Invoice = ThisItem.Invoice, Transaction = Last(CurrentTransaction).ID)
2 REPLIES 2
Community Support Team
Community Support Team

Re: Bug report: unable to remove some items from Auzure SQL DB table

Hi @Meneghino,

 

Thanks for the feedback.

 Last(CurrentTransaction).ID

Is CurrentTransaction a collection, or something else?

If it is a collection, then could we write a condition to check it would be empty?

Something like:

If(!IsEmpty(CurrentTransaction), removeif(), removeif())

Only a shots for the missing scenarios.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Meneghino
Level 10

Re: Bug report: unable to remove some items from Auzure SQL DB table

Hi @v-micsh-msft

Yes, CurrentTransaction is a collection.  No it is not empty since there is a text box on the screen that displays Last(CurrentTransaction).ID

Frankly I am not sure of what is going on.  In any case there is another bug in the SQL connector that your colleagues are working on, so maybe this will be resolved in the process.

Thanks for following up.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,671)