• naresh singhal
  • NEWBIE
  • 9 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hi Im getting below error in trailhead "Automate Sets of Delayed Actions with Workflow"

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.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please enter correct email address: []

Can somebody help in understanding what Im doing wrong here?
Hi Everyone, I've finally moved up to step on this mighty superbadge, but seem to be stuck on step 10.

Challenge Not yet complete... here's what's wrong: 
The BoatTile component doesn't fire the plotMapMarker event when a user clicks a boat.


My Code is listed below...

PlotMapMarker Event
<aura:event type="APPLICATION" description="PlotMapMarker">
    <aura:attribute name="sObjectId" type="String"/>
    <aura:attribute name="lat" type="String"/>
    <aura:attribute name="long" type="String"/>
    <aura:attribute name="label" type="String"/>
</aura:event>

Boat Tile Component
<aura:component >

    <aura:attribute name="boat" type="Boat__c" />
    <aura:attribute name="selected" type="boolean" default="false"/>
    <aura:registerEvent name="BoatSelect" type="c:BoatSelect"/>
    <aura:registerEvent name="BoatSelected" type="c:BoatSelected"/>
    <aura:registerEvent type="c.PlotMapMarker" name="PlotMapMarker"/>


        <lightning:button onclick="{!c.onBoatClick}"
                          class="{! v.selected ? 'tile selected' : 'tile' }">
            <div style="{!'background-image:url(\'' + v.boat.Picture__c + '\')'}"
                 class="innertile">
                <div class="lower-third">
                    <h1 class="slds-truncate">{! v.boat.Contact__r.Name}</h1>
                </div>
            </div>
        </lightning:button>

</aura:component>

Would love any help.
Hi Im getting below error in trailhead "Automate Sets of Delayed Actions with Workflow"

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.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please enter correct email address: []

Can somebody help in understanding what Im doing wrong here?
I'm getting the following error in my batchable class. I want to pull all training records with an expiration date older than today and then ultimately mass update their Training Status to expired. I plan on making it schedulable. 

I'm getting the following error:

BatchUpdateTraining: Class must implement the global interface method: Iterable&lt;Training__c&gt; start(Database.BatchableContext) from Database.Batchable&lt;Training__c&gt;

Apex:
global class BatchUpdateTraining implements Database.Batchable<Training__c>{
    public String Query;

    public Database.QueryLocator start(Database.BatchableContext BC) 
    {   
        Query = 'SELECT id,Training_Status__c,Expiry_Date__c FROM Training__c WHERE Expiry_Date__c > Today';
        return Database.getQueryLocator(Query);
    }

    public void execute(Database.BatchableContext BC, List<Training__c> scope) 
    {   
        for (Training__c ac : scope) 
        {
        
        }
        update scope;
    }

    public void finish(Database.BatchableContext BC) { }    
}