Hi @Anonymous
Updated:
@Anonymous The delete a row action will try to delete the single row that matches in your excel. In case you are running the "for loop" in parallelism then there could be a match that the same row will try to be deleted from excel therefore the behavior that you have observed is expected as there is no uniqueness in any of the excel records that can be used for the deletion.
The alternative option would be looping it until all the rows are deleted and run it in the max degree of parallelism. In the worst condition where all rows are duplicated of same record it will be not efficient.
Another workaround would be using the "run script" action and write your custom script that will have the logic to delete all the rows from your excel table. You can refer to this document to know more about scripting fundamentals.
----------------------
I have tested the scenario and I can see that the duplicate rows are also deleted from the excel sheet.
If some of your rows are not deleted then I will suggest you to first verify whether your excel sheet has more than 500 rows as per the excel connector limitation.
The connector retrieves rows for 500 columns maximum in the List rows present in a table action. Rows for first 500 columns are returned by default. You can provide comma-separated list of specific columns to retrieve in Select Query parameter.
If this is the case then you need to use List rows present in a table action specifying the Select query parameter.
If your excel has less than 500 rows then the condition that your specified condition might be false for some of the rows. You can navigate to run history of the logic app and compare the number of item return by your "List rows present in a table" action with the count of True condition executed in your logic app. For testing purposes, you can create variable inside your condition and increase that by one rather than manually counting it. If this is the case then you need to use some other column in your condition and delete it using that value whose value is never empty.
Hope the above helps you to resolve your issue. Feel free to get back to me if you have any queries or concerns.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.