You need to sign in to do that
Don't have an account?
Ronak SFDC
Assign Top Leads to Your Sales Rep module - Developer script exception from Honeydew : 'LeadScoreGenerator' for job id
Hi I am doing the Assign Top Leads to Your Sales Rep Trailhead module >> https://trailhead.salesforce.com/trails/learn-admin-essentials/projects/prioritize-leads-with-einstein-lead-scoring/steps/assign-top-leads-to-your-sales-rep and when clicking on the Verify Step button at the bottom of the page I get an error
Step not yet complete... here's what's wrong:
We can't find criteria and immediate actions for Einstein Scores greater than or equal to 80.
This error message is not accurate as the steps in the process builder are there, however, I suspect the error is actually due to an email that I receive immediately after pressing the Verify Step button, I have copied and pasted the contents of the email below, any advice/help would be appreciated.
Subject: Developer script exception from Honeydew : 'LeadScoreGenerator' for job id '7071t000000V3oh' : Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://eu16.salesforce.com/services/data/v43.0/composite/tree/ScoreIntelligence
ApexApplication <info@jp.salesforce.com>12:03 (9 minutes ago)
to me
Apex script unhandled exception by user/organization: 0051t000000MOhX/00D1t000000DWM6
Failed to invoke future method 'public static void createScoreAndFactors(List<Id>)' on class 'LeadScoreGenerator' for job id '7071t000000V3oh'
caused by: System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://eu16.salesforce.com/services/data/v43.0/composite/tree/ScoreIntelligence
Class.LeadScoreGenerator.sendRequest: line 130, column 1
Class.LeadScoreGenerator.createScoreAndFactors: line 108, column 1
Step not yet complete... here's what's wrong:
We can't find criteria and immediate actions for Einstein Scores greater than or equal to 80.
This error message is not accurate as the steps in the process builder are there, however, I suspect the error is actually due to an email that I receive immediately after pressing the Verify Step button, I have copied and pasted the contents of the email below, any advice/help would be appreciated.
Subject: Developer script exception from Honeydew : 'LeadScoreGenerator' for job id '7071t000000V3oh' : Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://eu16.salesforce.com/services/data/v43.0/composite/tree/ScoreIntelligence
ApexApplication <info@jp.salesforce.com>12:03 (9 minutes ago)
to me
Apex script unhandled exception by user/organization: 0051t000000MOhX/00D1t000000DWM6
Failed to invoke future method 'public static void createScoreAndFactors(List<Id>)' on class 'LeadScoreGenerator' for job id '7071t000000V3oh'
caused by: System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://eu16.salesforce.com/services/data/v43.0/composite/tree/ScoreIntelligence
Class.LeadScoreGenerator.sendRequest: line 130, column 1
Class.LeadScoreGenerator.createScoreAndFactors: line 108, column 1
I got the same error (altough I had deployed my domain so the hostname was different).
You should be able to add EU16 under Remote Site Settings. After doing this I passed that step.
All Answers
Hi Ronak,
I can't pass the challenge as I get the same "We can't find criteria and immediate actions for Einstein Scores greater than or equal to 80." error despite having completing the process diligently. And I'm getting the same email error message. Have you found a solution?
Thanks,
Matt
I got the same error (altough I had deployed my domain so the hostname was different).
You should be able to add EU16 under Remote Site Settings. After doing this I passed that step.
Step not yet complete... here's what's wrong:
We can't find criteria and immediate actions for Einstein Scores greater than or equal to 80.
Assign Top Leads to Your Sales Rep step.
After adding my domain to the Remote Site Settings the problem was solved.
This is about the 10th time I have not been able to complete a Trail because the verification does not work (and many other people have the same problems with the same trails).....!!!!!!!
So I rebuilt the whole thing again using a new trail playground - this time it worked. ( what a waste of time! )
I work on Team Trailhead and I wnated to let you know that we are aware of this issue and we are currently working on a fix to be deployed soon. In the meantime, I suggest that anyone excountering this, do as the accepted answer suggests and add a remote site name using the site name that should have been sent to you in an email. If you did not recieve the email, then the process probably was not configured correctly and you need to check that first. But, if you do get the email, then use the site name from the email to create a remote site name entry and try to validate again. That should get you past the issue for now.
This thread is marked as closed / solved.
A very frustrating experience!
The email stating what the APEX error was:
Issue has been resolved now.
Please try in a new org. Should be fine now
and that was all. Though it threw another error which was absurd.
"The process is active"
I deactivated the process and that was it!
Thanks for the solution Johan Karlsteen :)
Thank you all
i think some of you may adding the url as https://ap8.lightning.force.com as i get this url when click on my browrser url box so remove lightning.force and add salesforce in the place and it should look something like this https://ap8.salesforce.com
Thanks Andrew - this works also to me - more in details:
You need to find the right Remote Site Setting you need for your Org.
It is easy to track for the URL of yoru organization - for my sandbox it is:
https://eu26.lightning.force.com (or https://eu26.lsalesforce.com I believe there is a redirection)
- check what it is for yours
Then you simply go in:
Settings/Quick FInd/Security/Remote Site Settings and you add ta remote site for your org
I my case like this:
Save and recheck - I didn;t get any error via email and I pass the trailhead
https://trailhead.salesforce.com/trails/learn-admin-essentials/projects/prioritize-leads-with-einstein-lead-scoring/steps/assign-top-leads-to-your-sales-rep
PS: I suggest also to wait till Einstein makes his background work in scoring leads - in a DEV sandnox it shouldn't take too long
Thanks, this works also to me! Just follow @Paolo Leoncini step by step procedure and all will be ok!