You need to sign in to do that
Don't have an account?
Pramod V
Lightning component trailhead
Hi All,
I am new to SF. I have been completing quite a few challenges now, I am stuck in this one for long.
https://trailhead.salesforce.com/projects/quickstart-lightning-components/steps/quickstart-lightning-components3
Quite frustrating actually.
Everytime I get this error:
There was an unhandled exception. Please reference ID: BCGRRLJQ. 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: 3
I looked at other similar post, but not helpful.
I tried adding limit in Controller and checked the query in SOQL editor also. The result returned is always 1. I tried in multiple trailhead Playgrounds still the same.
Not sure where I am going wrong. Any suggestions will help.
Thanks,
Pramod V
I am new to SF. I have been completing quite a few challenges now, I am stuck in this one for long.
https://trailhead.salesforce.com/projects/quickstart-lightning-components/steps/quickstart-lightning-components3
Quite frustrating actually.
Everytime I get this error:
There was an unhandled exception. Please reference ID: BCGRRLJQ. 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: 3
I looked at other similar post, but not helpful.
I tried adding limit in Controller and checked the query in SOQL editor also. The result returned is always 1. I tried in multiple trailhead Playgrounds still the same.
Not sure where I am going wrong. Any suggestions will help.
Thanks,
Pramod V
https://github.com/TaaaZyyy/lightning-playground/tree/master/force-app/main/default/aura/MyContactList
If the source code Raj shared doesn't fix your issue (I believe it should), can you share your code with us?
Thanks!
After employing Raj's code I get following error:
The component does not contain the correct lightning:card markup.
I somehow feel this is not an issue with code. Have to do with admin stuff.
Skeptical that one of the previous challenges affecting this, but not sure how to validate.
Thanks,
Pramod V
I tested the component, copying and pasting your exact code. I did not get the same error as you, however you have an error in this element: It requires the keyField attribute: With that change only, your exact code works in my development org. Hopefully that's your only error! :-)
I truly am baffled. I literally copy and pasted your own code and succeeded, other than adding keyField. I even re-earned my trailhead badge for it.
My only recommendation would be to create a new developer org just for these purposes (maybe something got messed up in the one you're testing in), and creating the class and components from fresh.
Let me create a new TP and test this.
~VIP
- Create a new TP and did the same - didn't work
- Re-did/recheck all the development side of things(to the best of my knowledge) - didn't work
- Checked at SOQL editor if my query runs or not. It runs fine.
I either get Record size limit error or my Lighting app wont load in App builder.~VIP
https://mybkexperience.us/