I am having trouble with a forall and patch formula. Below is my code.
ForAll(Gallery1_1.AllItems,
Patch('Information Barriers Instruction Users',
'Instruction Id'= Label2.Text,
{'Status (eusw_status)' : 'Information Barrier Status'.Approved}))
Gallery items : Filter( 'Information Barriers Instruction Users', 'Instruction Id' = Label3.Text)

I am using a forall to loop through the items and update the status column ( an option set) from draft to approved. I am assuming the problem is with the ID column( instruction id ). My datasource is CDS linked with F&O via dual write. The table in F&O has an indexing where unique key is a combination of email and 'instruction id'. Can someone please help me how to deal with this problem.?