COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: sunny bachan prasad on 31 Jul 2018 03:31:19 AM

Title: Error while running the report in background
Post by: sunny bachan prasad on 31 Jul 2018 03:31:19 AM
Hi,
I am getting below error when i am trying to run the report in background.I am using java script in my report and have already set the interactive property to none.Can anyone share his/her experience on this?

HTML report output is not well formed. If your report uses "HTML Item" elements ensure that they result in well-formed HTML.

Reason:EntityRef: expecting ';'

URL:null
Line:443
Character:193
Source:
This page contains the following errors:error on line 443 at column 193: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.


Thanks in advance
Title: Re: Error while running the report in background
Post by: sdf on 31 Jul 2018 07:24:47 AM
have you checked the line 443 referred in the error.
It states that it is missing ";".

Title: Re: Error while running the report in background
Post by: Robl on 31 Jul 2018 07:29:36 AM
Is your JavaScript written in HTML objects in the report?
Does the report run when you run it directly from Report Studio (I still call it Report Studio)?


Title: Re: Error while running the report in background
Post by: sunny bachan prasad on 31 Jul 2018 07:54:26 AM
Hi Robl,
Yes my java code is written in HTML objects in report and its working fine from report studio. Below error which i mention is coming when i am trying to run the report in background.This error is similar to the error which we used to get if we try to run any report with java script and interactivity property set to yes.

Thanks,
Sunny
Title: Re: Error while running the report in background
Post by: sdf on 31 Jul 2018 08:56:47 AM
what version of CA do you have?
Title: Re: Error while running the report in background
Post by: sunny bachan prasad on 31 Jul 2018 09:49:26 AM
We have cognos version 11.0.10
Title: Re: Error while running the report in background
Post by: Lynn on 31 Jul 2018 10:11:29 AM
I'm not a Java script person, but I thought it runs in a browser and not on the server so it is inherently meant to be for interactive use.

Maybe you could post your code and describe what you are trying to achieve to get suggestions?
Title: Re: Error while running the report in background
Post by: sunny bachan prasad on 01 Aug 2018 05:14:54 AM
Hi Lynn,
Thanks for your time. I didn't see any issue in java code since report is working fine in cognos 11 once we set interactivity property to none. I am getting below error only when i am trying to run report in background.


Thanks,
Sunny
Title: Re: Error while running the report in background
Post by: Lynn on 01 Aug 2018 05:37:40 AM
Quote from: sunny bachan prasad on 01 Aug 2018 05:14:54 AM
Hi Lynn,
Thanks for your time. I didn't see any issue in java code since report is working fine in cognos 11 once we set interactivity property to none. I am getting below error only when i am trying to run report in background.


Thanks,
Sunny

What I am trying to say is that Java script is run in the browser. When you run a report in the background it is executed by the batch reporting service and therefore does not involve a browser.

https://www.cognoise.com/index.php/topic,23375.msg72289.html#msg72289
https://it.toolbox.com/question/javascript-is-not-working-in-scheduled-report-031212

If you describe what you are trying to achieve you might get suggestions on a non-Java script approach.