You need to sign in to do that
Don't have an account?

Error: Faraday::ClientError. Message: MALFORMED_QUERY: When retrieving results with Metadata or FullName fields, the query qualifications must specify no more than one row for retrieval. Result size: 2
How to solve This Error...
Like others above I retried the challenge with a fresh sandbox and it worked ok.
https://developer.salesforce.com/forums?id=9060G000000MSGVQA4
I suppose, Trailhead should look into this anyway, why they get this error.
Customize a Sales Path for Your Team: Customize Opportunity Stages
"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 qualifications must specify no more than one row for retrieval. Result size: 2"
However this challenge, nor the previous steps, does not ask the user to make any picklist setting choices. There is no way to go and modify this relative to the challenge.
I have finished those units, and am unable to see what the challenge was.
Mind you, the error message suggests to me, that the search is for some kind of metadata, and that more than one of that type is returned, there is no indication whether this is about picklists, or as it seems to be in the other module, about having more than one global value set.
The unit you point to, is about setting up a Path, mind you, normally this would be the first, can it be you have two Paths, instead of one?
Quick Start: Lightning Components
Create a Lightning Component
here is the text of the error
There was an unhandled exception. Please reference ID: QQMKOXIR. Error: Faraday::ClientError. Message: MALFORMED_QUERY: When retrieving results with Metadata or FullName fields, the query qualifications must specify no more than one row for retrieval. Result size: 2
I am not aware of any picklist being invovled in this challenge...
The information I provided in this thread was a workaround to help learners pass the challenge, and also to help them understand why the challenge was failing, in the spirit of transparency.
Maybe the error was not correctly or the changes were not applied... But if you dont believe me, try for yourself... just remember to follow the lessons and enter data as they ask before you do the challenge...
The fix for that issue was in this past weekend's release. I'll check with our team to make sure the fix went out! Thanks.
See here:
https://trailhead.salesforce.com/trails/learn_salesforce_with_trailhead/modules/trailhead_basics/units/find-your-way-around-trailhead
Apart from really looking at whether you opened a Module or a Project, it is not always clear from the start of the texts, which of the two types it concerns.
In the early days, a trail consisted of Modules, with at the end, related Projects, nowadays, a Trail, might contain a Project. If you are not aware of the different approaches for Modules and Projects, this can be really confusing.
Trail with related Projects, as in the old days
https://trailhead.salesforce.com/trails/force_com_admin_beginner
Trail with related Projects, and a Project as part of the trail:
https://trailhead.salesforce.com/trails/lex_dev
On the other hand, whether you follow the text and perform the actions or not, the Challenge should check the Challenge only, without having a conflict with whether you do what is in the text or not. As far as I understand from @Chris Duarte, the code should have been updated so as to not have a conflict anymore, in case you followed both the text and the Challenge.
@Yves Asselin 3, mind you, maybe I just have not noticed, but if there are indeed Modules, in which you have to work like in a Project, then you are totally correct, and Trailhead should make sure to align this better.
I agree with you also on testing. We have several people (in addition to the writer) test the modules -- they just didn't catch that the challenge checker would fail if you'd done (1) the example in the unit and (2) the hands-on challenge.
We try very hard to be perfect; but we do sometimes make mistakes. I'll be the first to say that, and it's my responsibility to address them. I'll run through this unit right now and I'll make sure the fix was applied.
However, we should *not* give you a hands-on challenge that won't work if you followed along with examples in the unit. That's what folks have been experiencing with this picklists unit. It was a mistake and it's my responsibility. I'll run through it now and see if the fix somehow didn't get applied last weekend. It should have been part of that release.
Two things:
1. I agree that the way we're weaving examples in the unit with the challenges at the bottom needs reworking. I just went through the module personally and I think it's confusing as is. I will log a bug for that work to get completed for our next content release (unfortunately with Dreamforce and the holidays here in the states, it will take us a bit longer than I'd like, but I'll make sure it gets handled).
2. The third challenge did *not* have the fix applied. I will investigate how we missed that. I figured we just need to delete the second global picklist value -- but I couldn't get it to delete. I spent about 30 minutes poking around on this one and then discovered it's a known issue. https://success.salesforce.com/ideaView?id=0873A000000E84bQAC
I suppose the only good news here is that recreating this in a different playground takes about 5 minutes. I just launched one of my other playgrounds, made the Macaron Flavor field on the Product object, added the values, promoted them to global, and then made the Shirt field, and passed. That's the workaround until I can get the fix applied.
My apologies again for the issue, and thank you all for the feedback.
It would be like this: Let's say we had you make a custom field as part of a challenge, and we made the challenge check fail if you had more than 1 custom field in your org. See how odd it is to do that? The challenge shouldn't fail simply because you have more than 1 value.
Again, my apologies and thank you for the feedback. I'll post once we have a resolution. Until then, note the workaround above.
The problem disappeared after the complete erasure of the Ingredients global value set: delete then ERASE from Deleted Global Value Sets.
First you have to unassign it, if it is already used somewhere.
I am not sure if I would face the same problem in the industry where there could be more than one global picklists.
1. Just create a new org.
2. Add your trailhead with the new org and then try
I'm 100 % sure it's working
3. Click on Connect to Org and login with new org.
There was an unhandled exception. Please reference ID: HGWGQSLP. Error: Faraday::ClientError. Message: MALFORMED_QUERY: When retrieving results with Metadata or FullName fields, the query qualifications must specify no more than one row for retrieval. Result size: 2
There was an unhandled exception. Please reference ID: MHPGQPPW. 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 am getting this error in Lightning Experience Rollout Specialist... What is the next step?
You don't have to create a new org...
Quick Start: Lightning Components
Create a Lightning Component
It helped me to avoid this error after,
I changed Label of the page.
As per my experience with Trailhead Assignments - the Error "MALFORMED_QUERY" is thrown when TEST Query (used for checking assignment results) returns NULL.
In other words, The Test is expecting some object or value to be present in your org but found it missing.
here the screenshot of my dashboard if it can help you
Elie I came across the same problem just now when trying to add the dashboard to the SolarBot App Page. I don't even see the page layout after I created it either.
@Chris Duarte - Any suggestions on how to remove the error?
Regards,
Sanjukta
https://trailhead.salesforce.com/en/content/learn/projects/improve-data-quality-for-a-cleaning-supply-app/create-a-process-with-process-builder
I made a mistake and the error came
then i fixed the error and i cloned the same process builder and checked the challenge
same error came
i deleted the cloned process builder - version 1 and checked the challenge
challenge completed successfully
Hi Suban,
Here the issue is we cannot query FullName field if we do have multiple fexipages on same object
Query FullName field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records.
Solution:
You can query instead NamespacePrefix + DeveloperName and use wherever you want FullName (FullName = NamespacePrefix + DeveloperName).
I hope this will helpfull