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?