This is a very odd error happened to one of our clients. Sometimes when they try to open Payment Journal this error get pop up and then we have to use our developer license and recompile the form. Once we recompile it works fine for few days and then suddenly it throw this error once again. They are using Dynamics NAV 2009 (Version W1 6.00 (6.00.29626)).
Following is the code in the page.
Form - OnInit() Form - OnOpenForm() BalAccName := ''; OpenedFromBatch := ("Journal Batch Name" <> '') AND ("Journal Template Name" = ''); IF OpenedFromBatch THEN BEGIN CurrentJnlBatchName := "Journal Batch Name"; GenJnlManagement.OpenJnl(CurrentJnlBatchName,Rec); EXIT; END; GenJnlManagement.TemplateSelection(FORM::"Payment Journal",4,FALSE,Rec,JnlSelected); IF NOT JnlSelected THEN ERROR(''); GenJnlManagement.OpenJnl(CurrentJnlBatchName,Rec); Form - OnCloseForm() Form - OnQueryCloseForm() : Boolean Form - OnActivateForm() Form - OnDeactivateForm() Form - OnFindRecord(Which : Text[1024]) : Boolean Form - OnNextRecord(Steps : Integer) : Integer Form - OnAfterGetRecord() ShowShortcutDimCode(ShortcutDimCode); Form - OnAfterGetCurrRecord() GenJnlManagement.GetAccounts(Rec,AccName,BalAccName); UpdateBalance; Form - OnBeforePutRecord() UpdateBalance; Form - OnNewRecord(BelowxRec : Boolean) UpdateBalance; SetUpNewLine(xRec,Balance,BelowxRec); CLEAR(ShortcutDimCode);