You need to sign in to do that
Don't have an account?
Invalid Query Locator Error
Hello, a user clicked the standard related contacts quick link and kept scrolling to see more than the first 50 and then instead of loading, there was the error. One account has 57 contacts and another account has 64 contacts. The error is not happening every time.
Error is:
ui.services.connection.api.PartnerConnectionException: INVALID_QUERY_LOCATOR: invalid query locator
I went to Salesforce Support and after I asked some questions (1) What is the contact default batch size? 2) Is the contact default batch value configurable? 3) When referencing the client code, since the client is web-based, does this imply multiple tabs are open or is it storing all data from a single session?) they informed me of the following: "Unfortunately based on the error you receive are only handled by Developer team, and we are not trained on developer part so I would not set any false expectations. I would suggest you to contact your internal developer who will be the best person to answer your questions. I have also provided you some developer forum links where you can post your queries."
I am an Admin and don't know enough about apex to resolve this issue. We don't have an internal developer (it's just me). We don't have any custom code. Any code we have is installed from AppExchange packages.
Any assistance would be helpful. Thank you!
Error is:
ui.services.connection.api.PartnerConnectionException: INVALID_QUERY_LOCATOR: invalid query locator
I went to Salesforce Support and after I asked some questions (1) What is the contact default batch size? 2) Is the contact default batch value configurable? 3) When referencing the client code, since the client is web-based, does this imply multiple tabs are open or is it storing all data from a single session?) they informed me of the following: "Unfortunately based on the error you receive are only handled by Developer team, and we are not trained on developer part so I would not set any false expectations. I would suggest you to contact your internal developer who will be the best person to answer your questions. I have also provided you some developer forum links where you can post your queries."
I am an Admin and don't know enough about apex to resolve this issue. We don't have an internal developer (it's just me). We don't have any custom code. Any code we have is installed from AppExchange packages.
Any assistance would be helpful. Thank you!
It is New-Zealand tool from: https://cloudtoolkit.co/
Quick find: Critical Updates, System Overview
And finally, you will be just reassured that there is nothing wrong or critical in your org which is always good to see.
All Answers
"a user clicked the standard related contacts quick link" : can you copy/paste an image of this link and the beginning of this list?
You will have to edit the page probably ( wheel > Edit Page ).
If it is a standard links, that is a bug of Salesforce logically.
There are two related lists for the contacts.
The video below (vidyard (http://salesforce.vidyard.com/watch/fxqHZf2pER29kXRYvkwio3)) explains how to customize this standard list indeed (you probably already know that).
You can post your checked parameters for your setup of your contacts to multiple accounts and we can try to reproduce it with 60 contacts to see on one account.
SET UP CONTACTS TO MULTIPLE ACCOUNTS
Contact to Multiple Accounts lets sales reps relate a single contact record to multiple accounts so that they can easily track the relationships between people and businesses.
http://salesforce.vidyard.com/watch/fxqHZf2pER29kXRYvkwio3
https://help.salesforce.com/articleView?id=shared_contacts_set_up.htm&type=5
1) Did you define External lookup or Indirect Lookup for your object Account or Contact or External Object ?
https://help.salesforce.com/articleView?id=external_object_define.htm&type=5
2) I have created 100 standard contacts for one standard account. There is no problem for scrolling all the contacts.
2) I don't have the issue myself and the user only has the issue sparingly.
https://salesforce.stackexchange.com/
https://success.salesforce.com/
With a developer org there are not enough contacts to reproduce this kind of problem.
You have probably hundreds of thousand of contacts.
sfdcfox (https://salesforce.stackexchange.com/users) can know the problem.
There were known issues like this one: https://success.salesforce.com/issues_view?id=a1p3A000000f34BQAQ
ui.services.connection.api.PartnerConnectionException: MALFORMED_QUERY (not the same problem)
As you can see, we need the steps that can be reproduced in "any" org.
I can just create 100 related contacts (perhaps rare in real world scenario) but that works in a developer org.
There is any complication in your case.
What AppExchange packages are you using? (just out of curiosity)
It is always interesting to see if a very simple case can produce a severe blocking error (that existed and still exists in Lightning) but that is not the case here.
- RollUp Helper
- Duplicate Checker
- DiscoverOrg
- Former Positions
Let me know if you need other package criteria.ui.services.connection.api.PartnerConnectionException: INVALID_QUERY_LOCATOR
We know what is a query locator and a partner connection and that is the standard process of Salesforce for getting data by scope.
Some users had problems with formula fields but that was not the error INVALID_QUERY_LOCATOR.
The fields created by the RollUp Helper are not formulas.
Your related list here is simple and standard without formula fields or rollup fields (no complication at all).
Sorry, no idea.
2) I don't have the issue myself and the user only has the issue sparingly.
That is the worst case scenario (above all "sparingly"). You always have the workaround to use Classics waiting the next release (Winter 19).
Without a case scenario that generates the error each time, it is very difficult to solve the problem that doesn't occur.
You can just relaunch all the default reports of Salesforce and explain to your users that nothing wrong has been detected by these tools.
Quick find > Optimizer, Lightning Experience > Check Readiness, Optimize with Features
It is New-Zealand tool from: https://cloudtoolkit.co/
Quick find: Critical Updates, System Overview
And finally, you will be just reassured that there is nothing wrong or critical in your org which is always good to see.