Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Species Distribution - Validation Fails with multiple DistributionInfo elements #518

Closed
robblis opened this issue Feb 25, 2021 · 4 comments
Labels
deployed in reference validator Solution deployed in production
Milestone

Comments

@robblis
Copy link

robblis commented Feb 25, 2021

Hi Validator Team,

We are working on testing and fixing our Species Distribution returned XML.

We are getting the following Validation Errors due to more than one sd:distributionInfo element.

XML document 'service.xml', SpeciesDistributionUnit 'SpeciesDistributionUnitS.3001': The multiplicity of sd:countingMethod shall be 1. Found: '2'..
XML document 'service.xml', SpeciesDistributionUnit 'SpeciesDistributionUnitS.3001': The multiplicity of GeneralCountingUnitValue or Article17CountingUnitValue shall be 1. Found: '2'.
XML document 'service.xml', SpeciesDistributionUnit 'SpeciesDistributionUnitS.3001': The multiplicity of OccurrenceCategoryValue shall be 1. Found: '2'.
XML document 'service.xml', SpeciesDistributionUnit 'SpeciesDistributionUnitS.3001': The multiplicity of PopulationTypeValue shall be 1. Found: '2'.
XML document 'service.xml', SpeciesDistributionUnit 'SpeciesDistributionUnitS.3001': The multiplicity of ResidencyStatusValue shall be 1. Found: '2'.

In the schema, the sd:distributionInfo element has a 0-many cardinality.

We're unsure why the validator is throwing these errors. We've attached the Species Distribution XML.

We also are seeing the same issue with Geology when testing ge:Fold.

XML document 'service.xml', Fold 'geFold.3': The multiplicity of ThematicClassValue shall be 1. Found: '2'.
XML document 'service.xml', Fold 'geFold.4': The multiplicity of ThematicClassValue shall be 1. Found: '2'.

In the schema, the ge:themeClass has a 0-many cardinality. We've attached the GE Fold XML.

Can someone assist?

Thanks,
Robert

SpeciesDistributionUnit.zip

Geology_Fold.zip

@carlospzurita
Copy link
Contributor

Dear @robblis

We are checking the multiplicity of this elements in the TG and in the ETS developed and will get back to you with more feedback if a fix is needed on the validator.

Kind regards.

@carlospzurita
Copy link
Contributor

Dear @robblis

We are modifying the multiplicity checks for this test. Whenever we have the fix ready we will get back to you.

Kind regards.

@carlospzurita
Copy link
Contributor

Dear @robblis

We have published a fix for this issue on the staging instance. Could you please check it out and give us some feedback?

Thank you

@carlospzurita carlospzurita added ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing and removed under development labels Mar 11, 2021
@project-bot project-bot bot moved this from In progress to Staging: for acceptance in Validator issues Mar 11, 2021
@robblis
Copy link
Author

robblis commented Mar 12, 2021

Dear @carlospzurita,

We've re-ran the tests against Species Distribution and we don't see the multiplicity error being reported.

Thanks for getting this fixed,
Robert

@robblis robblis closed this as completed Mar 12, 2021
@carlospzurita carlospzurita added solved Solution developed and accepted, not yet deployed and removed ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing labels Mar 15, 2021
@carlospzurita carlospzurita moved this from Staging: for acceptance to Staging: in release planning in Validator issues Mar 15, 2021
@carlospzurita carlospzurita added deployed in reference validator Solution deployed in production and removed solved Solution developed and accepted, not yet deployed labels Mar 22, 2021
@project-bot project-bot bot moved this from Staging: in release planning to Production: latest release in Validator issues Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed in reference validator Solution deployed in production
Projects
Validator issues
  
Production: latest release
Development

No branches or pull requests

2 participants