@ All Dynamics Developers and Experts,
I have used Template and Batch for the vouchers in my Company.
>>General Journal Template: PNR001-HQJ PNR001 - Head Quarter Journal Voucher
>>General Journal Batch : PATRUSH R Patrush Rai (Journal Voucher) G/L Account PNR001 PNR001-HQJ PNR001-POS
//
Scenario::: Now Sometime when user is creating General Journal or Payment Journal, when he takes his cursor to the last Line after the record then there is a error message
ERROR:: <General Journal Batch Does not Exists, Identification Fields and Values, Jouranl Template Name = ‘*’, Name, '’>
→ Once this message is generated the user cant even open his related General Voucher/ Payment Voucher
Temporary Solution: But when i Delete the Zup file and again connect the system then this error is GONE. But again any any point of time this may occur.
Scenario: This is Occurring for all the Clients that are using Navision form the icrosoft Dynamics NAVISION Server(SQL DATABASE).
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
The Code in the ONOPENFORM Trigger is like this…
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::“General Journal”,0,FALSE,Rec,JnlSelected);
IF NOT JnlSelected THEN
ERROR(’’);
GenJnlManagement.OpenJnl(CurrentJnlBatchName,Rec);