Skip to Content
author's profile photo Former Member
Former Member

Javascript error in portal - Access is denied.

Hello All,

We have a custom portal page and we have embedded it into portal such that we get a Loading image while the page loads up.

So we have re-directed this through the URLview -


and the parameters - contentUrl - link to the page we want to show and LoadingStr = Loading...

However this iView works perfectly fine when attached to a role and then through portal framework.

But when we embed this into an iFrame we get the below Javascript error message -

I also made sure we have Permissions assigned to the security zone for

Below is the javascript error details -

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.3)
Timestamp: Wed, 25 Jul 2012 14:52:29 UTC

Message: 'EPCM.getSAPTop().LSAPI' is null or not an object
Line: 111
Char: 17
Code: 0
URI: https://hostname:port/irj/portal?NavigationTarget=navurl://73565a7e52760130fa72a7450521bfa5&NavMode=1&ticket=ST-679-Ws2TSmYu0DjiO9Hfvoau-cgunx187

Message: Access is denied.

Line: 112
Char: 2
Code: 0
URI: https://hostname:port/irj/servlet/prt/portal/prtroot/

Message: 'undefined' is null or not an object
Line: 86
Char: 3
Code: 0
URI: https://hostname:port/irj/servlet/prt/portal/prtroot/

Any thoughts please... Appreciate it !!!

Thanks and Regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 05, 2012 at 05:32 AM

    Hi Samta,

    This note: 1612008

    explains the issue you are facing.

    Best Regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2012 at 04:52 AM


    Are you using the AFPisLoaded event ? You need to subscribe to this event and put your scripts inside. this event will fire after all AFP have been loaded and are now ready for use.


    EPCM.subscribeEventReliable('urn:com.sapportals:navigation', 'AFPisLoaded', function _afpLoaded() { //write your script here });

    also, hope this guide helps you:

    please note this guide is for 7.3 SP1 and higher.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.