This greatly deepens the amount of information you have to understand.
The initial code that creates the problem is:
insert into dbo.AccountZoneTbl0
(AccountNumber, S_ActNbr, System_no, MAS_ZoneID, o_mas_zoneid, fmt,
[Description], GroupID, zone_to_restore, DateTimeStamp, RestoreDelay...