Comments (7)
Hi @ElliottWilson thanks so much for opening this issue!
Would you mind sharing the details of the records that where the test failed? Were these scenarios where different account ids had the same name? If that is the case then I think your proposal for adding account_id
to test uniqueness is the right call. If not, I would like to explore the test failure some more.
Additionally, I see you are open to creating a PR account_id
is the correct fix, then I encourage you to open a PR and our team can review and work to integrate your contribution into the package. Let me know if you have any questions!
from dbt_xero.
Hello @fivetran-joemarkiewicz ! Thanks for the speedy response. Here is an example of the rows that cause the test to fail:
from dbt_xero.
Thanks for sending that over @ElliottWilson! Hmmm that is interesting that we are seeing two records of Retained Earnings
. I am getting the suspicious that something else may be going wrong.
It looks like we have some logic here in the package that generates Retained Earnings
as the account name when the following is true:
ledger.journal_date <= {{ dbt_utils.dateadd('year', -1, 'year_end.current_year_end_date') }}
This looks like our package generating the retained earnings record; however, you already have a Retained Earnings account defined. Does the total for the first record (the one with the null
account_id) look accurate? If so, we may just need to add a unique account_id for this created record.
from dbt_xero.
Hi @ElliottWilson I just wanted to post back to see if the other account_id total amount looks accurate?
Our team will be happy to add code to ensure this test does not fail, but wanted to confirm that the values were still accurate before moving forward.
from dbt_xero.
Hey @ElliottWilson! Just wanted to dig deeper here before we deploy a test fix--do the amounts for these accounts look accurate?
We're concerned that we could be overengineering a fix for a proper test failure, since there are two records of Retained Earnings showing. Any investigation results you can provide on your end would be great!
from dbt_xero.
Hello @ElliottWilson! Wanted to check back in and see if you were able to investigate and had any thoughts to the above question.
from dbt_xero.
Closing this issue as it has gone stale. Please feel free to reopen if the issue still persists.
from dbt_xero.
Related Issues (18)
- BUG - All Xero Dbt jobs failing due to missing table HOT 3
- FEATURE - [To be able to generate Employee Remuneration Report present in Xero] HOT 3
- BUG - Reports generated from the Zero DBT package has the wrong net_amount HOT 5
- FEATURE - [Allow to Combine Multiple Xero Companies] HOT 4
- dbt_utils_unique_combination_of_columns_xero__general_ledger_journal_line_id__source_relation fails when journal line id is NULL HOT 1
- BUG - unique_xero__profit_and_loss_report_profit_and_loss_id fails when account_name column differs HOT 9
- BUG - rows in the xero__general_ledger model that have a NULL value in the journal_line_id column HOT 14
- Postgres Compatibility
- BUG - [your bug title here] HOT 5
- FEATURE - [Add Purchase Orders to Xero packages] HOT 6
- [Bug] Bank Transaction table missing HOT 5
- [Bug] Balance Sheet duplicating totals when multiple companies are consolidated HOT 6
- [Feature] Databricks compatability
- [Feature] README Updates HOT 1
- [Feature] Xero Cash Summary report in DBT HOT 1
- Add more cols to xero__balance_sheet_report / xero__invoice_line_items / xero__profit_and_loss_report views. HOT 2
- Feature Request -- Join Contact details to General Ledger HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbt_xero.