Is the report standard or has it been modified (or is it localized)?
Is there some commit (i don't remember if it's possible) under the section triggers?
I'm asking it because sometimes that kind of error can be solved by placing the right COMMIT statement in the right place. Some other times, the code is not well designed.
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
Can you show us the code under OnPush trigger of Test Report from Payment Journal Page and also PrintGenJnlLine function code from Codeunit Test Report-Print...
I am using NAV2009R2 32012 build and didnt get any error.
Comments
Is there some commit (i don't remember if it's possible) under the section triggers?
I'm asking it because sometimes that kind of error can be solved by placing the right COMMIT statement in the right place. Some other times, the code is not well designed.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
The most interested thing is that the same report is running correctly from different Journal Screen.
I have found no "COMMIT" statement in any Section trigger.
:shock:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I am using NAV2009R2 32012 build and didnt get any error.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
ReportPrint.PrintGenJnlLine(Rec);
PrintGenJnlLine(VAR NewGenJnlLine : Record "Gen. Journal Line")
GenJnlLine.COPY(NewGenJnlLine);
GenJnlLine.SETRANGE("Journal Template Name",GenJnlLine."Journal Template Name");
GenJnlLine.SETRANGE("Journal Batch Name",GenJnlLine."Journal Batch Name");
IF GenJnlLine.FINDFIRST THEN
GenJnlLine.CalcTDS('');
GenJnlTemplate.GET(GenJnlLine."Journal Template Name");
GenJnlTemplate.TESTFIELD("Test Report ID");
REPORT.RUN(GenJnlTemplate."Test Report ID",TRUE,FALSE,GenJnlLine);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Yes!
I have found this correction in NAV 2013 in IN version.
Thanks you.
The uncorrected code does not give me any error message while it's called from Classic Client from Payment Journal Screen (Same Batch).
What is the reason ? :roll: