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 / Bug report: unable to ...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 6,949

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)
Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    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

  • Meneghino Profile Picture
    6,949 on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard