Forum Discussion
invalid query locator - salesforce
Hey all,
I have a report created on PBI Desktop with data from Salesforce.
The report was created and published to power bi service months ago.
Everything worked perfectly - the report is refreshed as scheduled.
Everything is in the cloud, hence I don't need no Gateway.
Suddenly, in the last few weeks the schedule refresh is not working and the error message I receive is "invalid query locator Table:XXX".
The name of the table (XXX) is not defined, and each time it is a different table.
I have read in salesforce documents a lot about the query locator.
What i don't understaand is how it happens all of a sudden, and what is the workaround i can do in Power BI to overcome this issue.
Please assist.
Thanks a lot!
18 Replies
- ivan_larson_ckiHelper III
I recently discovered a trick that fixed the issue for our worst-performing dataset.
We had some queries that weren't being used for visualizations, but were only pulled to merge or append into other queries. In the Query Editor, I de-selected "Enable Load". As such, the data for these queries is still added where needed, but the queries don't need to be loaded themselves. A dataset that would never refresh has so far succeeded in about one third of its refreshes after this update.
- Franklin1Advocate I
No one?
- v-yulgu-msftMicrosoft Employee
Hi Franklin1,
Please check whether table name "XXX" is an existing name in source dataset. Or whether it has been changed.
Regards,
Yuliana Gu
- Franklin1Advocate I
Thanks Yuliana,
It is an existing name.
It is all worked well up until a few weeks ago.
Any other idea?
Thanks.
- Franklin1Advocate I
Anyone???
- tmfitzFrequent Visitor
I am having the same issue. Cannot get my queries to Salesforce to refresh on schedule in PBI Service. Works fine when I refresh from PBI Desktop.
Help!
- tmfitzFrequent Visitor
Me too! Been trying to work with PBI support for weeks now. Have time schedule for today. Will come back and update you. So frustrating. :smileysad:
- melrousFrequent Visitor
same issue! any idea?
- ivan_larson_ckiHelper III
I've had this problem frequently, and it seems to be a matter of the file being strained in how much it can import. File size doesn't strongly correlate with the problem as I have files of 18 MB that refresh just fine and files of only 9 MB that can't refresh automatically. But once I'm importing from ~6 or more Salesforce objects into a dataset, I'll start getting "Invalid Query Locator" errors sometimes when refreshing. Sometimes, these errors arise infrequently enough that reports will still continue to refresh most times. But once I use 8 or more Salesforce objects in one dataset, there's almost no chance that the report will ever refresh in the PBI service. I have end users who need to see information stored across this many objects for various projects, and we need a solution for this problem.
- epressonFrequent Visitor
Has anyone come up with a solution? I'm also having this issue. I have a report with 8 salesforce objects and it is not able to refresh via PBI service.
- AnonymousNot applicable
Getting the same issue for larger reports, sometimes just refreshing the desktop file + republishing works, other times I just have to wait. Really hope someone finds a solution to this one
- AnonymousNot applicable
Thanks Ivan.. This solved my issue enableling the queries from uploading. I had merged and appended tables together and received this issue "Invalid Query Locator" right after. Like many of you i was able to refresh on the PBI desktop, but failed online. This resolved the the Invaild Query locator issue.
Thanks Again😀
- kdlongFrequent Visitor
Hi All,
I have provided some thoughts in this post which is the same error:
Cheers