Skip to content

Error: Size must be between 1 and 500 on dynatrace_business_events_oneagent #661

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

Open
mhoang-woolworths-com-au opened this issue Apr 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mhoang-woolworths-com-au

Describe the bug
I use dynatrace_business_events_oneagent and created the business events fine, but subsequent run I keep getting "will be updated in-place" and then error on terraform apply:

Error: Size must be between 1 and 500
│ Size must be between 1 and 500

│ with module.dynatrace.dynatrace_business_events_oneagent.bizevents["myevent"],
│ on .terraform/modules/dynatrace/modules/dynatrace/bizevents.tf line 1, in resource "dynatrace_business_events_oneagent" "bizevents":
│ 1: resource "dynatrace_business_events_oneagent" "bizevents" {

I noticed that this error appears on all business events and some I do not modify at all.

I tested on provider version 1.61.0 -> 1.61.3

This also happens with terraform local state (windows) and on terraform cloud (ubuntu agent)

To Reproduce
Steps to reproduce the behavior:

My business event shows up in terraform plan as:

module.dynatrace.dynatrace_business_events_oneagent.bizevents["myevent"] will be updated in-place

~ resource "dynatrace_business_events_oneagent" "bizevents" {
id = "xxxxxx"
# (4 unchanged attributes hidden)
~ event {
~ data {
- event_data_field_complex {
- name = "complexfield" -> null
- source {
- path = "data.analytics.data.visitorId" -> null
- source_type = "response.body" -> null
# (1 unchanged attribute hidden)
}
}
+ event_data_field_complex {
+ name = "complexfield"
+ source {
+ path = "data.analytics.data.visitorId"
+ source_type = "request.body"
# (1 unchanged attribute hidden)
}
}
+ event_data_field_complex {
}
# (3 unchanged blocks hidden)
}
# (3 unchanged blocks hidden)
}
# (1 unchanged block hidden)
}

Expected behavior
There should be no errors

Screenshots

Image

@mhoang-woolworths-com-au mhoang-woolworths-com-au added the bug Something isn't working label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant