• Pratiksha Jadhav 24
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
My web component name is :- 'paginatorLWC'. I am calling this from another web component via : <c-paginator-lwc></<c-paginator-lwc>.
Can somebody suggest what is reason for error :  'LWC1010: Failed to resolve entry for module'. I tried :- <c-paginator-LWC></<c-paginator-LWC> also. I know this is case sensitive. 

Thanks in Advance.
Hi,
     Need help in this Closed Opportunity -Trigger Bulk Apex trigger trail head challenge.The following error was received when trying to check the challenge eventhough the code worked and desired result was achieved. Could not check the challenge.
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: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, ClosedOpportunityTrigger: execution of AfterInsert caused by: System.ListException: Before Insert or Upsert list must not have two identically equal elements Trigger.ClosedOpportunityTrigger: line 19, column 1: []

The code is given below.
trigger ClosedOpportunityTrigger on Opportunity (after insert, after update) {
    try {
          List<Opportunity> Opps = [SELECT Id, StageName FROM Opportunity 
             WHERE StageName =:'Closed Won' AND Id IN :Trigger.New];
    
           List<Task> tasks = new List<Task>();
           Task t = new Task();

           for(Opportunity opp : Opps) {
               if(Trigger.isInsert || Trigger.isUpdate) {
                t.Subject = 'Follow Up Test Task';
                t.WhatId = opp.Id;
                tasks.add(t);
           
              }   
           }
           System.debug(tasks.size() + '  tasks size');
           if(tasks.size() > 0) {  
            upsert tasks;
           }    
       }catch (DmlException e) {
        System.debug('A DML exception has occurred: ' +
                    e.getMessage());
    }         
}
Thanks,
Chithra

 

This is the trailhead challenge I'm working on.
Create a report of Opportunities grouped by Type. Then follow the dashboard and share a snapshot on Chatter.
Name the report 'Opportunities by Type' and save it to the 'Unfiled Public Reports' folder.
The report must be of type Opportunities.
The report format must be a Summary report.
The report must be grouped by 'Type'.
The date range should be for All Time.
You can include any columns you like, but must include 'Amount' as one of the columns.
Create a dashboard named 'Opportunities Dashboard' and save it to the 'My Personal Dashboards' folder.
Create a dashboard component on the dashboard using the report you just created.
Set the header to 'Opptys by Type' and the title to 'For all time' for the dashboard component.
Use the horizontal bar chart dashboard component, and ensure the record count is displayed on the x-axis.
Follow the 'Opportunities Dashboard' dashboard in Chatter. Make sure that Feed Tracking is enabled for Dashboards first.
Post a snapshot of the 'Opptys by Type' dashboard component to Dashboard Chatter feed.

But I'm getting the following error when I check if the challenge has been completed
Challenge Not yet complete... here's what's wrong: 
The dashboard snapshot post to Chatter was not found.
Can someone hepl me?
If possible post the snapshots?