Good morning!
I am experimenting with backing up an analysis with describe_analysis_definition() and restoring with update_analysis() and I ran into an issue with null representation. I am using boto3 version 1.26.66
My test backup .json has a section with a ‘null’ in it. This represents an integer filter on a visual where I want the values to be 30 or null
"Configuration": {
"FilterListConfiguration": {
"CategoryValues": [
"30",
null
],
"MatchOperator": "CONTAINS"
}
},
When attempting to call update_analysis() with the .json generated from describe_analysis_definition() I get this error:
Exception has occurred: ParamValidationError
Parameter validation failed: Invalid type for parameter Definition.FilterGroups[2].Filters[0].CategoryFilter.Configuration.FilterListConfiguration.CategoryValues[1], value: None, type: <class ‘NoneType’>, valid types: <class ‘str’>
I have attempted various different representations instead of ‘null’ in the .json to match the valid ‘str’ typing restriction:
- “null”
- “”
- “NULL”
And none of this has worked. So any advice on how to restore a .json with a NULL value on a filter would be appreciated!