-
Notifications
You must be signed in to change notification settings - Fork 19
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] Model runs into an error when no record exists in fivetran_formula_model #81
Comments
HI @fivetran-juliengoulley thanks for opening this issue. I actually just chatted with our product team and discovered that this is something which will be addressed within the connector. As such, this is likely something we won't reflect within the dbt package. Therefore, I will mark this as won't do and will close out this issue once the update is rolled out to the connector. |
has this been resolved? was it addressed within the connector? |
I have experienced the same issue, can you please advise when this issue will be fixed by the connector update? I have logged a support ticket: 144364
|
Hi @fivetran-joemarkiewicz we are experiencing the same with the latest versions of In which way will be addressed? Wouldn't the macro still try to fetch the formula from This issue has been open in February, any updates? |
It would probably be better to just raise an error if there's no formula model, wouldn't it? |
Is there an existing issue for this?
Describe the issue
When an object has no formula then no record exists under fivetran_formula_model and that causes the model to fail.
For instance, in my environment, there is no formulas for case_opportunity. If I include the below statement in my SQL model
Then I'm getting the below error
When I check the compiled model, I can see that the statement is indeed empty
A solution could be to remove that model but the customer would like to make sure any new formula is picked up by this DBT transformation so this is not an acceptable solution
Relevant error log or model output
Expected behavior
Create an empty table or other approach. At least, remove the error
dbt Project configurations
Package versions
What database are you using dbt with?
snowflake, bigquery
dbt Version
1.3.0
Additional Context
This issue has been raised by LeasePlan. They have raised a few issues while moving from V1 to V2 and although many seem to be related to Salesforce Data Quality issue, it would really help them get passed this issue.
I haven't done so yet, but in the meantime, we will look into adding a IF statement around the salesforce_formula_utils.sfdc_formula_view function to check the existence of a model first
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: