• Abhirup Mukherjee
  • NEWBIE
  • 9 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 6
    Replies
Hello All, 

I am trying to complete the "App Customisation Specialist Superbadge" while I have completed the requirements as stated in step 2. I am facing the below error while validating the challenge in step 2. 

Error: "Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: IRXZDZDI"

Can anyone help me in this!? 
Thanks. 
For this trigger trailhead question:
For this challenge, you need to create a trigger that, before insert or update, checks for a checkbox, and if the checkbox field is true, sets the Shipping Postal Code (whose API name is ShippingPostalCode) to be the same as the Billing Postal Code (BillingPostalCode).

The Apex trigger must be called 'AccountAddressTrigger'.
The Account object will need a new custom checkbox that should have the Field Label 'Match Billing Address' and Field Name of 'Match_Billing_Address'. The resulting API Name should be 'Match_Billing_Address__c'.
With 'AccountAddressTrigger' active, if an Account has a Billing Postal Code and 'Match_Billing_Address__c' is true, the record should have the Shipping Postal Code set to match on insert or update.


Getting following error while checking the challenge on trailheads:
Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.QueryException: List has no rows for assignment to SObject
User-added image
campingListItem.cmp:

<aura:component implements="force:appHostable">
   <aura:attribute name="item" type="Camping_Item__c"/>
     <p>The Item is: 
         <ui:outputText value="{!v.item}" />
    </p> 
    <p>Name:
        <ui:outputText value="{!v.item.Name}"/>
    </p>
    <p>Price:
        <ui:outputCurrency value="{!v.item.Price__c}"/>
    </p>
    <p>Quantity:
        <ui:outputNumber value="{!v.item.Quantity__c}"/>
    </p>
    <p>Packed?:
        <ui:outputCheckbox value="{!v.item.Packed__c}"/>
    </p>
    <p>
        <ui:button label="Packed!" press="{!c.packItem}"/>
    </p> 
</aura:component>

campingListController.js:

({
    packItem : function(component, event, helper) {
        
        var a = component.get("v.item");
    a.Name = 'Item2';
        a.Quantity__c = 20;
        a.Price__c = 200;
        a.Packed__c = true;
        component.set("v.item",a);
        
        var btnClicked = event.getSource();
        btnClicked.set("v.disabled",true);
        
    }
})
 

Has anyone completed the Security Superbadge since the updates by Trailhead?  I can't get the Apex tests to pass for Stage 2.  All I get is the (1/2) Test Methods Passed (i.e., 1 test failed) with absolutely no suggestion as to what to do.  

User-added image

Does anyone know what the Apex test is even looking for?  I can't fix what I don't know is broken, so I'm completely stuck.  

Maybe it's this part of the instructions?

"Configure other Salesforce settings related to record-level security to meet the business requirements."

That seems rather ambiguous so I'm not sure if I'm missing some part of the requirements.  

On this one, I have this as my code which I'm pretty sure is correct. But I'm lost because its stating that there are no contacts or leads with that last name. How exactly do I add these?

public class ContactAndLeadSearch{
    public static List<List< SObject>> searchContactsAndLeads(String first)
    {
         List<List<sObject>> searchList=[FIND 'Smith' IN ALL FIELDS RETURNING Lead(FirstName,LastName),Contact(FirstName,LastName)];
            return searchList;
     }
}


Thanks,

Trevor