For some reason my flow is creating duplicate rows from within a select statement (image below).
The get rows (sql) isn't duplicated (I checked the output). It seems to duplicate the number of times the apply to each is running - so if its running 10 times - then there are 11 rows (with the header).
Example:
Thanks!
Solved! Go to Solution.
The select data operation works on the whole array to select columns from the array. It shouldn't be included inside an Apply to each that processes every row in the array. Just move your select outside the Apply to each and you should be fine.
Hello @TesDA
Could you share the output of the Get Rows SQL Action (Get Main) ?
The select data operation works on the whole array to select columns from the array. It shouldn't be included inside an Apply to each that processes every row in the array. Just move your select outside the Apply to each and you should be fine.
This is the first and second rows. Let me know if you need more. There are a total of 10 records (0 to 9).
@pstork - I need to capture only the rows applicable to that specific run, so that I can send an email with only that row's data. Do you know how I would edit the flow to make sure I can attach just that subset (if that makes sense). Do I do another get rows on the same table?
If you aren't already filtering the Get Rows down to the set of Rows you want to report on then you should add a filter array after the get rows and before the Selected (Data Operation). Don't confuse the Select you are using with a SQL select statement. They aren't the same thing. If you are looking for a SQL Select then you want the Execute a SQL Query V2 action, not the Select action.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
62 | |
50 | |
30 | |
29 | |
24 |