3

I have a Lightning Component embeded in Visualforce page with LightningOut way.

For users with Salesforce Platform license the page doesn't load at all, instead I get following error in JS console: https://enxoo-cpq-dev-ed--c.eu6.visual.force.com/c/CPQ_CONF00_OutApp.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT 404 (Not Found)

enter image description here Changing user license back to Salesforce and everything works fine - page loads normally.

I have my domain enabled in the environment.

Is there any magic trick that should be done to enable that?

  • 1
    I see the same question from another user: salesforce.stackexchange.com/questions/146182/… – Patlatus Oct 27 '16 at 9:45
  • did you try to open Salesforce Support ticket? – Patlatus Oct 27 '16 at 9:46
  • Do you mind showing your lightning out tag in your vf ? – Mohith Shrivastava Oct 27 '16 at 12:33
  • Can you recompile all your classes and make sure users with Salesforce Platform profile have access to the Apex Classes related to your Lightning Component. I've seen LIGHTNING_OUT 404 Error when one of the classes related to the Lightning Component become invalid and required recompilation. – steals Oct 27 '16 at 20:02
  • I did that. All classes compile successfully and users with these licenses have access to all classes / pages both with Permission Set. – Maciek Simm Oct 28 '16 at 8:08
2

Just for the sake of keeping answer, the problem was that one of the aura:attributes had sObject type declared that was only available for Salesforce license users.

<aura:attribute name="contract" type="Contract"/>

To solve it you can change it to

<aura:attribute name="contract" type="Object"/>

But you need to take into account that non-Salesforce license users will not see that object.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.