Skip to content
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

HighVolumeException: Issue retrieving 20 contacts at a time via ContactNumbers #148

Closed
ilankessler opened this issue Sep 5, 2024 · 4 comments

Comments

@ilankessler
Copy link

I believed our current method of filtering contacts would be efficient enough, but our systems have crashed due to the new high volume threshold limits.

Here is our current approach for fetching contact numbers:

contact_numbers = ["A400", "A500", "A600", "A700", ...]
where = "||".join([f'ContactNumber="{contact_number}"' for contact_number in contact_numbers])
contacts = client.get_contacts("", where=where, summary_only=True)

However, we’re encountering the following error:

HighVolumeException
Your request is not filtering Contacts efficiently, given the extremely high volume for this organisation. Please check https://developer.xero.com/documentation/api/efficient-data-retrieval for tips on making Contact retrieval more efficient.

Given the volume, it’s too slow and subject to rate limiting to retrieve each row individually.

Is anyone able to suggest an efficient way to retrieve contact information under these constraints? Any insights or recommendations would be greatly appreciated.

Thanks in advance!

Copy link

github-actions bot commented Sep 5, 2024

PETOSS-570

Copy link

github-actions bot commented Sep 5, 2024

Thanks for raising an issue, a ticket has been created to track your request

@Sallyhornet
Copy link

Please can you raise this as a case with Xero Support here as it is an API issue rather than an issue with the SDK itself.

Please can you include the client id for your app

Copy link

This is an API query not an issue with the SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants