Skip to content

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

@ilankessler

Description

@ilankessler

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions