InvalidParameterValueException - Expect the permission dataset to be used as RLS_RULES, but found useAs

Cannot find in any input parameter for creating dataset about this error. How can I resolve it?

An error occurred (InvalidParameterValueException) when calling the CreateDataSet operation: Invalid RowLevelPermissionDataSet. Expect the permission dataset to be used as RLS_RULES, but found useAs: null. Please recreate or switch to another permission dataset with useAs property setting to RLS_RULES and try again.

Hi @alltej ,

Can you add some context as when you are getting this error message and what you are trying to achieve?

Reading the message seems like it is looking for RLS configuration dataset named RLS_Rules.

Thanks,
Prantika

It’s when creating a dataset. I did not see “RLS_Rules” in the definition json.

I don’t see that message or text in the definition file that I based it from.

can you check this block in the json? is it defined as enabled?

Yes it is.

"RowLevelPermissionDataSet": {
      "Arn": "arn:aws:quicksight:us-east-1:...",
      "PermissionPolicy": "GRANT_ACCESS",
      "FormatVersion": "VERSION_2",
      "Status": "ENABLED"
    }

Since this is set to enabled here, RLS rule is being searched for. If you do not intend to setup RLS, please disable the status.

It has to be enabled coz it using RLS that’s why this dataset has RowLevelPermissionDataSet defined. I also describe the RLS dataset and it is there and no errors.

I was able to create these datasets with RLS before. But seems getting error for new datasets that I am creating.

Hi @alltej,

“UseAs” seems to be a new property that’s not documented yet. I noticed it some time ago while using the API but haven’t run into this issue. I haven’t been including “UseAs” in the json when using the API to create datasets and haven’t received any errors.

Can you try adding "UseAs": "RLS_RULES" to your RLS dataset and see what happens? If it doesn’t do anything, try adding it to your main dataset instead.

Adding it to the main dataset or the RLS dataset will fail in validation: Parameter validation failed - Unknown parameter in input

I am using these versions:
aws --version
aws-cli/1.36.7 Python/3.12.0 Darwin/23.6.0 botocore/1.35.66

@David_Wong @prantika_sinha ,

Any resolution to this issue?
I posted the awscli and the boto version because based on the error the parameter validation failed on the client side. That version was the latest as of Nov 20. So I cannot really use that property unless it is supported by the boto/awcli client library.

Hi @alltej,
It’s been awhile since last communication took place on this thread. Were you able to find a work around for this case or are you still facing additional questions?

If we do not hear back within the next 3 business days, I’ll close out this topic.

Thank you!

Thank you!

Hi @alltej,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.

Thank you!