Below is a obfuscated example of our code. Update IF has been commented out due to it not functioning correctly.
Would be great to know if anyone else experienced this behaviour and if they know why it stopped working?
Set(varUpdate_SupLots,false);
IfError(
If(!varDHSHasBeenLoaded,
ForAll(Filter(
lstParentChildComponentsForExport,
IsParent = 1 && ComponentCode = ThisRecord.ComponentCode && ThisRecord.HasLotAndExpiry && !IsBlank(ThisRecord.Lot)
),
Patch(LotNumbers,LookUp(LotNumbers,LotNumber = If(EndsWith(Lot,"R"),Mid(Lot,1,Len(Lot)-1),Lot)),{IsRework:EndsWith(Lot,"R")})
//UpdateIf(LotNumbers, LotNumber = If(EndsWith(Lot,"R"),Mid(Lot,1,Len(Lot)-1),Lot), {IsUsed:true, UsedOn:Now(), IsRework:EndsWith(Lot,"R")})
),
ForAll(Filter(
lstParentChildComponentsForExport,
IsParent = 1 && ComponentCode = ThisRecord.ComponentCode && ThisRecord.HasLotAndExpiry && !IsBlank(ThisRecord.Lot)
),
Patch(LotNumbers,LookUp(LotNumbers,LotNumber = If(EndsWith(Lot,"R"),Mid(Lot,1,Len(Lot)-1),Lot)),{IsRework:EndsWith(Lot,"R")})
//UpdateIf(LotNumbers, LotNumber = If(EndsWith(Lot,"R"),Mid(Lot,1,Len(Lot)-1),Lot), {IsRework:EndsWith(Lot,"R")})
)
);
Set(varUpdate_SupLots,true);,
Notify("Cannot update lot numbers (Sup Lot)")
);
**************************************************
Thank you