cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

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
Highlighted
Community Support
Community Support

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.
Highlighted
Community Champion
Community Champion

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,481)