Wednesday, March 7, 2012

Report server Error Messages

Hi,

I am using Reporting services through web services using the SOAP API. The problem I am facing is for any errors that occur the messages are getting displayed more than once.

For example : while rendering a report(which takes a parameter) if the parameter is not passed the same error message is displayed thrice.

"This report requires a default or user-defined value for the report parameter 'Num_RP_1'. To run or subscribe to this report, you must provide a parameter value. > This report requires a default or user-defined value for the report parameter 'Num_RP_1'. To run or subscribe to this report, you must provide a parameter value. > This report requires a default or user-defined value for the report parameter 'Num_RP_1'. To run or subscribe to this report, you must provide a parameter value."

while calling listChildren() method if the folderpath passed is a non existing one then the same error message is displayed twice.

"The path of the item '/SomeNonExistantPath/' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. > The path of the item '/SomeNonExistantPath/' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash."

1. Why some messages are displayed twice and some are displayed thrice ?

2. Is there any way to get the error message only once ?

Thanks in advance,

1. Propagation of errors?

2. You can get it down to zero by not invoking the error Smile
You need to finish debugging your web app, add exception handling and add custom error pages.
Forget about the error being displayed 2 or 3 times|||

Thanks for the reply, but I guess I didn't properly convey my problem

The problem is not why the error message is displayed, but it is why the error message displayed thrice or twice. We have the exception handling code in place. On getting an error we just do e.getMessage(), but this displays the error message twice or thrice.

Is there any configuration on the report server or something else which would help to get the error message only once ?

No comments:

Post a Comment