xero-python icon indicating copy to clipboard operation
xero-python copied to clipboard

HighVolumeException: Issue retrieving 20 contacts at a time via ContactNumbers

Open ilankessler opened this issue 1 year ago • 4 comments

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!

ilankessler avatar Sep 05 '24 00:09 ilankessler

PETOSS-570

github-actions[bot] avatar Sep 05 '24 00:09 github-actions[bot]

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

github-actions[bot] avatar Sep 05 '24 00:09 github-actions[bot]

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

Sallyhornet avatar Sep 05 '24 07:09 Sallyhornet

This is an API query not an issue with the SDK

Sallyhornet avatar Sep 05 '24 08:09 Sallyhornet