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,
Stefoon

Can you post the code so everyone might have a better idea as to what you are seeing?

Jarret

|||

This is the text in the Code Section of the report.

It it doing nothing spectacular, only deviding Numerator by Denominator by avoiding a divide by 0 in the first section.

Function Divide(Numerator as Double, Denominator as Double)
If Denominator = 0 Then
Return Nothing
Else
Return Numerator/Denominator*100
End If
End Function

Best regards,

Stefoon

|||

I don't see anything wrong with it and it worked fine for me in a test report. Are there any other custom functions in your Code window?

What is the expression you are using to call the function?

Jarret

|||

Hi,

I use

= code.Divide((sum(Fields!Measures_1.Value)),(sum(Fields!Measures_2.Value)))

in the fields of a table. The measures are from the recordset.

Best regards,

Stefoon

No comments:

Post a Comment