• Sitarama Murthy
  • NEWBIE
  • 272 Points
  • Member since 2016
  • Salesforce Administrator/Consultant
  • Arrow Electronics


  • Chatter
    Feed
  • 7
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 58
    Replies
Hi,

i am getting below error while completing "Lightning Experience Rollout Specialist Superbadge Step #8"
Challenge Not yet complete... here's what's wrong:
Knowledge must be enabled for the org.
.User-added image


i have alredy enabled knowledge settings..

User-added image

Thank you.
Did anyone have this issue with challenge 6.

Challenge Not yet complete... here's what's wrong: 
Didn't find a Lightning page named Key Sales Data. This page must include: 1. List of new Accounts this week, 2. Recent items showing an "Opportunity", "Lead" and "Contact", 3. Log A Call and New Opportunity actions. Don't use the CreateOppty custom Lightning component for this challenge.

My Key Sales Data Lightning page screenshots:
User-added image

User-added image
I have the below VF Page with 10 custom buttons,
<apex:page id="TeacherKPI_VF" controller="TeacherKPI_VF_Controller">
  <apex:form >
  <div style="text-align:center;">
      <h1 style="text-decoration: underline;">TEACHER'S KPI</h1><br/><br/>
      <apex:commandButton value="Lesson Observation" action="{!LessonObservation_VF}"/><br/><br/>
      <apex:commandButton value="File Check" action="{!FileCheck_VF}"/><br/><br/>
      <apex:commandButton value="Request for Corrective Action" action="{!RequestforCorrectiveAction_VF}"/><br/><br/>
      <apex:commandButton value="Withdrawal Trend" action="{!WithdrawalTrend_VF}"/><br/><br/>              
      <apex:commandButton value="Cost Recoverability Index" action="{!CostRecoverabilityIndex_VF}"/><br/><br/>
      <apex:commandButton value="Teacher Parent Dialogue Log" action="{!TeacherParentDialogueLog_VF}"/><br/><br/>
      <apex:commandButton value="Training sessions" action="{!TrainingSessions_VF}"/><br/><br/>
      <apex:commandButton value="Parent's Survey" action="{!ParentSurvey_VF}"/><br/><br/>
      <apex:commandButton value="Student's Survey" action="{!StudentSurvey_VF}"/><br/><br/>
      <apex:commandButton value="Leave / MC" action="{!LeaveMC_VF}"/><br/><br/>
      <apex:commandButton value="Back" action="{!Back}"/>      
  </div>
  </apex:form>
</apex:page>

When any of the button is click, need to open another VF PAGEs for example
<apex:commandButton value="Lesson Observation" action="{!LessonObservation_VF}"/><br/><br/> need to open VF Page LessonObservation_VF, I am not sure on how to do this, please help

The Class is not complete yet
public with sharing class TeacherKPI_VF_Controller {

    public PageReference Back() {
        return null;
    }

    public PageReference LeaveMC_VF() {
        return null;
    }

    public PageReference StudentSurvey_VF() {
        return null;
    }

    public PageReference ParentSurvey_VF() {
        return null;
    }

    public PageReference TrainingSessions_VF() {
        return null;
    }

    public PageReference TeacherParentDialogueLog_VF() {
        return null;
    }


    public PageReference CostRecoverabilityIndex_VF() {
        return null;
    }

    public PageReference WithdrawalTrend_VF() {
        return null;
    }

    public PageReference RequestforCorrectiveAction_VF() {
        return null;
    }

    public PageReference FileCheck_VF() {
        return null;
    }

    public PageReference LessonObservation_VF() {
        return null;
    }

}

 
  • July 19, 2017
  • Like
  • 0
I have a percentage field box with an API name field of BG_CHBX_06__c, and I want to create a separate checkbox to default to TRUE if the percent is greater than 75%. 

Can someone help me with the correct syntax? 

Thank you!

API Field Name             Field Type    
BG_CHBX_06__c              Percent
BG_CHBX_06_VALUE__c        Checbox

 
Hey guys!!
Anyone there completed this challenge?
I've tried a number of ways and finally succeeded by writing the folloeing code:

campingListItem.cmp:

<aura:component >
    <aura:attribute name="item" type="Camping_Item__c" required="true" />
    <aura:attribute name="disabled1" type="Boolean" default="false" />
    <p><ui:inputCheckbox value="{!v.item.Packed__c}"/></p>
    <ui:button label="Packed!" press="{!c.packItem}" disabled="{!v.disabled1}"/>
</aura:component>

campingListController.js

({
    packItem : function(component, event, helper) {
        component.set("v.item.Packed__c",true);
        component.set("v.disabled1", true);
    }
})
It's working fine on my browser but on checking challenge, I get:
Challenge Not yet complete... here's what's wrong:
The campingListItem JavaScript controller isn't disabling the button correctly.

Can't understand what's going wrong. Also tried by other ways like:
component.set(true, event.getSource().get("v.disbaled"));
OR
component.set(event.getSource().get("v.disbaled"), true);
ETC..
None of them seems to be working fine.
 
Hi I am trying to automate an approval process using a process builder. Here if opportuity amount is greater than 150000, user needs approval from manager. For that I have created an approval process already and in the actions of process builder, I have included this approval process. But when I try to save the oppoertunity with this amount , I am getting an error like this"Error Occurred: This record is currently in an approval process. A record can be in only one approval process at a time."
Can you please help me to assign an approval prcess using process builder? if you have examples on this, That would be very helpful.
Thanks

Hi,
Is possible to distribute accounts over users like in queues.

is there any way?

Regards
Abhilash Mishra

Hi All,
we have SSO enabled for users login in Production and we do not have SSO for Sandbox.
i created new Sandbox(developer) after creation in success email, when i clicked that link ideally i should take me to Change passowrd screen but its taking me to Login screen.

Help me out how can i login to sandbox, what i am missing in it.

Thanks,
Ram
Hi All,

Im unable to clear step-8.  getting this below error
User-added image
User-added image

i have 
I have enabled the lightning Knowledge, created 3 record types and 3 page layouts and also created two custom fileds in knowledge obejctg., but still can not clear the step.

pelase let me know if have to do any other configuration.
Hi,

On button click in VF page i want to open Case object record with some fields should pre populated with values taking from VF page and that pre populated fields should not be editable(user should edit that pre populated field,but user should only read that field). And other case fields should be filled and case records should be created.

Can anyone help on this.

thanks
User-added image
I need help in creating dashboard shown in above image.
Its related to open vs closed cases for month of may.
it should take the count of cases from previous month also.
"3. Update Records 

Record - [OpportunityLineItem]

Criteria for Updating Records - No criteria-just update records 

Set new field values for the records you update 

Fulfilment Created = True 
Needs Insurance - Reference- [OpportunityLineItem].Product2.Needs_Insurance_c
Needs waiver - Reference -  [OpportunityLineItem].Product2.Needs_Waiver_c"

for me its not showing Needs Insurance and Needs waiver fields to select when i update Adventure Package record(opptylineitem)

please help here.
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: EZHCJNNJ
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: PPLDTMYR
Can  anyone help me with creating Lighting sales manager dashboard from first.
Do I need to write @testVisible in Apex class multiple times? Is there any altenate way to access all private variables by wrting single @test visbile
Hi,

i am getting below error while completing "Lightning Experience Rollout Specialist Superbadge Step #8"
Challenge Not yet complete... here's what's wrong:
Knowledge must be enabled for the org.
.User-added image


i have alredy enabled knowledge settings..

User-added image

Thank you.
Hello,

I am currently running in to an issue on Step 6 of the Lightning Experience Rollout Specialist Superbadge.

When I click check challenge, this is the error I get:
Challenge Not yet complete... here's what's wrong: 
The All Lusso Scarpe Employee group page must display the following information on the right side of the page: recommended groups and individuals to follow, and the most popular topics currently under discussion.

Here is a screenshot of my page:
User-added image

Can anyone help me understand what I am doing wrong?

Thank you!
I removed the link from the classic pages and then edited the lightning page to add the component but I still get this error - 

Challenge Not yet complete... here's what's wrong: 
Didn't find a replacement for the UpsellCrosssellOpportunity link that uses the CreateOppty custom Lightning component.

Why?
Hi,

I am getting error as below in Lightning Experience Rollout Specialist Challenge #8

The Lightning Knowledge app doesn't have the ability to view either or both: recently-visited primary tabs or subtabs.

Could any one please suggest me?

Thanks
Surya
Did anyone have this issue with challenge 6.

Challenge Not yet complete... here's what's wrong: 
Didn't find a Lightning page named Key Sales Data. This page must include: 1. List of new Accounts this week, 2. Recent items showing an "Opportunity", "Lead" and "Contact", 3. Log A Call and New Opportunity actions. Don't use the CreateOppty custom Lightning component for this challenge.

My Key Sales Data Lightning page screenshots:
User-added image

User-added image
Hi All,

Im unable to clear step-8.  getting this below error
User-added image
User-added image

i have 
I have enabled the lightning Knowledge, created 3 record types and 3 page layouts and also created two custom fileds in knowledge obejctg., but still can not clear the step.

pelase let me know if have to do any other configuration.
I am getting error The Destination Success.png document hasn't been made available in Lightning Experience. in Lightning Experience Rollout Specialist Super badge Challenge#3







User-added image

 
I'm completing a Hands On Challenge; the challenge is to create a button in the Lightning Experience. 

Here are the instructions:

Add a custom button to a contact
Ursa Major Solar wants to be able to look at their contacts’ internet footprints. Create a custom button so users can do this right from a contact record.
Create a custom button for the Contact object
Label: Google Info
The custom button opens a link to http://google.com?q={!Contact.Name} (where {!Contact.Name} is the current contact's name)
Add the custom button to the Contact Layout page layout

I've created a Detail Page Button called Google_Info, literally copied & pasted the above URL, and added it to the Contact Layout page layout.

I'm getting this 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: AOYGYYSC
Superbadge
Process Automation Specialist> 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: RFJTICCO

I am really stuck here.

Any help please.?

Reagrds,
Ajay
  • August 03, 2017
  • Like
  • 0
Hello, 

I'm trying to validate the first step of the Process Automation Specialist Superbadge and I am getting the following error message ever since I am using a brand new dev org :
 
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: FALRDUZD

Could somebody please me ?

Thanks a lot.
Hi,

I am using two Dev orgs, I made some changes in one dev org for custom page, same code i have updated in to different dev org but it is not working and also getting some vf error.

Could you please let me know why it getting error with same code in diff dev org.

Thanks in advance
KVM
I have the below VF Page with 10 custom buttons,
<apex:page id="TeacherKPI_VF" controller="TeacherKPI_VF_Controller">
  <apex:form >
  <div style="text-align:center;">
      <h1 style="text-decoration: underline;">TEACHER'S KPI</h1><br/><br/>
      <apex:commandButton value="Lesson Observation" action="{!LessonObservation_VF}"/><br/><br/>
      <apex:commandButton value="File Check" action="{!FileCheck_VF}"/><br/><br/>
      <apex:commandButton value="Request for Corrective Action" action="{!RequestforCorrectiveAction_VF}"/><br/><br/>
      <apex:commandButton value="Withdrawal Trend" action="{!WithdrawalTrend_VF}"/><br/><br/>              
      <apex:commandButton value="Cost Recoverability Index" action="{!CostRecoverabilityIndex_VF}"/><br/><br/>
      <apex:commandButton value="Teacher Parent Dialogue Log" action="{!TeacherParentDialogueLog_VF}"/><br/><br/>
      <apex:commandButton value="Training sessions" action="{!TrainingSessions_VF}"/><br/><br/>
      <apex:commandButton value="Parent's Survey" action="{!ParentSurvey_VF}"/><br/><br/>
      <apex:commandButton value="Student's Survey" action="{!StudentSurvey_VF}"/><br/><br/>
      <apex:commandButton value="Leave / MC" action="{!LeaveMC_VF}"/><br/><br/>
      <apex:commandButton value="Back" action="{!Back}"/>      
  </div>
  </apex:form>
</apex:page>

When any of the button is click, need to open another VF PAGEs for example
<apex:commandButton value="Lesson Observation" action="{!LessonObservation_VF}"/><br/><br/> need to open VF Page LessonObservation_VF, I am not sure on how to do this, please help

The Class is not complete yet
public with sharing class TeacherKPI_VF_Controller {

    public PageReference Back() {
        return null;
    }

    public PageReference LeaveMC_VF() {
        return null;
    }

    public PageReference StudentSurvey_VF() {
        return null;
    }

    public PageReference ParentSurvey_VF() {
        return null;
    }

    public PageReference TrainingSessions_VF() {
        return null;
    }

    public PageReference TeacherParentDialogueLog_VF() {
        return null;
    }


    public PageReference CostRecoverabilityIndex_VF() {
        return null;
    }

    public PageReference WithdrawalTrend_VF() {
        return null;
    }

    public PageReference RequestforCorrectiveAction_VF() {
        return null;
    }

    public PageReference FileCheck_VF() {
        return null;
    }

    public PageReference LessonObservation_VF() {
        return null;
    }

}

 
  • July 19, 2017
  • Like
  • 0
Hi, 
I have suddenly stopped being able to see the system.debug statements in my log. 
Any ideas why this could have happened?
Hello,

Need help on javascript validation on a visualforce page. The VF page itself is using the standard controller for Opportunity. I'm new to vf page and js, so I'm unsure what I'm missing. Any feedback is appreciated. 

<script>
    function validateType(){
        var valType = document.getElementById'{!$Component.form.pageBlock2.initialFollowType.outputType.Type}').value;
if(valType.value=="Email")
            {
                alert("If Initial Follow Up Type = Phone or Email, Follow Up Date is Required, Follow Up Time of Day is Required, and Appointment Time should be blank");
                return false;
            }else
            {
              if(valType =="Phone"&& valDate ==NULL && valTimeofDay ==NULL && valTime !=NULL)
              {
                    alert("If Initial Follow Up Type = Phone or Email, Follow Up Date is Required, Follow Up Time of Day is Required, and Appointment Time should be blank");
                    return false;
              }
             }return true;        
                            
     </script>
  • June 08, 2017
  • Like
  • 0
Hi Friends,

Good Morning. I need to write a test class for the below trigger. I wrote a test class for insert , updation of the Contact / Lead records. In this trigger i need to check this particular record act as a campain member or not ? If Yes , I need to update . No, I  have to create . I didn't understand how to write test class for this scenario .

Trigger :
trigger Dataimport on New_Lead__c(before insert, before update) {
    List <Contact> upcon = new List <Contact> ();
    List <Contact> upcon1 = new List <Contact> ();
    List <Contact> upcon2 = new List <Contact> ();
    List <Contact> incon = new List <Contact> ();
    Integer count;
List <Campaign> campCrt = new List <Campaign> ();
    List <Campaign> camprecds = [select name, (select Name, Status, ContactId,LeadId,Phone, MobilePhone, 
                                     CompanyOrAccount from CampaignMembers ) from Campaign];
    List <CampaignMember> campMemUpd = new List <CampaignMember>();
List <CampaignMember> campMemcre = new List <CampaignMember>();
    List <Account> accs = [select Email_Domain__c, (select LastName,Email, otherphone, phone, Contact_Status__c,Title,
                                  MailingStreet,MailingCity,MailingState,MailingPostalCode
                                                    from Contacts) from Account];
List <CampaignMember> campMem = [select Name, Status, ContactId,LeadId,Phone, MobilePhone, 
                                     CompanyOrAccount from CampaignMember];
for (New_Lead__c customObjRecord: Trigger.New) { // Iterate over the custom object records
           if(customObjRecord.Email_Address__c!=null && customObjRecord.Email_Address__c !=''){   
                custObjEmailDomain = ((customObjRecord.Email_Address__c).split('@')[1]).split( '\\.')[0];
           }
        System.debug(customObjRecord);
        Boolean accCrtFlag = true;
        for (Account a: accs) { // Iterate over each account object
            if ( a.Email_Domain__c != null && custObjEmailDomain == a.Email_Domain__c &&
                (custObjEmailDomain != '' || custObjEmailDomain != null)) {
                accCrtFlag = false;  
                Boolean inconFlag = true;
                for (Contact c: a.Contacts) {
                    System.debug(c);
                    if ((customObjRecord.Email_Address__c != null && c.email != null && customObjRecord.Email_Address__c ==
                            c.email && customObjRecord.Email_Address__c != '') && customObjRecord.Office_Phone__c != c.phone ) // If Email ids are same
                    {
                        System.debug('Email Matched');
                        inconFlag = false;
                        contact c1 = c;
                        if (customObjRecord.name != null && customObjRecord.name != '')
                            c1.LastName = customObjRecord.Name;
                        if (customObjRecord.First_Name__c != null && customObjRecord.First_Name__c != '')
                            c1.FirstName = customObjRecord.First_Name__c;
                        if (customObjRecord.Office_Phone__c != '' && customObjRecord.Office_Phone__c != null)
                            c1.OtherPhone = customObjRecord.Office_Phone__c; // Update new phone Field value into other phone Field
                        if (customObjRecord.Business_Card_Title__c != null && customObjRecord.Business_Card_Title__c !='')
                            c1.Title=customObjRecord.Business_Card_Title__c;
                        if (customObjRecord.Primary_Address_Street__c != null && customObjRecord.Primary_Address_Street__c !='')
                            c1.MailingStreet=customObjRecord.Primary_Address_Street__c;
                        if (customObjRecord.Primary_Address_City__c != null && customObjRecord.Primary_Address_City__c !='')
                            c1.MailingCity=customObjRecord.Primary_Address_City__c;
                        if (customObjRecord.Primary_Address_State__c != null && customObjRecord.Primary_Address_State__c !='')
                           c1.MailingState=customObjRecord.Primary_Address_State__c;
                        if (customObjRecord.Primary_Address_Country__c != null && customObjRecord.Primary_Address_Country__c !='')
                           c1.MailingCountry=customObjRecord.Primary_Address_Country__c;
                        if (customObjRecord.Primary_Address_Postal_Code__c != null && customObjRecord.Primary_Address_Postal_Code__c !='')
                           c1.MailingPostalCode=customObjRecord.Primary_Address_Postal_Code__c;
                        
                                                
                        Boolean campCrtFlag = true; 
                        
                        for (Campaign camp: camprecds){
                            if(camp.Name==customObjRecord.Campaign__c){
                                for(CampaignMember cm: camp.CampaignMembers){
                                    if(cm.ContactId==c1.Id){
                                        campCrtFlag=false;
                                    }
                                }
                                if(campCrtFlag){
                                    CampaignMember cm = new CampaignMember(CampaignId = camp.Id, ContactId = c1.Id,
                                                                           status = customObjRecord.Member_Status__c);
                                    campMemcre.add(cm);
                                }
                                
                            }
                        }
                        upcon.add(c1); // Update the existing record in Contacts
                    }
                    else if (customObjRecord.Email_Address__c != c.email && (customObjRecord.Office_Phone__c == c.phone &&
                            customObjRecord.Office_Phone__c != '' && customObjRecord.Office_Phone__c != null)) // If phone numbers are same
                    {
                        System.debug('Phone Matched');
                        inconFlag = false;
                        contact c2 = c;
                        if (customObjRecord.Name != null && customObjRecord.Name != '') // Update LastName field when new Name field value is not empty .
                            c2.LastName = customObjRecord.Name;
                        if (customObjRecord.First_Name__c != null && customObjRecord.First_Name__c != '')
                            c2.FirstName = customObjRecord.First_Name__c;
                        if (customObjRecord.Other_Phone__c != null && customObjRecord.Other_Phone__c != '')
                            c2.OtherPhone = customObjRecord.Other_Phone__c;
                        if (customObjRecord.Email_Address__c != null && customObjRecord.Email_Address__c != '')
                            c2.Email = customObjRecord.Email_Address__c;
                        if (customObjRecord.Business_Card_Title__c != null && customObjRecord.Business_Card_Title__c !='')
                            c2.Title=customObjRecord.Business_Card_Title__c;
                        if (customObjRecord.Primary_Address_Street__c != null && customObjRecord.Primary_Address_Street__c !='')
                            c2.MailingStreet=customObjRecord.Primary_Address_Street__c;
                        if (customObjRecord.Primary_Address_City__c != null && customObjRecord.Primary_Address_City__c !='')
                            c2.MailingCity=customObjRecord.Primary_Address_City__c;
                        if (customObjRecord.Primary_Address_State__c != null && customObjRecord.Primary_Address_State__c !='')
                           c2.MailingState=customObjRecord.Primary_Address_State__c;
                        if (customObjRecord.Primary_Address_Country__c != null && customObjRecord.Primary_Address_Country__c !='')
                           c2.MailingCountry=customObjRecord.Primary_Address_Country__c;
                        if (customObjRecord.Primary_Address_Postal_Code__c != null && customObjRecord.Primary_Address_Postal_Code__c !='')
                           c2.MailingPostalCode=customObjRecord.Primary_Address_Postal_Code__c;
                        
                        Boolean campCrtFlag = true;
                        for (Campaign camp: camprecds){
                            if(camp.Name==customObjRecord.Campaign__c){
                                for(CampaignMember cm: camp.CampaignMembers){
                                    if(cm.ContactId==c2.Id){
                                        campCrtFlag=false;
                                    }
                                }
                                if(campCrtFlag){
                                    CampaignMember cm = new CampaignMember(CampaignId = camp.Id, ContactId = c2.Id,
                                                                           status = customObjRecord.Member_Status__c);
                                    campMemcre.add(cm);
                                }
                            }
                        }
                      
                        upcon.add(c2); // Update the existing record in Contacts
                    }
                    else if ((customObjRecord.Email_Address__c == c.email && customObjRecord.Email_Address__c != '' &&
                            customObjRecord.Email_Address__c != null) && (customObjRecord.Office_Phone__c == c.phone &&
                            customObjRecord.Office_Phone__c != '' && customObjRecord.Office_Phone__c != null)) // If phone numbers are same
                    {
                        System.debug('Both Matched');
                        inconFlag = false;
                        contact c3 = c;
                        if (customObjRecord.Name != null && customObjRecord.Name != '') // Update LastName field when new Name field value is not empty .
                            c3.LastName = customObjRecord.Name;
                        if (customObjRecord.First_Name__c != null && customObjRecord.First_Name__c != '')
                            c3.FirstName = customObjRecord.First_Name__c;
                        if (customObjRecord.Business_Card_Title__c != null && customObjRecord.Business_Card_Title__c !='')
                            c3.Title=customObjRecord.Business_Card_Title__c;
                        if (customObjRecord.Primary_Address_Street__c != null && customObjRecord.Primary_Address_Street__c !='')
                            c3.MailingStreet=customObjRecord.Primary_Address_Street__c;
                        if (customObjRecord.Primary_Address_City__c != null && customObjRecord.Primary_Address_City__c !='')
                            c3.MailingCity=customObjRecord.Primary_Address_City__c;
                        if (customObjRecord.Primary_Address_State__c != null && customObjRecord.Primary_Address_State__c !='')
                           c3.MailingState=customObjRecord.Primary_Address_State__c;
                        if (customObjRecord.Primary_Address_Country__c != null && customObjRecord.Primary_Address_Country__c !='')
                           c3.MailingCountry=customObjRecord.Primary_Address_Country__c;
                        if (customObjRecord.Primary_Address_Postal_Code__c != null && customObjRecord.Primary_Address_Postal_Code__c !='')
                           c3.MailingPostalCode=customObjRecord.Primary_Address_Postal_Code__c;
                        
                        Boolean campCrtFlag = true;
                        for (Campaign camp: camprecds){
                            if(camp.Name==customObjRecord.Campaign__c){
                                for(CampaignMember cm: camp.CampaignMembers){
                                    if(cm.ContactId==c3.Id)
                                         campCrtFlag=false;
                                }
                                if(campCrtFlag){
                                    CampaignMember cm = new CampaignMember(CampaignId = camp.Id, ContactId = c3.Id,
                                                                           status = customObjRecord.Member_Status__c);
                                    campMemcre.add(cm);
                                }
                            }
                        }
                        upcon.add(c3); // Update the existing record in Contacts
                    }
                }
                   if (inconFlag) // Email & Phone both are different
                    {
                        System.debug('None Matched');
                        count=01;
                        contact c4 = new contact();
                        c4.AccountId = a.Id;
                        c4.LastName = customObjRecord.Name;
                        c4.FirstName = customobjrecord.First_Name__c;
                        c4.OtherPhone = customObjRecord.Other_Phone__c;
                        c4.Email = customObjRecord.Email_Address__c;
                        c4.Phone = customObjRecord.Office_Phone__c;
                        c4.Title=customObjRecord.Business_Card_Title__c;
                        c4.MailingStreet=customObjRecord.Primary_Address_Street__c;
                        c4.MailingCity=customObjRecord.Primary_Address_City__c;
                        c4.MailingState=customObjRecord.Primary_Address_State__c;
                        c4.MailingCountry=customObjRecord.Primary_Address_Country__c;
                        c4.MailingPostalCode=customObjRecord.Primary_Address_Postal_Code__c;
                        c4.External_Con_Id__c='Ext'+count+customObjRecord.Office_Phone__c;
                        System.debug('Ext'+count+customObjRecord.Office_Phone__c);
                        incon.add(c4); // Create new contact
                        for (Campaign camp: camprecds){
                            if(camp.Name==customObjRecord.Campaign__c){
                                    String extname='Ext'+count+customObjRecord.Office_Phone__c;
                                    Contact cnew=new Contact(External_Con_Id__c=extname);
                                       System.debug(extname);
                                    CampaignMember cm = new CampaignMember(CampaignId = camp.Id, Contact = cnew,
                                                                           Status=customobjrecord.Member_Status__c);
                                    campMemcre.add(cm);
                                
                            }
                        }
                        count++;
                    }
            }
        }
 if (incon.size() > 0){
        Database.saveResult[] rslt=Database.insert(incon, false);
        for(Database.saveResult r: rslt){
            if(r.isSuccess()){
                System.debug(r.getId());
            }
            else{
                System.debug(r.getErrors());
            }
        }
    }
if (campMemcre.size() > 0){
        Database.saveResult[] rslt=Database.insert(campmemCre, false);
        for(Database.saveResult r: rslt){
            if(r.isSuccess()){
                System.debug(r.getId());
            }
            else{
                System.debug(r.getErrors());
            }
        }
    }
        System.debug('New Camp Members'+campMemCre);
    if (uplead.size() > 0){
        Database.saveResult[] rslt=Database.update(uplead, false);
        for(Database.saveResult r: rslt){
            if(r.isSuccess()){
                System.debug(r.getId());
            }
            else{
                System.debug(r.getErrors());
            }
        }
    }
    if (campMemUpd.size() > 0){
        Database.saveResult[] rslt=Database.update(campMemUpd, false);
        for(Database.saveResult r: rslt){
            if(r.isSuccess()){
                System.debug(r.getId());
            }
            else{
                System.debug(r.getErrors());
            }
        }
    }
    
}
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: EZHCJNNJ
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: PPLDTMYR