xero-php-oauth2 icon indicating copy to clipboard operation
xero-php-oauth2 copied to clipboard

Bank transactions Import Issue- InvalidArgumentException

Open mansibhavya opened this issue 2 years ago • 3 comments

Upon importing the Bank transactions from XERO, I'm getting the following error.

Invalid value for 'type', must be one of 'RECEIVE', 'RECEIVE-OVERPAYMENT', 'RECEIVE-PREPAYMENT', 'SPEND', 'SPEND-OVERPAYMENT', 'SPEND-PREPAYMENT', 'RECEIVE-TRANSFER', 'SPEND-TRANSFER'

Error Back-Trace is : /vendor/xeroapi/xero-php-oauth2/lib/Models/Accounting/BankTransaction.php(line - 422) /vendor/xeroapi/xero-php-oauth2/lib/AccountingObjectSerializer.php(line - 358,function-setType) /vendor/xeroapi/xero-php-oauth2/lib/AccountingObjectSerializer.php(line - 277,function-deserialize) /vendor/xeroapi/xero-php-oauth2/lib/AccountingObjectSerializer.php(line - 358,function-deserialize) /vendor/xeroapi/xero-php-oauth2/lib/Api/AccountingApi.php (line - 1303,function-deserialize)

it worked fine first but now this issue started coming up.

We have seen in the code that we do import only such transactions which types are 'RECEIVE', 'RECEIVE-OVERPAYMENT', 'RECEIVE-PREPAYMENT', 'SPEND', 'SPEND-OVERPAYMENT', 'SPEND-PREPAYMENT'.

Is there a way to fix this error ?

Thanks

mansibhavya avatar Jun 08 '22 18:06 mansibhavya

Hi @mansibhavya please email [email protected] with your app Client ID so we can check your api logs for the source of the error, thanks.

RettBehrens avatar Jun 08 '22 19:06 RettBehrens

Following up @mansibhavya is this issue ongoing?

RettBehrens avatar Aug 02 '22 21:08 RettBehrens

@RettBehrens obviously impossible to say without seeing the source data, but possibly experiencing the same issue I raised a couple of weeks ago: https://github.com/XeroAPI/xero-php-oauth2/issues/291

IanSimpson avatar Aug 03 '22 00:08 IanSimpson