cancel
Showing results for 
Search instead for 
Did you mean: 

Setting cache level leads to JavaScript error

Former Member
0 Kudos
54

Hi there

We have a number of BW reports that are published through our Enterprise Portal.

The reports run fine by themselves.

They have been published to the portal and assigned to roles, and run fine.

Now we are looking to enhance performance, so have started playing around with cache settings.

All of a sudden, there is a JavaScript error on the template.

If the cache level is set to anything other than NONE, I get an error.

Closer investigation of the resulting code shows that the statement for including javascript files changes if caching is used. The 2 statements are shown below:

Working - <script language="JavaScript" src="/sap/bw/Mime/Customer/JavaScript/ToolbarJS.js"></script>

Not working - <SCRIPT language="JavaScript" src="http://portalprod.xxx.co.za:50000/irj/servlet/prt/portal/prtroot/com.sap.portal.contentfetching.bwtunnel?key=ge4unk2eh9gnueyz3vkiuw==&target=http://bwprod.xxx.co.za:8100/sap/bw/mime/customer/javascript/webtemplate.js">

</SCRIPT>

Has anyone seen anything like this before?

The error that comes up is a JavaScript error saying Object expected .... basically I don't think it can see the included javascript files.

Any ideas would be greatly appreciated at this point.

Cheers,

Andrew

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try doing a trace on the network traffic in order to find out if the javascript for the url http://portalprod.xxx.co.za:50000/irj/servlet/prt/portal/prtroot/com.sap.portal.contentfetching.bwtunnel?key=ge4unk2eh9gnueyz3vkiuw%3d%3d&target=http%3a%2f%2fbwprod.xxx.co.za%3a8100%2fsap%2fbw%2fmime%2fcustomer%2fjavascript%2fwebtemplate.js">

has been downloaded, and if not, what is the error code. It might be a authorization problem.

You could fex use ethereal (from http://ethereal.com) to do the sniffing. (use options tcp port 50000, otherwise you would be overwhelmed with data)

Regards

Dagfinn

Former Member
0 Kudos

Andrew,

We are getting the same problems. I have only been on site with this customer for a couple of days, but it seems that your portal and BW system need to be patched to a suitable level. See note 939400. It might help

Regards,

Paul