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] Timestamp not recognized error when generating datespine #23

Closed
2 of 4 tasks
fivetran-joemarkiewicz opened this issue Jul 24, 2024 · 1 comment · Fixed by #24
Closed
2 of 4 tasks

[Bug] Timestamp not recognized error when generating datespine #23

fivetran-joemarkiewicz opened this issue Jul 24, 2024 · 1 comment · Fixed by #24
Assignees
Labels
error:forced status:in_progress Currently being worked on type:bug Something is broken or incorrect

Comments

@fivetran-joemarkiewicz
Copy link
Collaborator

fivetran-joemarkiewicz commented Jul 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

In cases when there are no transactions yet in the General Ledger model the downstream datespine model will fail as there is not a minimum date to choose from. Thus results in the below provided error message.

To address this we will need to apply a coalesce to this model to ensure a date is specified even if there are no transactions in the General Ledger model. We have made similar updates to QuickBooks where we can apply a similar update to ensure users are able to see a successful run before transactions are seen in the General Ledger model.

Relevant error log or model output

database error in model int_sage_intacct__general_ledger_date_spine (models/intermediate/int_sage_intacct__general_ledger_date_spine.sql) 100035 (22007): timestamp 'none' is not recognized

Expected behavior

The models are able to succeed before transactions are available.

dbt Project configurations

Default

Package versions

v0.4.0

What database are you using dbt with?

snowflake

dbt Version

v1.8.1

Additional Context

No response

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.
@fivetran-joemarkiewicz fivetran-joemarkiewicz added type:bug Something is broken or incorrect error:forced status:accepted Scoped and accepted into queue labels Jul 24, 2024
@fivetran-avinash fivetran-avinash self-assigned this Jul 25, 2024
@fivetran-avinash fivetran-avinash added status:in_progress Currently being worked on and removed status:accepted Scoped and accepted into queue labels Jul 25, 2024
@fivetran-avinash fivetran-avinash linked a pull request Jul 30, 2024 that will close this issue
5 tasks
@fivetran-avinash
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error:forced status:in_progress Currently being worked on type:bug Something is broken or incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants