I am working on a case where I am updating the DE When a error is occurring. There are total 100 records in DE where I am making the UpsertDE operation, I can see this code always update the top two records and skip rest of the records.
Here is the code.
%%[
set @lookupID = lookupID
set @rows = LookupRows("DDM_MD_Onboarding_Journey_EM_History","lookupID", @lookupID)
set @rowCount = rowcount(@rows)
if @rowCount > 0 then
set @row = row(@rows, 1)
set @JourneyExitDate = field(@row,"JourneyExitDate")
IF @JourneyExitDate == '' THEN
UpsertDE("DataExtension",1,"lookupID",@lookupID,"JourneyExitDate",Now())
ENDIF
ENDIF
]%%
%%[
set @sendEmail = 'False'
if @sendEmail == 'False' then
RaiseError("Do not send", true, 1)
endif
]%%
Is there anything I am missing in the code ?