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

Bank transactions Import Issue- InvalidArgumentException #285

Open
mansibhavya opened this issue Jun 8, 2022 · 3 comments
Open

Bank transactions Import Issue- InvalidArgumentException #285

mansibhavya opened this issue Jun 8, 2022 · 3 comments

Comments

@mansibhavya
Copy link

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

@RettBehrens
Copy link
Contributor

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
Copy link
Contributor

Following up @mansibhavya is this issue ongoing?

@IanSimpson
Copy link
Contributor

@RettBehrens obviously impossible to say without seeing the source data, but possibly experiencing the same issue I raised a couple of weeks ago: #291

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

3 participants