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

[Bug] Duplicate Entries for General Ledger Transaction ID's for two Accounts Receivable accounts #104

Open
2 of 4 tasks
mikerenderco opened this issue Sep 11, 2023 · 8 comments
Labels
type:bug Something is broken or incorrect type:wontfix This will not be worked on

Comments

@mikerenderco
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Example transaction ID 150975 has duplicate entries in Bigquery General Ledger. Account_id 501 and account_id 500 are creating duplicate entries. The data from fivetran DBT job for the General Ledger is creating duplicate data for account id 501 and is causing our data to not reconcile. When you look in Quickbooks that isn't the case. See attached screen shots and advise.

ss
Query Export.csv

Relevant error log or model output

No response

Expected behavior

We would only want to have entries for Account ID 500 in the General Ledger.

dbt Project configurations

vars:
using_credit_card_payment_txn: true
using_purchase_order: true

Package versions

packages:

  • package: fivetran/quickbooks
    version: [">=0.11.0", "<0.12.0"]

What database are you using dbt with?

bigquery

dbt Version

dbt Version: 1.5

Additional Context

SELECT * FROM back-bar.prod_quickbooks.quickbooks__general_ledger where transaction_id = '150975'

Are you willing to open a PR to help address this issue?

  • Yes.
  • Yes, but I will need assistance and will schedule time during our office hours for guidance
  • No.
@mikerenderco mikerenderco added the type:bug Something is broken or incorrect label Sep 11, 2023
@fivetran-jamie
Copy link
Contributor

Hey there @mikerenderco thanks for taking the time to open this and for your continued engagement with the packages!

I'd like to understand this a bit better. So in the csv you attached, should the records where account_id = 501 not be there?

@mikerenderco
Copy link
Contributor Author

mikerenderco commented Sep 12, 2023 via email

@fivetran-jamie
Copy link
Contributor

Interesting...I think there may be an issue with the invoice double entry model

Specifically, it seems we are assuming that there is only one Accounts Receivable account per connector based on this CTE and how we join it in later only based on source_relation. I think this is where account 501 is sneaking in, since it is an AR account.

I see in your csv that the account_name for 501 is null.. would it happen to be deleted?

@mikerenderco
Copy link
Contributor Author

mikerenderco commented Sep 13, 2023 via email

@fivetran-jamie
Copy link
Contributor

Ah yeah I came across this from Quickbooks

QuickBooks Online isn't designed to work with multiple Accounts Receivable (AR) and Accounts Payable (AP) accounts. QuickBooks Online encourages their customers to merge their accounts payable and receivable accounts into one.

It's interesting that QB doesn't block you from creating multiple AR accounts though...I think what we'll do is keep this issue open but mark it as wontdo. That way if this setup isn't completely rare and other users come across this issue, they can chime in here and we can potentially move forward with a solution for this use case.

Would the remaining duplicates block you from using the package however? If so, I'd recommend overriding the stg_quickbooks__account model to filter out account 501

@fivetran-jamie fivetran-jamie added the type:wontfix This will not be worked on label Sep 13, 2023
@fivetran-jamie fivetran-jamie changed the title [Bug] Duplicate Entries for General Ledger Transaction ID's for two accounts [Bug] Duplicate Entries for General Ledger Transaction ID's for two Accounts Receivable accounts Sep 13, 2023
@mikerenderco
Copy link
Contributor Author

mikerenderco commented Sep 13, 2023 via email

@J-Sweeny
Copy link

Hi Jamie, It looks like we're experiencing this issue across a number of our customers at Runway. We first noticed it in the balance sheets of a handful of customers (they don't balance) and then discovered duplicate debit journal lines in several GL Accounts from the GL Transform tables. In the balance sheet the extra debits build up and create a negative offset that throws off the value for all GL accounts impacted.

It would be massive useful for us to get this solved and we'd be willing to apply engineering resources if that's a bottle neck. The screenshots below are for one impacted account code in the General Ledger table.
Screenshot 2024-05-30 at 5 41 19 PM
Screenshot 2024-05-30 at 5 41 58 PM

@fivetran-joemarkiewicz
Copy link
Contributor

Hi @J-Sweeny thanks for chiming in here!

This original issue is actually an ongoing one we have been seeing in a number of other issues, such as Issue #115, where QuickBooks Online does not provide us with a scalable way via the API to map transactions to the appropriate AR or AP account. I can't 100% confirm that this same issue is the one you are experiencing, but it would be best for us to explore this further and confirm the origin of the issue and assess possible next steps.

In order for us to best support you and triage this issue, I would actually request you open a Fivetran Support Ticket and share the discrepancy you are seeing with the dbt package. Fivetran Support will then be able to get some additional information from you and include my team and I on the ticket in order to securely/best help address the issue you are experiencing.

Let me know if you have any questions, and once you open the support ticket. I can then jump in right away so we can triage and assess this issue ASAP. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something is broken or incorrect type:wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants