Wednesday, March 7, 2012

error [BC30494] Line is too long

Hi,
I have a problem with a report in SSRS 2005. I tried to add some custom code
to a report.
The code is absolutely simple and correct.
But when trying to show the report the debugger shows the following error
message:
error [BC30494] Line is too long.
When I remove the code the report works again.
The code is about 12 words and could not be the problem.
Could anyone help please?
Best regards,
StefoonOn Jul 25, 6:54 am, Stefoon23 <Stefoo...@.discussions.microsoft.com>
wrote:
> Hi,
> I have a problem with a report in SSRS 2005. I tried to add some custom code
> to a report.
> The code is absolutely simple and correct.
> But when trying to show the report the debugger shows the following error
> message:
> error [BC30494] Line is too long.
> When I remove the code the report works again.
> The code is about 12 words and could not be the problem.
> Could anyone help please?
> Best regards,
> Stefoon
Maybe you could post the code?|||The code is trivial and has nothing to do with the problem. Thus I did not
post it.
Function Divide(Numerator as Double, Denominator as Double)
If Denominator = 0 Then
Return Nothing
Else
Return Numerator/Denominator*100
End If
End Function
I use it in a table with values from a dataset:
code.Divide((sum(Fields!Measures1.Value)),(sum(Fields!Measures2.Value)))
I was told that the problem could be that a request could only be 4 MBytes
big in asp. The report's rdl file is only about 3 MB big. I changed the size
of maxRequestLength in machine.config to 20000 instead of 4000 Bytes, but it
did not help.
When I remove these 7 lines of code the reports works without problems. But
I want to centralize this function.
Best regards,
Stefan
"toolman" wrote:
> On Jul 25, 6:54 am, Stefoon23 <Stefoo...@.discussions.microsoft.com>
> wrote:
> > Hi,
> > I have a problem with a report in SSRS 2005. I tried to add some custom code
> > to a report.
> > The code is absolutely simple and correct.
> > But when trying to show the report the debugger shows the following error
> > message:
> > error [BC30494] Line is too long.
> >
> > When I remove the code the report works again.
> >
> > The code is about 12 words and could not be the problem.
> >
> > Could anyone help please?
> >
> > Best regards,
> > Stefoon
> Maybe you could post the code?
>

No comments:

Post a Comment