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
Jack Davis 3Jack Davis 3 

Error's with Safari Browser

Hi, 

I have built a custom lightning component that's triggered from a button on the event object. To complete the application the user selects 'Done', however, at that point the application hangs and I end up with the blue circle spinning and get the following error: 

This page has an error. You might just need to refresh it. Error in $A.get Callback() [CAn't find variable: sforce] Callback failed: apex://PMA_WizardCtrl/ACTION$setRecordFieldvalue Failing descripto: {c:PMA_Wizard}

Any help troubleshooting is most appreciated. Below is the PMA Wizard code.

"<aura:component controller="PMA_WizardCtrl" description="PMA_Wizard" implements="force:hasRecordId">

    <!-- common assets -->
    <ltng:require styles="{! join(',',
                                $Resource.PMA + '/css/app.css') }"/>
    <!-- /common assets -->

    <!-- component variables -->
    <aura:attribute name="uiTheme" type="String"/>
    <aura:attribute name="recordId" type="String"/>
    <aura:attribute name="accountId" type="String"/>
    <aura:attribute name="userId" type="String"/>
    <aura:attribute name="eventRecordTypeId" type="String"/>
    <aura:attribute name="settings" type="Object"/>
    <aura:attribute name="step" type="String" default="error"/>

    <aura:attribute name="account" type="Account" access="private"/>

    <aura:attribute name="steps" type="List" default="['dealerEmployees', 'dealerInformation', 'trainingInformation', 'alignedBodyshop', 'futureVisits']" access="private"/>

    <aura:attribute name="asyncProcesses" type="Integer" default="0" access="private"/>
    <!-- /component variables -->

    <!-- component handle events -->
    <aura:handler name="init" value="{!this}" action="{!c.handleInitCmp}"/>

    <aura:handler name="onaction" event="c:PMA_Event" action="{!c.handleAction}"/>
    <aura:handler event="force:showToast" action="{!c.handleShowToast}" phase="bubble"/>
    <!-- /component handle events -->

    <!-- component content -->
    <c:PMA_Toasts aura:id="toasts"/>

    <!-- wizzard header -->
    <lightning:layout multipleRows="true" verticalAlign="start" class="pma-app">
        <lightning:layoutItem flexibility="auto" size="12" class="section">
            <c:PMA_WizardHeader step="{!v.step}" account="{!v.account}"/>
        </lightning:layoutItem>

        <lightning:layoutItem flexibility="auto" size="12" class="section">
            <div aura:id="sectionMain" class="section-item-main">
                <aura:if isTrue="{!v.step == 'dealerEmployees'}">
                    <c:PMA_DealerEmployees aura:id="dealerEmployees" accountId="{!v.accountId}" settings="{!v.settings}"/>
                </aura:if>

                <aura:if isTrue="{!v.step == 'dealerInformation'}">
                    <c:PMA_DealerInformation aura:id="dealerInformation" accountId="{!v.accountId}"/>
                </aura:if>

                <aura:if isTrue="{!v.step == 'trainingInformation'}">
                    <c:PMA_TrainingInformation aura:id="trainingInformation" accountId="{!v.accountId}"/>
                </aura:if>

                <aura:if isTrue="{!v.step == 'alignedBodyshop'}">
                    <c:PMA_AlignedBodyshop aura:id="alignedBodyshop" accountId="{!v.accountId}"/>
                </aura:if>

                <aura:if isTrue="{!v.step == 'futureVisits'}">
                    <c:PMA_FutureVisits aura:id="futureVisits" accountId="{!v.accountId}" userId="{!v.userId}" eventRecordTypeId="{!v.eventRecordTypeId}"/>
                </aura:if>
            </div>
        </lightning:layoutItem>

        <!-- spinner -->
        <lightning:spinner variant="brand" size="medium" alternativeText="Loading..." class="{!v.asyncProcesses == 0 ? 'slds-hidden' : ''}"/>

        <lightning:layoutItem flexibility="auto" size="12" class="section">
            <!-- wizzard footer -->
            <c:PMA_WizardFooter steps="{!v.steps}" step="{!v.step}"/>
        </lightning:layoutItem>
    </lightning:layout>

    <!-- /component content -->

</aura:component>"