[Bug]: Parsing error for missing data configuration of line chart visual in Quicksight dashboard. #40232
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/quicksight
Issues and PRs that pertain to the quicksight service.
Terraform Core Version
1.5.7
AWS Provider Version
5.70.0
Affected Resource(s)
affected resource: aws_quicksight_dashboard
Expected Behavior
The dashboard should be created and no error should be thrown since the missing data configuration is passed properly (also it's optional).
Actual Behavior
Using terraform I'm creating a Quicksight dashboard that is using a template. In this file I've extracted the json representation of the template (creation request) for debugging :
template-definition-eu.json
In this template we can see that for the line chart creation, the configuration of how to deal with missing values is properly defined:
"PrimaryYAxisDisplayOptions": { "MissingDataConfigurations": [ { "TreatmentOption": "SHOW_AS_BLANK" } ] },
Yet when applying the plan, an error is raised regarding this field:
│ Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "line_chart_visual", "0", "chart_configuration", "0", "primary_y_axis_display_options", "0", "missing_data_configurations"}
Diagnostic log:
2024-11-20T15:57:14.346+0100 [ERROR] provider.terraform-provider-aws_v5.70.0_x5: Response contains error diagnostic: tf_req_id=ba969a02-f9c7-250a-4f85-b0acd524d7e8 tf_resource_type=aws_quicksight_dashboard diagnostic_detail= diagnostic_severity=ERROR tf_proto_version=5.6 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_summary="setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "line_chart_visual", "0", "chart_configuration", "0", "primary_y_axis_display_options", "0", "missing_data_configurations"}" tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2024-11-20T15:57:14.346+0100
Relevant Error/Panic Output Snippet
Terraform Configuration Files
`resource "aws_quicksight_dashboard" "cm_tracker_dashboard_eu" {
aws_account_id = var.account_id
dashboard_id = "${var.namespace}-dashboard-eu"
name = "CM Tracker Dashboard EU"
version_description = "Initial version of CM Tracker Dashboard for EU"
source_entity {
source_template {
arn = "arn:aws:quicksight:eu-west-1:${var.account_id}:template/${var.quicksight_template_id_eu}/version/${var.quicksight_template_version_eu}"
data_set_references {
data_set_placeholder = "DataSetPlaceholderEU"
data_set_arn = "arn:aws:quicksight:eu-west-1:010928207125:dataset/cm-tracker-data-set-eu"
}
}
}
permissions {
actions = [
"quicksight:DescribeDashboard",
"quicksight:ListDashboardVersions",
"quicksight:QueryDashboard",
"quicksight:UpdateDashboardPermissions",
"quicksight:DeleteDashboard",
"quicksight:UpdateDashboard",
"quicksight:UpdateDashboardPublishedVersion",
"quicksight:DescribeDashboardPermissions",
]
principal = "arn:aws:quicksight:eu-west-1:${var.account_id}:group/default/admin"
}
permissions {
actions = [
"quicksight:DescribeDashboard",
"quicksight:ListDashboardVersions",
"quicksight:QueryDashboard",
]
principal = "arn:aws:quicksight:eu-west-1:${var.account_id}:group/default/reader"
}
}`
Steps to Reproduce
Create the plan with the dashboard pointing to the template.
Debug Output
No response
Panic Output
No response
Important Factoids
Seems like there is a very old similar issue for this: #37036
Do you have any inputs for this ?
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: