NCEAS / metadig-checks

MetaDIG suites and checks for data and metadata improvement and guidance.
Apache License 2.0
8 stars 9 forks source link

Check error #363

Closed gothub closed 4 years ago

gothub commented 4 years ago

The check 'entity.attributeEnumeratedDomains.present.1' is returning this error:

Error in if (is.null(code) || nchar(code) <= 0) { :missing value where TRUE/FALSE needed

This happens when there are enumerated domains for an attribute, but no <codeDefinition>, for example:

          <measurementScale>
            <nominal>
              <nonNumericDomain>
                <enumeratedDomain enforced="yes">
                  <entityCodeList>
                    <entityReference>1160168360119</entityReference>
                    <valueAttributeReference>1160168360166</valueAttributeReference>
                    <definitionAttributeReference>1160168360150</definitionAttributeReference>
                  </entityCodeList>
                </enumeratedDomain>
              </nonNumericDomain>
            </nominal>
          </measurementScale>

This is from pid `bowdish.272.7'

gothub commented 4 years ago

Fixed in commit b2cee396beefe58bceadef6f8ebef5576b184606