Unable to import analysis, missing CountryCode

Hi. We are currently trying to import an analysis to another account, using Templates.

However, when importing the analysis, we received the following error:

botocore.exceptions.ParamValidationError: Parameter validation failed:
104Missing required parameter in ColumnGroups[0].GeoSpatialColumnGroup: “CountryCode”

For context:

  • dataset and analysis is created via UI in the initial account, we did not create a “CountryCode” parameter
  • there are two geospatial columns, one for country and one for state
  • they have the hierarchy setting as below:

image

Any help would be appreciated. Thank you!

@sabmz - Thank you for posting your query. In order to verify :

  1. Please run describe_data_set() and describe_analysis_definition() calls into your source account for the specified dataset and analysis respectively via CLI or SDK.
  2. Get the JSON metadata
  3. Validate and confirm that those don’t contain any reference to the parameter that the error message is referring

If that doesn’t help you to identify the issue, then try to raise a case with AWS Support Team and they can help you with that. Hope this helps!

2 Likes