-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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]: QuickSight dataset error: invalid transform in LogicalTableMap #32137
Labels
bug
Addresses a defect in current functionality.
service/quicksight
Issues and PRs that pertain to the quicksight service.
Comments
muratmozdemir
added
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
labels
Jun 21, 2023
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
justinretzolk
added
service/quicksight
Issues and PRs that pertain to the quicksight service.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Jun 26, 2023
Hi Guys, I faced the same problem and to solve just separate the data_transforms. Example:
|
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.
service/quicksight
Issues and PRs that pertain to the quicksight service.
Terraform Core Version
1.4.6
AWS Provider Version
5.3.0
Affected Resource(s)
Expected Behavior
The dataset should be created successfully. I have viewed the HTTP request terraform makes and it appears that the JSON generated by Terraform is not formatted correctly, specifically within
DataTransforms
section.I have enabled trace logs in Terraform and here is part of the JSON that is being sent in the HTTP request that fails (This also fails when I run this from Python (boto3). Below is what Terraform generates for
LogicalTableMap
Terraform Generated
LogicalTableMap
If I use this JSON in boto3 however, the dataset is created successfully:
Correct JSON for
LogicalTableMap
In the first JSON, the "ProjectOperation" and "TagColumnOperation" are contained within a single dictionary in the "DataTransforms" array.
In the second JSON, the "ProjectOperation" and "TagColumnOperation" are separate dictionaries within the "DataTransforms" array.
Actual Behavior
Error: creating QuickSight Data Set: InvalidParameterValueException: Invalid transform in LogicalTableMap
Relevant Error/Panic Output Snippet
Terraform Configuration Files
I have created an example repository which you can reproduce the bug here:
https://github.com/muratmozdemir/aws-quicksight-example
Steps to Reproduce
Here are some reproduction steps.
QuickSight Configuration
QuickSight Enterprise
subscription and use the default settings.Amazon S3
from theAllow access and autodiscovery for these resources
option in the QuickSight signup page.aws-quicksight-service-role-v0
IAM role. You can do this in the QuickSight settings but since the buckets do not exist yet, we can modify the role's policy directly.AWSQuickSightS3Policy
quicksight-example
repository underresources/iam
just be sure to replace<account-id>
with the account ID that is hosting QuickSight in the policy document.Terraform Configuration
aws-quicksight-example
repository. Go ahead and clone the repository.backend.tf
file to match your organization's settings.config.tf
to fit the needs for your environment. For my environment, I am assuming a role which I pass via theAWS_ASSUME_ROLE_ARN
variable.terraform plan
everything will look fine. The error happens when runningterraform apply
. If you look at the Expected Behavior section of this report, I have included the JSON being sent as part of the HTTP request from Terraform.invalid transform in LogicalTableMap
error after runningterraform apply
How to view the JSON that Terraform sends to AWS
TF_LOG
environment variable toDEBUG
orTRACE
terraform apply
and look for the line that starts like this:"{"DataSetId":
is where the JSON begins you can grab.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: