-
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
dbtcloud_job
: required key not provided
#245
Comments
Thanks for the report! I have tried to replicate it but can't. Can you provide the full config for
Can you also provide the output of |
@b-per Thank for your response, My full
And the |
Thanks. Sorry, I would need to get the provider version when running |
Oh sorry @b-per I misunderstood.
|
I tried again but can't replicate the issue. Could you update your module to add the default value for
I don't know why it is not getting added in your case... |
@b-per , yes I tried to add |
It is very odd, yes... I am wondering if it happened because the jobs have been modified in a certain way in the UI after they have been created via the API For now, you could try
but it will change your jobs in case someone manually updated the I will try again to replicate the problem even if I was not able so far. |
Hi @huy-nguyen26 ! Did replacing the job fix your issue for now? |
Hi again. Actually, if you haven't replaced the jobs yet, just wait a bit if possible. I did more testing and saw that there were some issues when modifying existing jobs. I think that I have been able to replicate your use case and I am working on a fix for it. I plan to have a new release in a day or so. |
Hi! I am releasing 0.2.23 I think it should fix the issue you had. |
Hi @b-per , it's great to hear this news! Could you please provide some insight into what happened behind the scenes, if possible? In any case, thank you very much !!! |
The logic is a bit complex when handling changes to jobs because of how different jobs can be set. In this particular example, the fix was here. If a job was at some point set to use time intervals and then was changed with the interval not valid anymore the missing line was not adding the required value in the payload. I added an integration test about this issue, so hopefully it won't come back later. |
Many thank @b-per !! I will test it. |
Describe the bug
I'm attempting to provision my workflows using Terraform for dbtcloud. However, when I use
dbtcloud_job
, I encounter the following error:Error message
Resource configuration
In my configuration, I do as follow
Config (please complete the following information):
Additional context
I've discovered that others have encountered a similar issue: dbt-labs/docs.getdbt.com#451, but it seems to be related to API calls rather than Terraform usage. To resume: Here's the problem with the create job API is, its taking the "id" field as an input in body which is required field. We need to give value of job id in "id" field but we would not be able to get it in create API so we need to pass null as a value in "id" field for create API.
How can I solve this problem please? What do I miss please? Thank you
The text was updated successfully, but these errors were encountered: