gridMetadata.assertUnique
Throw error if metadata rows are not unique
Syntax
Description
obj.assertUniqueobj.assertUnique([])
Checks that the rows of metadata for each dimension are unique. Throws an error if not.
obj.assertUnique(dimensions)
Checks that the rows of metadata for the specified dimensions are unique. Throws an error if not.
obj.assertUnique(…, header)
Customize the header in thrown error IDs.
Input Arguments
dimensions
string list | empty array
The names of dimensions that should be checked for unique metadata rows. Can only include dimensions defined in the metadata. If an empty array, checks the metadata for all dimensions.
header
string scalar
Header for thrown error IDs