Open avaashwill opened 1 year ago
Hi there @avaashwill! We've seen this error pop up in the past, and in particular this customer saw a similar 50% fail rate once they upgraded to dbt v1.5. We've suspected an issue in the dbt-snowfake v1.5 adapter specifically
Did you happen to recently upgrade your dbt version? Would it be possible to upgrade to v1.6?
Hello @fivetran-jamie thanks for the response! I looked over that thread and it does seem like the same issue. We upgraded to 1.5 in late June 2023, so it was recent... ish. When we were using the fivetran_formula table before this and the code looked like this:
{{ salesforce_formula_utils.sfdc_formula_view(
source_table='lwccase_timer_session_time_c'
, source_name='salesforce'
, full_statement_version=false)
}}
we got the error one time on 8/21/2023 and then merged a PR on 8/22/2023 that changed the source from fivetran_formula to fivetran_formula_table. Now the code looks like this:
{{ salesforce_formula_utils.sfdc_formula_view(
source_table='lwccase_timer_session_time_c',
full_statement_version=true)
}}
We get the error daily now. Again, the first time we saw it was right before we switched over to the other formula table.
I'm willing to upgrade to dbt 1.6 and see if that helps, but let me know if there are any smaller changes we could try first, I didn't see anything in the thread that pointed to resolution.
Your code looks good to me! Just to confirm, have you included fivetran_formula_model
in your defined salesforce
source as part of Step 3?
Otherwise, the only solution I can come up with is upgrading dbt 😞 @avaashwill
@fivetran-jamie, yep our salesforce source looks like the one you linked.
Okay, no problem at all. I'll talk with the team about upgrading. Thank you so much for your help!
no problem! please let us know if this doesn't do the trick. for now i'll mark this as won't fix
but will keep it open as i'm sure someone else will have this issue
@fivetran-jamie Good morning! We upgraded to the latest version of dbt core (1.6.1) and that did not solve the issue.
Is there an existing issue for this?
Describe the issue
We switched to the fivetran_formula_model table in anticipation of the fivetran_formula table being deprecated in the Salesforce connector. This error started intermittently popping up during fivetran scheduled transformations of our dbt project. The error self-resolves every time and has not happened two runs in a row.
Relevant error log or model output
Expected behavior
No error
dbt Project configurations
N/a
Package versions
What database are you using dbt with?
snowflake
dbt Version
1.5.1
deployment.yml
Additional Context
I am able to run the compiled code from the ticket_timer model in snowflake with no issues. I saw similar stale issue, but it refers to the
fivetran_formula
table.Are you willing to open a PR to help address this issue?