i have a problem with a test i am trying to run. i am running a for each data row loop inside another each data row loop.
what i have is a tale called dt_source and then i need to extract the unique values for the column CP_SERVICE - consider it a reporting group.
then i need to loop through the source table with each unique CP_SERVICE that will group the survives (eg all rows where the service of cp1, cp2, cpe3 etc) together and create a text file that i will use for an email.
i can see that all the unique cp services are being created
Also i can see that it processed the details for cp1 correctly - (i know in the example that i have here that it repeats the process afew times but i am ok with that for now)
but it does not process anything for cp2 or cp3, or write anything for them to the text file
in the actual workflow i dont have the outputs or write text files. it is there in this example just to show that the dat should be there, just is not being picked up correctly
i will have a look at the grouped by linq and see how i get on with it
so i had a look at the group by with linq and i just cannot get it work work. i tided up my workflow a bit and got rid of the repeating rows but it still will not bring in any unique cp after the first one processed
i feel that something very minor is wrong, just can not find it
i was setting it lo look at only cp2 - which it was doing
then in loop 2 i was looking in dt_source - with the filter of cp2
when loop 2 ran for cp3 or cp4 it could not find anything as it was already filtered for cp2
so i had to go back to the first filter and created a temp dt - dt_sourcex
that when when entered loop 2 it could filter correctly and find cp3 and cp4 (as the full dataset was there)