Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Report is erroring out with an error in onFetch method.(Error while generating a report.)
Report is erroring out with an error in onFetch method. [message #899215] Tue, 31 July 2012 06:40 Go to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Hi,

We are getting below error while generating a report:

A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: org.eclipse.birt.report.engine.api.EngineException: WF_RS_DATA_OVERFLOW (ccer/resources/javascript/Exception.js#8)
Script source: /report/data-sets/oda-data-set[@id="1202"]/method[@name="onFetch"], line: 0, text:
__bm_onFetch()


The error message above says error at Line 0. The row numbers start from 1, but the erros shown is at Line 0. Any thoughts on what could be the reason.

Below is the code we have in onFetch():

//varCurrentRowNum = varCurrentRowNum + 1;

//if (varCurrentRowNum > varRowLimit)
// throwSevereException("WF_RS_DATA_OVERFLOW");

totalRowCount = totalRowCount + 1;

if (reportRowLimit > 0 && totalRowCount > reportRowLimit)
throwSevereException("WF_RS_DATA_OVERFLOW");

Birt Version used:3.7
Deployed in Weblogic app server 10.0.2

Any help regarding this would be appreciated.

Thanks,
Hari Priya
Re: Report is erroring out with an error in onFetch method. [message #899372 is a reply to message #899215] Tue, 31 July 2012 15:15 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

It looks like your code is throwing the exception. Can you post the
entire report?

Jason

On 7/31/2012 2:40 AM, harip kaligo wrote:
> Hi,
>
> We are getting below error while generating a report:
>
> A BIRT exception occurred. See next exception for more information.
> Error evaluating Javascript expression. Script engine error:
> org.eclipse.birt.report.engine.api.EngineException: WF_RS_DATA_OVERFLOW
> (ccer/resources/javascript/Exception.js#8)
> Script source:
> /report/data-sets/oda-data-set[@id="1202"]/method[@name="onFetch"],
> line: 0, text:
> __bm_onFetch()
>
>
> The error message above says error at Line 0. The row numbers start from
> 1, but the erros shown is at Line 0. Any thoughts on what could be the
> reason.
>
> Below is the code we have in onFetch():
>
> //varCurrentRowNum = varCurrentRowNum + 1;
>
> //if (varCurrentRowNum > varRowLimit)
> // throwSevereException("WF_RS_DATA_OVERFLOW");
>
> totalRowCount = totalRowCount + 1;
>
> if (reportRowLimit > 0 && totalRowCount > reportRowLimit)
> throwSevereException("WF_RS_DATA_OVERFLOW");
>
> Birt Version used:3.7
> Deployed in Weblogic app server 10.0.2
>
> Any help regarding this would be appreciated.
> Thanks,
> Hari Priya
>
Previous Topic:How to set text in master page header using data from report?
Next Topic:report date parameters string format
Goto Forum:
  


Current Time: Mon Nov 24 09:43:05 GMT 2014

Powered by FUDForum. Page generated in 0.02390 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software