Lotus notes client crashes when replication advanced tab is opened

We’re replacing a template for a new release of our notes application and when the replication settings advanced panel is opened, we get an error “Note item not found” and then the client crashes. We’ve reverted back to old template but the error is still there and then then notes would still crash. It’s been days since we’ve tried figuring what caused it but so far we were unable to replicate the issue so we don’t know how to fix it. I hope someone can help explain the error and teach us how to fix it.

Below is the log

############################################################

thread 1/15: [ nlnotes: 1684: 16ac] FATAL THREAD (Panic)

FP=0x0013b3f4, PC=0x7c90eb94, SP=0x0013b390

stkbase=0x00140000, total stksize=212992, used stksize=19568

EAX=0xffffffff, EBX=0x00000000, ECX=0x00000000, EDX=0x00270608

ESI=0x000004b4, EDI=0x00000000, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00000297

############################################################

[ 1] 0x7c90eb94 ntdll.KiFastSystemCallRet+0 (4b4,493e0,0,13b97c)

[ 2] 0x7c802532 kernel32.WaitForSingleObject+18 (4b4,493e0,3,13bb98)

@[ 3] 0x601a9194 nnotes.OSRunExternalScript@8+1300 (12c,1)

@[ 4] 0x601a962a nnotes.FRTerminateWindowsResources+986 (1,0,1010,1)

@[ 5] 0x601a99ef nnotes.OSFaultCleanupExt@24+895 (12f4dd8,1010,0,0,0,13bec8)

@[ 6] 0x601a9a7a nnotes.OSFaultCleanup@12+26 (0,1010,0)

@[ 7] 0x601b5004 nnotes.OSNTUnhandledExceptionFilter@4+276 (13cf00)

@[ 8] 0x60179d78 nnotes.Panic@4+520 (60bc1ed7)

@[ 9] 0x60002a8c nnotes.LockHandle@12+252 (42493d4f,13cf30,13cf3c)

@[10] 0x600028f6 nnotes.OSLockObject@4+22 (60f01580)

@[11] 0x61cff4e3 nnotesws.CReplicaSettingsDialog::UpdateOldNote+707 (13dfc8,6a0dd1c,0,13dfc8)

@[12] 0x61d0179a nnotesws.CReplicaSettingsDialog::WriteReplNotes+186 (6a0d8d4,350674,1,350674)

@[13] 0x61d03eac nnotesws.CReplicaSettingsDialog::ReplOKBehavior+1420 (1a3,350674,1,5db796c)

@[14] 0x61d096eb nnotesws.CReplicaSettingsDialog::AdvPaneMsg+2395 (13dfc8,350674,451,0)

@[15] 0x61d097f0 nnotesws.CReplicaSettingsDialog::AdvPaneProc+32 (350674,451,0,ac6)

@[16] 0x617edc0b nnotesws.NEMTermPageableArea@12+59 (350674,9c4,1)

@[17] 0x61815306 nnotesws.CDialog::ourTerm+38 (13dfc8,1,13dfc8,1)

@[18] 0x6181568b nnotesws.CDialog::Term+75 (13dfc8,1,13d340,350674)

@[19] 0x61815bda nnotesws.CDialog::COurMsg+330 (13dfc8,350674,111,80000009)

@[20] 0x6181573e nnotesws.CDialog::COurProc+46 (350674,111,80000009,180654)

[21] 0x7e418734 USER32.GetDC+109 (61815710,350674,111,80000009)

[22] 0x7e418816 USER32.GetDC+335 (0,61815710,350674,111)

[23] 0x7e41c63f USER32.IsWindowUnicode+161 (61815710,350674,111,80000009)

[24] 0x7e41c665 USER32.CallWindowProcW+27 (61815710,350674,111,80000009)

@[25] 0x61688fa8 nnotesws.DlgCallDefWndProc+360 (350674,1,0,111)

@[26] 0x61688ba6 nnotesws.CommonDlgProc+2502 (1,111,80000009,180654)

@[27] 0x616881dc nnotesws.MainDlgProc@16+28 (350674,111,80000009,180654)

[28] 0x7e418734 USER32.GetDC+109 (616881c0,350674,111,80000009)

[29] 0x7e418816 USER32.GetDC+335 (0,616881c0,350674,111)

[30] 0x7e41c63f USER32.IsWindowUnicode+161 (ffff04e5,350674,111,80000009)

[31] 0x7e41c665 USER32.CallWindowProcW+27 (ffff04e5,350674,111,80000009)

@[32] 0x61688fa8 nnotesws.DlgCallDefWndProc+360 (350674,0,0,111)

@[33] 0x61688ba6 nnotesws.CommonDlgProc+2502 (1,111,80000009,180654)

@[34] 0x617f0c1f nnotesws.PaneDlgProc@16+79 (350674,111,80000009,180654)

[35] 0x7e418734 USER32.GetDC+109 (617f0bd0,350674,111,80000009)

[36] 0x7e423745 USER32.PrivateExtractIconExW+690 (0,617f0bd0,350674,111)

[37] 0x7e423591 USER32.PrivateExtractIconExW+254 (0,111,80000009,180654)

[38] 0x7e4237bc USER32.DefDlgProcW+34 (350674,111,80000009,180654)

[39] 0x7e418734 USER32.GetDC+109 (7e42379a,350674,111,80000009)

[40] 0x7e418816 USER32.GetDC+335 (0,7e42379a,350674,111)

[41] 0x7e41b89b USER32.GetParent+364 (965558,967eb8,80000009,180654)

[42] 0x7e42f3cc USER32.SendMessageA+73 (350674,111,80000009,180654)

@[43] 0x616e000b nnotesws.SkinButtonWndProc@16+1579 (180654,202,0,c0030)

[44] 0x7e418734 USER32.GetDC+109 (616df9e0,180654,202,0)

[45] 0x7e418816 USER32.GetDC+335 (0,616df9e0,180654,202)

[46] 0x7e4189cd USER32.GetWindowLongW+295 (13dbc4,0,13dba8,7e42d99d)

[47] 0x7e418a10 USER32.DispatchMessageW+15 (13dbc4,0,965558,1)

[48] 0x7e42d99d USER32.IsDialogMessageW+219 (350674,8ff8f0,1103f6,1)

[49] 0x7e42dada USER32.CallMsgFilterW+302 (350674,1103f6,10,1)

[50] 0x7e42593f USER32.DrawStateW+498 (61680000,5db7654,1103f6,616881c0)

[51] 0x7e425981 USER32.DialogBoxIndirectParamAorW+54 (61680000,5db7654,1103f6,616881c0)

[52] 0x7e43204d USER32.DialogBoxIndirectParamW+27 (61680000,5db7654,1103f6,616881c0)

@[53] 0x617196eb nnotesws.FontAdjustDialogBox@20+859 (61680000,80a87,1103f6,0,0)

@[54] 0x61716044 nnotesws.NEMDialogBoxCore+148 (61680000,a87,61815710,0)

@[55] 0x61715f8a nnotesws.NEMDialogBoxParam@16+26 (61680000,a87,61815710,13dfc8)

@[56] 0x618159dd nnotesws.CDialog::intShowAndExecuteDialog+109 (13dfc8,0,a87,0)

@[57] 0x61815a54 nnotesws.CDialog::ShowAndExecuteDialog+20 (13dfc8,a87,0,6214f220)

@[58] 0x61c23483 nnotesws.SetReplicationFormulas@8+67 (1d0da4c,0)

@[59] 0x61b740df nnotesws.CDatabaseSelection::Command+831 (5d20014,13f2f4,1d57014,5d20014)

@[60] 0x61b75d45 nnotesws.CDBIconSelection::Command+277 (5d20014,13f2f4,40060006,0)

@[61] 0x617cef5f nnotesws.CSelectionManager::ProcessCommand+1167 (1,40060006,0,0)

@[62] 0x617cf0ad nnotesws.ProcessWMCommand@8+173 (40060006,0)

@[63] 0x61683eca nnotesws.MainWndProc@16+4234 (1103f6,111,40060006,0)

[64] 0x7e418734 USER32.GetDC+109 (61682e40,1103f6,111,40060006)

[65] 0x7e418816 USER32.GetDC+335 (0,61682e40,1103f6,111)

[66] 0x7e4189cd USER32.GetWindowLongW+295 (13f7b0,0,13f7d0,61718446)

[67] 0x7e418a10 USER32.DispatchMessageW+15 (13f7b0,1,1103f6,61680000)

@[68] 0x61718446 nnotesws.NEMMainLoop@4+742 (4013d0)

@[69] 0x004019f7 nlnotes.WinMain@16+1575 (617568d0,0,162327,1)

@[70] 0x00401ea9 nlnotes.WinMainCRTStartup+389 (330033,340033,7ffdf000,1f)

[71] 0x7c816fd7 kernel32.RegisterWaitForInputIdle+73 (401d24,0,78746341,20)