+ Start a Discussion
KytrebKytreb 
Has anyone tried the Advanced Billing SB since they remade it in December '20? I can't get past challenge 1 and frankly, I think it is broken. Screenshots below pertaining to the error, but I have also completed the process builder part of the challenge.

I tried leaving the default value empty as well. No dice.

User-added image
User-added image
User-added image
User-added image
Srijan NarayanSrijan Narayan 
Executing the 'getAnimalNameById' method on 'AnimalLocator' failed. Make sure the method exists with the name 'getAnimalNameById', is public and static, accepts an Integer and returns a String
Here are my codes:
.AnimalLocator-
public class AnimalLocator {
    public static String getAnimalNameById(Integer id) {
        String animalName;
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/' + id);
        request.setMethod('GET');
        HttpResponse response = http.send(request);
        if(response.getStatusCode()==200){
            Map<String, Object> r = (Map<String, Object>)
                JSON.deserializeUntyped(response.getBody());
            Map<String, Object> animal = (Map<String, Object>)r.get('animal');
            animalName = string.valueOf(animal.get('name'));
        }
        return animalName;
   }
}
AnimalLocatorMock
@IsTest
global class AnimalLocatorMock implements HttpCalloutMock {
    
    global HTTPresponse respond(HTTPrequest request) {
        Httpresponse response = new Httpresponse();
        response.setStatusCode(200);
        
        response.setBody('{"animal":{"id":1,"name":"chicken","eats":"chicken food","says":"cluck cluck"}}');
        return response;
    }

}
AnimalLocatorTest-
@IsTest
public class AnimalLocatorTest {
    @isTest
    public static void testAnimalLocator() {
        Test.setMock(HttpCalloutMock.class, new AnimalLocatorMock());

        String s =  AnimalLocator.getAnimalNameById(1);
        system.debug('string returned: ' + s);
    }

}



 
Ramcharan Naidu PalleRamcharan Naidu Palle 
Hi Team,


While working on the "Trailhead data Manager" and refreshing the data it is throwing this error.

"An error occurred in your last data refresh.

Delete failed. First exception on row 0 with id 0015g0000063XmuAAE; first error: DELETE_FAILED, Your attempt to delete Sample Account for Entitlements could not be completed because it is associated with the following entitlements.: Sample Entitlement ...   "


Can anyone help me with this?..

 
Best Answer chosen by Ramcharan Naidu Palle
AbhishekAbhishek (Salesforce Developers) 
Hi,

For all the Trailhead issues or Guidance please report it here,

https://trailhead.salesforce.com/en/help?support=home

https://trailhead.salesforce.com/help

So that our trailhead support engineers will look into it and get back to you.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Regards,
Salesforce Support.
 
Dave ThériaultDave Thériault 
Hi @Linthaw,

I read all the comments on this post https://developer.salesforce.com/forums/?id=9060G0000005d3yQAA#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9060G0000005d3yQAA
and I'm still stuck on the challenge 3 "We can't validate the 'Create Seed Bank Agencies' node was created correctly."

I created this new question, because I cannot add a new comment on the last post.

I tried at least 5 differents JSON, so I'm pretty sure the problem is not on that side, but I've put the json at the end of this comment just in case.

The problem is maybe here, when I compared ROWS IN and ROWS OUT, I don't have the same total of you.
  • So first, I think it was because I did the bulk data load jobs too many time at the beginning with the Agency Data.txt file.
    • So I came back and I did a mass delete records for all the Contact and Account. I filtered with my Created By Alias and after that with the Created Date of the day.
    • I'm still not able to remove some Account who are probably link to other Salesforce object when I did other badges. Ok for me at first glance, but ...
Is the ROWS IN and ROWS OUT have and impact on the validation of the Challenge 3? Because the dataflow run great and I see the lens accordingly to all the screenshot I see on the web.

And don't wander,
  • I removed the lens each time a rerun the dataflow, just to be sure.
  • Each time a did a bulk data load jobs or a mass delete record I rerun the SFDC_LOCAL to be sure the Account of SalesForce are refreshed into Analystics Studio. 
  • My dataset Seed Bank Agencies and Agency Detail are located in the Mozaic App. So my lens Top 5 Agencies.
So please help me, I can provide to you any other useful information, here below some screenshot.

User-added image

User-added image

User-added image

{
  "Filter Agency Records": {
    "action": "filter",
    "parameters": {
      "filter": "IsAgency:EQ:TRUE",
      "source": "ID Agency Records"
    }
  },
  "Load Account": {
    "action": "sfdcDigest",
    "parameters": {
      "fields": [
        {
          "name": "AccountNumber"
        },
        {
          "name": "Name"
        },
        {
          "name": "Phone"
        },
        {
          "name": "ShippingCity"
        },
        {
          "name": "ShippingCountry"
        },
        {
          "name": "ShippingPostalCode"
        },
        {
          "name": "ShippingState"
        },
        {
          "name": "ShippingStreet"
        }
      ],
      "object": "Account"
    }
  },
  "Create Seed Bank Agencies": {
    "action": "sfdcRegister",
    "parameters": {
      "name": "Seed Bank Agencies",
      "alias": "seed_bank_agencies",
      "source": "Filter Agency Records"
    }
  },
  "Add Agency Fields": {
    "action": "augment",
    "parameters": {
      "right_key": [
        "AccountNumber"
      ],
      "left": "Load Account",
      "left_key": [
        "AccountNumber"
      ],
      "right_select": [
        "Acres",
        "Currency",
        "Latitude",
        "Longitude",
        "Region",
        "SubRegion"
      ],
      "right": "Load Agency Detail",
      "relationship": "AgencyDetail",
      "operation": "LookupSingleValue"
    }
  },
  "Load Agency Detail": {
    "action": "edgemart",
    "parameters": {
      "alias": "agency_detail"
    }
  },
  "ID Agency Records": {
    "action": "computeExpression",
    "parameters": {
      "source": "Add Agency Fields",
      "mergeWithSource": true,
      "computedFields": [
        {
          "name": "IsAgency",
          "saqlExpression": "case when Phone is not null then \"TRUE\" else \"FALSE\" end",
          "label": "IsAgency",
          "type": "Text"
        }
      ]
    }
  }
}

Thanks
Best Answer chosen by Dave Thériault
SwethaSwetha (Salesforce Developers) 
HI Dave,
Please note that Questions about how to pass Trailhead challenges are not on topic, because these challenges are intended to be independent demonstrations of your abilities.

Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.

Please close the thread by selecting as best answer so that we can keep our community clean.
​​​​​​​
Regards,
Salesforce Support
Alan MurrayAlan Murray 
I am trying to check a challenge and I am getting this message. 

--------------
Step not yet complete in Creative Koala Playground
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: NHHZARKC
David VanderKlok 4David VanderKlok 4 
Need help with a Data refresh failure.   Trying to setup environemnt for Eistein Analytics.   DELETE_FAILED, Your attempt to delete Sample Account for Entitlements could not be completed because it is associated with the following entitlements
Franck MortagneFranck Mortagne 

 

Hi team,
I can't fix an issue with my dataflow "Load Seed Bank Agencies" and was hoping to get some guidance / help to solve it. I have checked several times the dataflow and cannot figure out what's wrong. The data flow works but doesn’t get the grade to move forward.

Please see the JSON file below:

{
  "Filter Agency Records": {
    "action": "filter",
    "parameters": {
      "filter": "IsAgency:EQ:TRUE",
      "source": "ID Agency Records"
    }
  },
  "Load Account": {
    "action": "sfdcDigest",
    "parameters": {
      "fields": [
        {
          "name": "AccountNumber"
        },
        {
          "name": "Name"
        },
        {
          "name": "Phone"
        },
        {
          "name": "ShippingCity"
        },
        {
          "name": "ShippingCountry"
        },
        {
          "name": "ShippingState"
        },
        {
          "name": "ShippingStreet"
        },
        {
          "name": "ShippingPostalCode"
        }
      ],
      "object": "Account"
    }
  },
  "Create Seed Bank Agencies": {
    "action": "sfdcRegister",
    "parameters": {
      "rowLevelSecurityFilter": "",
      "name": "Create Seed Bank Agencies",
      "alias": "seed_bank_agencies",
      "source": "Filter Agency Records"
    }
  },
  "Add Agency Fields": {
    "action": "augment",
    "parameters": {
      "right_key": [
        "AccountNumber"
      ],
      "left": "Load Account",
      "left_key": [
        "AccountNumber"
      ],
      "right_select": [
        "Acres",
        "Currency",
        "Latitude",
        "Longitude",
        "Region",
        "SubRegion"
      ],
      "right": "Load Agency Detail",
      "relationship": "AgencyDetail",
      "operation": "LookupSingleValue"
    }
  },
  "Load Agency Detail": {
    "action": "edgemart",
    "parameters": {
      "alias": "Agency_Detail"
    }
  },
  "ID Agency Records": {
    "action": "computeExpression",
    "parameters": {
      "source": "Add Agency Fields",
      "mergeWithSource": true,
      "computedFields": [
        {
          "name": "IsAgency",
          "saqlExpression": "case when Phone is not null then \"TRUE\" else \"FALSE\" end",
          "label": "IsAgency",
          "type": "Text"
        }
      ]
    }
  }
}

Any help would be really helpful!
Many thanks,
Franck

Ahmed MediouniAhmed Mediouni 
Hello everyone,

I have a problem where when I want to do the "SFDX: Authorize a dev hub " it takes me to salesforce logging and I input the email and password correctly and it logs in but it gets stuck as a white page waiting for the page that asks me to allow " it stays forever loading

please help
ps: my account is just a playground i launched on trailhead

thank you
SHISHIR BANSALSHISHIR BANSAL 

 
While merging my personal Trailhead account with the salesforce trailhead account i lost my badges. I had somewhat 295 ~297 badges, but after merger i lot it and now it shows only 205. Can I get help on this please. Please let me know if more details are required to be shared.