Skip to content
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]: Parsing error for missing data configuration of line chart visual in Quicksight dashboard. #40232

Open
violettepcp opened this issue Nov 21, 2024 · 1 comment
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.

Comments

@violettepcp
Copy link

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

Error raised when applying the plan:

│ 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"}
│ 
│   with aws_quicksight_dashboard.cm_tracker_dashboard_eu,
│   on quicksight_dashboard.tf line 1, in resource "aws_quicksight_dashboard" "cm_tracker_dashboard_eu":
│    1: resource "aws_quicksight_dashboard" "cm_tracker_dashboard_eu" {
│

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.

  • Applying the plan.

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

@violettepcp violettepcp added the bug Addresses a defect in current functionality. label Nov 21, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/quicksight Issues and PRs that pertain to the quicksight service. needs-triage Waiting for first response or review from a maintainer. labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant