• Jess Burgh
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 38
    Replies
I'm trying to complete the Handle Record Changes and Errors module but can't seem to get past the following challenge error:
Challenge Not yet complete... here's what's wrong: 
The 'accEdit' Lightning Component JS Controller does not appear to be setting 'v.recordSaveError' with an error message.

.I've tried many different combinations of sets and am not having much luck.

I've tried several different component.set methods such as this one:
component.set('v.recordSaveError','Error: ' + saveResult.state + ', message: ' + JSON.stringify(saveResult.error));

Any ideas what this module is looking for as a valid solution?

I do see recordSaveError display after being set due to an error.

Thanks.
 
On the "Install an AppExchange dashboard package and make updates to one of the dashboards" challenge, I do not have the option to change the wedges to Lead source.... Only prospect source. Has anyone else encountered this issue? 
Hi All, I am working on the Unit of Work Principles trailhead and seem to be stuck, I cannot get it to pass even though the test passes. I surmise it may be because it is testing other tests and looking for 100% code coverage across the board. Are there any steps I should take. Here is my code below. Hope it helps.
 
@isTest
public class UnitOfWorkTest {
    @isTest static void challengeComplete(){
        fflib_SObjectUnitOfWork uow = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );
        
        for (Integer i=0 ; i<100 ; i++) {
            Account a = new Account(Name= 'Test' + i);
            uow.registerNew(a);
            
            for (Integer j=0 ; j<5 ; j++) {
                Contact c = new Contact(LastName = 'Test'+i + ' ' +j);
                uow.registerNew(c, Contact.AccountId, a);
                
                Note n = new Note(Body='Test '+i + '' + j, Title='Test'+i+j);
                //uow.registerRelationship(n, Note.ParentId, a);
                //uow.registerNew(n, Note.ParentId, a);
                uow.registerNew(n, Note.ParentId, c);
            }
        }

        uow.commitWork();
 
        fflib_SObjectUnitOfWork uow2 = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );        
        
        Id oldAccountId;
        Account a2;
        for (Contact c : [SELECT Id, LastName, AccountId, Account.Name, (SELECT Id, ParentId, Title, Body FROM Notes) FROM Contact Order By AccountId, Id]) {
            
            if (oldAccountId != c.AccountId) {
                oldAccountId = c.AccountId;
                a2 = new Account(Id=c.AccountId, Name='Test');
                uow2.registerDirty(a2);
            }
            
                c.LastName = 'Test';
                uow2.registerDirty(c);
                

                c.Notes[0].Body = 'Test';

                uow2.registerDirty(c.Notes[0]);

        }        
        
        test.startTest();
        uow2.commitWork();
        //uow.commitWork();
        test.stopTest();
        
        System.assertEquals(100, [Select Id from Account].size());
        System.assertEquals(500, [Select Id from Contact].size());
        System.assertEquals(500, [Select Id from Note].size());
    }
}

 
Hi All,

I receive the following error when attempting to check the challenge for Apply Unit of Work

Challenge Not yet complete... here's what's wrong: 
The 'challangeComplete' method in the 'UnitOfWorkTest' class has not successfully passed all tests. Ensure that you run the tests and it passes successfully before attempting this challenge again.

However, when I run my code in Developer Console, my test passes.  Any ideas on the problem?  Here is the code:

@isTest
public class UnitOfWorkTest {
    @isTest static void challengeComplete(){
        fflib_SObjectUnitOfWork uow = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );
        
        for (Integer i=0 ; i<100 ; i++) {
            Account a = new Account(Name= 'Test' + i);
            uow.registerNew(a);
            
            for (Integer j=0 ; j<5 ; j++) {
                Contact c = new Contact(LastName = 'Test'+i + ' ' +j);
                uow.registerNew(c, Contact.AccountId, a);
                
                Note n = new Note(Body='Test '+i + '' + j, Title='Test'+i+j);
                uow.registerRelationship(n, Note.ParentId, a);
                uow.registerNew(n, Note.ParentId, a);
            }
        }

        uow.commitWork();
 
        fflib_SObjectUnitOfWork uow2 = new fflib_SObjectUnitOfWork(
            new Schema.SObjectType[]{
                Account.SObjectType,
                Contact.SObjectType,
                Note.SObjectType
            }
        );        
        for (Account a : [SELECT Id, Name, (SELECT Id, LastName FROM Contacts), (SELECT Id, ParentId, Title, Body FROM Notes) FROM Account]) {
            a.Name = 'Test';
            uow2.registerDirty(a);
            
            Integer i = 0;
            for (Contact c : a.Contacts) {
                c.LastName = 'Test';
                uow2.registerDirty(c);
                
                a.Notes[i].Body='Test';
                uow2.registerDirty(a.Notes[i]);
                i++;
            }
        }        
        
        test.startTest();
        uow2.commitWork();
        test.stopTest();
        
        System.assertEquals(100, [Select Id from Account].size());
        System.assertEquals(500, [Select Id from Contact].size());
        System.assertEquals(500, [Select Id from Note].size());
    }
}

I was finishing up the Create a Lemonade Stand project in Trailhead. Even after completing it with no skipped steps on two different occasions, I receive this error:

Challenge Not yet complete... here's what's wrong: 
The 'Pending Orders by Queue' report does not appear to be grouped by Fulfillment Queue Name and Flavor Name. 
Note: you may run into errors if you've skipped previous steps.

Except that my 'Pending Orders by Queue' report is grouped by Fulfillment Queue Name and Flavor Name.

Is this an error with the Trailhead? 

Challenge Not yet complete... here's what's wrong: 
The Campaign object has does not appear to have an Account lookup field called "Chapter". 
Note: you may run into errors if you've skipped previous steps.
This is the error I am getting when trying to verify my step.

This is the link to the trailhead question. 

I did all the steps as it said but I can't get it to pass.

These fields I made are placed in "Campaign" object that I created (there was no existing Campaign object in my env
Above are the fields I created in the "Campaign" custom object. I had to create it because no existing object.

User-added image
As you can see, it does have the lookup field to account.

So why am I still getting the error?

Hi all,

I have been trying to complete the challenge : Modifying Page Lay-outs but I keep getting the same error message: 

Challenge Not yet complete... here's what's wrong: 
The 'Phone Numbers' section was not found, or it was empty. If you believe that you have set this up properly and are still having problems, ensure that you are NOT using Record types for the Contact object. This challenge will not work with Record types so you will need to sign up for a new DE org and use that instead for this module.

There aren't any record types and I have already tried using a new DE org. Still get the same message.

Can anyone help out? 

Hi,

trying to complete the challenge, I have the following error:
The "Customer Community User" for the contact "Edna Frank" is not created properly.

More info, hope this helps finding the problem:
The contact exist, in Admin > Users> User license is "Customer Portal Manager Standard", when I try to change it to "Customer community" i'm getting the error "cannot upgrade from or downgrade to LPU"
The contact is assigned to the account "Customers", there is a case associated to it, with Contact Name = Edna Frank
I created the Sharing Set Settings and configured the access (User:Account = Case:Account, Read/Write). The community is active.
Oddly enough, I cannot log in as Edna Frank.
If I'm trying to create a new user, I receive the following error: "Your request cannot be processed at this time. The site administrator has been alerted.
The account associated with this portal has no owner". The created account is "Customers" and I double checked, i'm the owner of this account.
I've received a message "Customers registration accountId parameter value is not valid."

Any idea or clues on how to solve this ?
Having a nightmare with the above section in the Process Automation module - Confident I've completed things correctly but I keep getting the same message when checking the challenge "The 'Case Escalate on High Priority' Workflow rule was not found. Either it was not created, not associated with Case, or not activated" 

Any help here? I've activated the rule and it all looks good from my side *scratching head* 
I have completed this module in Trailhead and I do not have an option to check the challenge as I have had in previous sessions.  What do I do to get credit for this badge?  Thank you.
Case Feed
Creating Professional Emails in the Feed
Cant finish, geting the error Challenge Not yet complete... here's what's wrong: 
Could not find the published Knowledge article.   but its done what am i missing
Hi, I am having trouble with the "Attributes and Expressions" module from trailhead.

Here is the challenge:
Create a Lightning Component to display a single item for your packing list.
  • Create a component called campingListItem that displays the name (ui:outputText) and the three custom fields using the appropriate output components.
  • Add an attribute named 'item' for type Camping_Item__c.
I created an component named campingListItem and this is the code:
<aura:component >
    <aura:attribute name="item" type="<my_domain>__Camping_Item__c"/>
    
    <ui:outputText value="{!v.item.Name}"/>
    <ui:outputCheckbox value="{!v.item.<my_domain>__Packed__c}"/>
    <ui:outputCurrency  value="{!v.item.<my_domain>__Price__c}"/>
    <ui:outputNumber value="{!v.item.<my_domain>__Quantity__c}"/>
</aura:component>

The error that I am getting is: "Challenge Not yet complete... here's what's wrong: 
The packingListItem Lightning Component's attribute tag doesn't exist or its attributes are not set correctly."

With this, I tried to create another component, with the name "packingListItem", but It didn't work.

Can anyone help me?

Thanks,
@AuraEnabled
public static List<Contact> getContacts() {
    return [Select Id, Name, Email, Title, Phone From Contact];
}
I'm receiving the following error: unexpected token: 'List'
 
Having a challenging day with all of my Trailhead exercises today, All 3 have not gone well, I guess this is a learning experience

Ok, here is the error I'm receiving for his challenge. 
Challenge not yet complete... here's what's wrong: 
A Visualforce page named 'FlowPage' was not found.

I will add the screenshots below:
1. New Customer Flow
New Customer Flow
2. FlowScreen
2. FlowScreen

3. Account Creation
Account Creation
3. Contact Creation

4. Contact Creation
Opportunity Creation

4. Opportunity


I will add the screenshots for the Visual Force Pages on part II of this
Hi ,
I was trying to solve the trailhead challenge under "Using Static Resources".

Am getting following message:
Challenge not yet complete... here's what's wrong: 
The page does not include a reference to the specified image

Following code am using.
<apex:page >
            <apex:pageBlock title="Pic" >
                    <apex:pageBlockSection >
                         <apex:image value="{!URLfor($Resource.vfimagetest, '/cats/kitten1.jpg')}"/>
                    </apex:pageBlockSection>
             </apex:pageBlock>
</apex:page>
Am I missing something here?

Regards,
Manjunath C Sarashetti
I receive this error when I check my challenge.

User-added image
Challenge not yet complete... here's what's wrong: 
An account with a related opportunity did not calculate the correct potential value.

The task was to Create a rollup summary field that determines the potential value of the opportunities associated with an account.
Add a custom field to the standard account object that provides a rollup summary of the total expected revenue from all related opportunities.The rollup summary field should be labeled 'Potential Value' and have the Field Name of 'Potential_Value'. The resulting API name should be 'Potential_Value__c'.
The rollup summary should calculate the total expected revenue of all the opportunities related to the account.

Here is a snap shot of my work. Any suggestions as to why this is failing?

User-added image

Thanks,
Darren