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
Dave DudekDave Dudek 

read only user cannot access lightning component

i've created a lightning app with an embedded lightning component that works for our internal users except for the read only user. the read only user has access to the apex class and the various fields referenced by the lightning component. i'm not sure why i'm getting this error and salesforce supprot says it's a limitation of Aura.

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 260643338-555165 (1078880847)



 
Dave DudekDave Dudek
the other issue is that it works on another computer sometimes but other times I get the same error. 
Rajiv Penagonda 12Rajiv Penagonda 12
Dave, can you share the list of attributes from your components here? In my experience, I have noticed similar issues if you have defined the type of your attribute with a custom type, for instance:
<aura:attribute name="componentData" type="My_Shiny_Custom_Object__c" access="private" />
Simple solution that may work would be as follows:
<aura:attribute name="componentData" type="Object" access="private" />
Notice how the type is now a simple "Object". All dot operands remain valid.

-Rajiv
Dave DudekDave Dudek
<aura:component controller="MyController">
  <aura:handler name="init" value="{!this}" action="{!c.doInit}" />

<aura:attribute name="mydata" type="Object"/>
<aura:attribute name="mycolumns" type="List"/>
<aura:attribute name="sortedBy" type="String"/>
<aura:attribute name="sortedDirection" type="String"/>

<lightning:datatable data="{! v.mydata }"
                     columns="{! v.mycolumns }"
                     keyField="Id"
                     onrowselection="{! c.getSelectedName }"
                     onsort="{!c.updateColumnSorting}"
                     sortedBy="{!v.sortedBy}"
                     sortedDirection="{!v.sortedDirection}"
                     hideCheckboxColumn="{!true}"
                       />
</aura:component>
Rajiv Penagonda 12Rajiv Penagonda 12
If this example is from the salesforce documentation for lightning:datatable, does your controller code also match?

How is the read-only user configured? License type?