function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neta OrlovskiNeta Orlovski 

Problem using analytics:reportChart in Force.com site

I've created a VF page to display a standart chart. The page is working fine from within SF. When trying to open the page from Force.com site I get the following error:
Error while running $A.run() : Unknown component: markup://aura:component
Any ideas?
The VF page is:
<apex:page > <analytics:reportChart reportId="00Oxxxxxx"></analytics:reportChart> </apex:page>
 
Best Answer chosen by Neta Orlovski
Neta OrlovskiNeta Orlovski
I received the answer "You can't use that component on a public site page because the guest user cannot have the Run Reports permission".

http://salesforce.stackexchange.com/questions/67113/problem-using-analyticsreportchart-in-force-com-site/67135#67135

All Answers

SonamSonam (Salesforce Developers) 
Hi Neta,
 I am able to reproduce this issue on my dev ORG as well, will check this internally and update you once I have further information on this.
 
ankur manochaankur manocha

I see related known issue here with Spring'15 release, Javascript error is thrown as a result of an <analytics:reportChart> tag being enclosed within an <apex:tab> tag on the same Visualforce page.

https://success.salesforce.com/issues_view?id=a1p300000008XwOAAU

Hope this helps.

Regards,

Ankur 

Neta OrlovskiNeta Orlovski
Hi,
Thank you for your answer.
The thing is the VF page os working fine from within SF. The error only happends when trying to use the page from Force.com site.
Regards,
Neta
Neta OrlovskiNeta Orlovski
I received the answer "You can't use that component on a public site page because the guest user cannot have the Run Reports permission".

http://salesforce.stackexchange.com/questions/67113/problem-using-analyticsreportchart-in-force-com-site/67135#67135
This was selected as the best answer