Hi,
Do this
1. Before the for all add this
Set(materialCheck, Text(CountRows(MaterialSammlung)));
2. run the app and do it so you think it should loop more than 1 time
3. soon as you trigger this and its complete. Stop playing the app
go into the Settings, Variables, and see what materialCheck value is 1 or greater
if greater, then you need to verify that you are in fact passing different values each time so that its not doing an update (regardless of what it shows there) as it sounds like you are doing this (passing duplicates)
WAIT after I typed all of that, i saw that you had other details which sort of talk to my points (sorry its late)
Collect(MaterialSammlung; { Auftrag:SelectedOrder.Aufträge; Material:MaterialEingabe.Text })
what I do not see is the data from the MaterialSammlung
So run it like i said above. Get the Count as I said, but after looking at the materialCheck value, look at collections, and see what value are exactly in the materialSammlug
I mean you dont even need a collection, since you have a gallery, just iterate though Gallery.Allitems this way you will for sure NOT have duplicate values in the collection.