Quicksight api to update a dataSet in java

Hi,

I am trying to use quicksight to update a dataset using the updateDataSet API.
here’s an example :
UpdateDataSetRequest updateDataSetRequest =
UpdateDataSetRequest.builder().awsAccountId(“my_aws_account_id”)
.dataSetId(“my_data_set_id”)
.physicalTableMap(physicalTableMap)
.dataSetUsageConfiguration(dataSetUsageConfig).name(“my_name”)
.importMode(“SPICE”).build();
UpdateDataSetResponse response = this.quickSightClient.updateDataSet(updateDataSetRequest);

when i check the dataSet ( either using a describe method or directly in quicksight interface) i found that it got updated except the field : dataSetUsageConfiguration which is always set to false

Any idea about that ? is there any restriction on this attribute ? or have i missed something ?

Hello @Forget , welcome to the Quicksight community!

After looking into this, that function is always going to bring back a Boolean.

Thanks for the answer,
yet i update my dataset so that i change the value of that boolean ( from false to true ) but the api is returning false even when i change that attribute to true …

Hey @Forget !

I’m not sure that this can be changed via the api call. Is that field coming back as false having an affect on your dataset?
Most of the documentation that I have been able to find is describing this as defining whether a child dataset can use your updated dataset as a source.

Hi again ,
It’s not affecting my dataSet, but i am trying to update my dataSet using the updateDataSet API to see if i can change this field.
The field is a boolean, so either FALSE or TRUE. When i use the describeDataSet API, I found out : FALSE. Right after that, I used the updateDataSet API to update the field to the value of TRUE. using a second describe on the dataSet ( after few mins ) , I still get the field as FALSE, which makes no sens i guess.

Hey @Forget! What is your use case for changing that field? Looking at the documentation, that field should only be true if their is a child dataset. Is that field being false stopping your from doing something specific to your dataset or in Quicksight?

Hey @Forget !

Are you still having trouble with this? Again I don’t believe that is field that will change to True unless there is a child dataset.

It’s been a few days since we have heard from you. If we do not hear from you in 3 days this post will be archived.

Hello, thank for your response, i tought that i can update this field to true or false, but i guess unless there is a dataSet child, this atribute will become true
am i right ?

Hello @Forget , I believe that is true.

If you run into issues stemming from this however and can not find a child dataset attached to your current dataset I would recommend creating an AWS support ticket.

If your company has someone who manages your AWS account, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team or whomever manages your AWS account. They should be able to open an AWS Support case on your behalf