-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Parent-to-Child Relationship Query Hangs #35
Comments
@yongks Thanks for making a note. The I cannot replicate the issue, but if you want to test the recursive behavior and report back any findings that would be great. The source code you can run is available here: https://github.com/StevenMMortimer/salesforcer/blob/master/R/query.R |
Thanks for the quick response. I tested queryall=TRUE on the below SOQL (notice that there is an aggregated result "(Select ..... From FeedComments) returning dataframe within dataframe. This is the reason why I have to use 'REST' and not 'Bulk 1.0'. My results are:
|
I think you believe the In the example you are showing the issue is not the number of records, but the structure of a few specific records that you're trying to query, which have some quirk about them that makes them difficult to parse and are causing the process to hang. Queries are tough to debug for me because I don't have access to your org or your data to see what the root cause of the issue is. There are a few routes to go, all of which depend on the level of data you are allowed to share with me or publicly:
If you need to send something in a less public forum, you are welcome to email to me details at reportmort@gmail.com. |
It could be related to something like this since we are not checking the child query for "done" simple-salesforce/simple-salesforce#311 |
Hi Guys I have just noticed this and it seems to be to be related to the amount of data you are pulling. When I include a Long Text Area field in my sf_query then my max limit of records that I can pull drops from 2000 to 250. anymore than this and the query hangs. I'm not trying to pull any child parent relationships. |
@BrendanWhittle Thanks so much for adding this context and clue. I'll have to check and see if there are differences in how the query status is marked or the next records URL is provided whenever pulling Long Text Area fields. Maybe the current code is looking in the wrong place for those items to continue paginating in those types of queries. |
@yongks @BrendanWhittle Apologize for the extremely long delay. This is well overdue, but finally got to the heart of the issue with some help from #54 and refactoring the REST and SOAP query functions. The fix is already on GitHub and will be included in the new release of the package (v0.2.0) coming in the next few days. Upgrade your version of {salesforcer} package to (>= 0.1.4.9999) and you should be good to go. Thanks for your patience. |
Thanks for the great library. Had been using bulk query for a while.
I hit into maximum limit of records returned per API call (2000 rows). The workaround is to break down into multiple queries to work around the limitation.
I had used python library simple-salesforce before, and never hit into such limitation. With some research, it seems python library implemented query more feature (pagination) which enable it to retrieve up to 50,000 rows per API call. The research leads me to:
.
https://help.salesforce.com/articleView?id=000339353&type=1&mode=1
Not sure if there is a plan to implement this here. Thanks.
The text was updated successfully, but these errors were encountered: