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.
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.
“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.
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.
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.