function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Walter Gold 5Walter Gold 5 

Trailhead: Customize a Sales Path for Your Team: Customize Opportunity Stages

I am getting an error when trying to verify this Challenge:
https://trailhead.salesforce.com/projects/customize-a-sales-path-for-your-team/steps/customize-opportunity-stages
The text of the error reads:

"There was an unhandled exception. Please reference ID: OIEEXEDH. Error: Faraday::ClientError. Message: MALFORMED_QUERY: When retrieving results with Metadata or FullName fields, the query qualificatio​ns must specify no more than one row for retrieval. Result size: 2"

I've tried this Challenge several times, deleting work and starting over and nothing seems to fix the issue. The instructions specify the same field value('Expected Revenue') for 'Prospecting' and 'Needs Analysis' - I thought this might be the cause of the retrieval of 2 values when it should only be 1 according to the error text. Removing the second instnace of this field value does not correct the problem.

It seems there was a similar error for a different Challenge(Global Value Sets in the Picklist Administration) in the past; the solution for that instance of the error indicated that fixing picklist settings to specify ony "one global value set" would correct the issue. This Challenge does not require any picklist settings so the user cannot go back and correct this anywhere.
Best Answer chosen by Walter Gold 5
Walter Gold 5Walter Gold 5
per @Chris Duarte in another thread where this issue was coming up:

"Hi everyone -- the code for this challenge is looking for 1 picklist value only. If you have more than 1 set up, the challenge will fail. We are currently working on changing the code to accept more than 1 value, but in the immediate term, if you either delete any extra values or do the challenge in a new Trailhead Playground, you should be able to get past this error. My apologies for the issue."

I deleted the values and was able to complete.

All Answers

Walter Gold 5Walter Gold 5
per @Chris Duarte in another thread where this issue was coming up:

"Hi everyone -- the code for this challenge is looking for 1 picklist value only. If you have more than 1 set up, the challenge will fail. We are currently working on changing the code to accept more than 1 value, but in the immediate term, if you either delete any extra values or do the challenge in a new Trailhead Playground, you should be able to get past this error. My apologies for the issue."

I deleted the values and was able to complete.
This was selected as the best answer
nate Dietrichnate Dietrich
How did you delete the values? What location in setup did you use to correct the issue?