diff --git a/src/tap_intacct/client.py b/src/tap_intacct/client.py index 3d52602..a109cb4 100644 --- a/src/tap_intacct/client.py +++ b/src/tap_intacct/client.py @@ -162,7 +162,15 @@ def _post_request(self, dict_body: dict, api_url: str) -> Dict: if api_response['result']['status'] == 'success': return api_response - if api_response['result']['status'] == 'failure' and "There was an error processing the request" in api_response['result']['errormessage']['error']['description2']: + if ( + api_response['result']['status'] == 'failure' + and "There was an error processing the request" + in api_response['result']['errormessage']['error']['description2'] + and dict_body["request"]["operation"]["content"]["function"]["query"][ + "object" + ] + == "AUDITHISTORY" + ): return {"result": "skip_and_paginate"} if response.status_code == 400: