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
Josh Lipe-MeltonJosh Lipe-Melton 

Working on final step of "Security for Lightning Components" Trail: Failed to save LTNG_Access_Control_Challenge_Wrapper.cmp

I am unable to save the component LTNG_Access_Control_Challenge_Wrapper.cmp at all. This is also true of the wrapper file in the demo. Any time I make any change and attempt to save either file, I receive this error:

Failed to save LTNG_Access_Control_Challenge_Wrapper.cmp: An unexpected error occurred. Please include this ErrorId if you contact support: 510282782-23865 (167693694)

Thanks for any help / suggestions
Raj VakatiRaj Vakati
Here is the code
\
http://debugdk.blogspot.com/2018/04/security-for-lightning-componentssecure_16.html​
<aura:component implements="force:appHostable" access="global">
    <aura:attribute name="sleepingGuard" default="false" type="Boolean" access="private"/>
    <div class="slds-row slds-align--absolute-center">
        <div class="slds-size--3-of-6">
        	<div class="slds-row slds-align--absolute-center">
        		<div class="slds-panel slds-size--4-of-6 ">
                    <h2 class="slds-text-heading--medium">Welcome to the castle.  Be warned, a guard will keep the castle from going over its person allocation</h2>
                    <ui:inputCheckbox label="Guard Asleep?" value="{!v.sleepingGuard}" />
                </div>
                <div class="slds-pabel slds-size--2-of-6">
                     <c:LTNG_Access_Control_Challenge /> 
                </div>
    		</div>
        </div>
    </div>
    <hr />
    <div class="slds-row slds-align--absolute-center">
        <div class="slds-size--4-of-6">
    		<c:CodeInstructions componentName="LTNG_Access_Control_Demo" />
        </div>
    </div>
</aura:component>

 
Josh Lipe-MeltonJosh Lipe-Melton
Hi Raj,

Thanks for the quick response. I think I get the concepts behind the code, my problem is that I can't save the file in the developer console. For example, even typing a space then deleting it and trying to save produces the error above. 
Juhi Saxena 23Juhi Saxena 23
I am facing the same problem. Failed to save LTNG_Access_Control_Challenge_Wrapper.cmp: An unexpected error occurred. Please include this ErrorId if you contact support: 109609887-7484 (167693694)
Boris ThomasBoris Thomas
Delete and recreate the component LTNG_Access_Control_Challenge_Wrapper. It solved the issue for me.
Zachary Alexander 22Zachary Alexander 22
Same experience as Boris Thomas. Needed to delete the components (including the tab, since it wouldn't let me delete them otherwise). Then remade them. Saved and passed with the code that was getting denied.
Marcelo CamposMarcelo Campos
here is my code
 
<aura:component implements="force:appHostable" access="global">
    <aura:attribute name="sleepingGuard" default="false" type="Boolean" />
    <div class="slds-row slds-align--absolute-center">
        <div class="slds-size--3-of-6">
        	<div class="slds-row slds-align--absolute-center">
        		<div class="slds-panel slds-size--4-of-6 ">
                    <h2 class="slds-text-heading--medium">Welcome to the castle.  Be warned, a guard will keep the castle from going over its person allocation</h2>
                    <ui:inputCheckbox label="Guard Asleep?" />
                </div>
                <div class="slds-pabel slds-size--2-of-6">
                    <c:LTNG_Access_Control_Challenge />
                </div>
    		</div>
        </div>
    </div>
    <hr />
    <div class="slds-row slds-align--absolute-center">
        <div class="slds-size--4-of-6">
    		<c:CodeInstructions componentName="LTNG_Access_Control_Demo" />
        </div>
    </div>
</aura:component>

i removed every v.sleepingGuard reference and worked fine