Bug #1418
closedMetacatUploadException when saving package
0%
Description
I created a package with the wizard then attempted to save the package (both
locally and to the server) and I got an error: MetacatUpload Exception in
EML200DataPackage!
<error>
cvc-complex-type.2.4.a: Invalid content starting with element 'methods'. One
of '{"":access, "":dataTable,"":spatialRaster, "":spatialVector,"":storedProcedu
re,"":view, "":otherEntity}' is expected.
</error>
when i click ok, it displays the same error again, then i click ok it appears
to save the package locally, but not to metacat.
Here's the console log:
removed from window list
MetacatUpload Exeption in EML200DataPackage!
<error>
cvc-complex-type.2.4.a: Invalid content starting with element 'methods'. One of
'{"":access, "":dataTable, "":spatialRaster, "":spatialVector, "":storedProcedur
e, "":view, "":otherEntity}' is expected.
</error>
Problem Saving
<error>
cvc-complex-type.2.4.a: Invalid content starting with element 'methods'. One of
'{"":access, "":dataTable, "":spatialRaster, "":spatialVector, "":storedProcedur
e, "":view, "":otherEntity}' is expected.
</error>
Updated by Chad Berkley over 20 years ago
It looks like the problem is that the methods element is being inserted out of
order in the document. The EML document morpho created had the following
order: contact, project, methods, access. The order in the schema is: contact,
methods, project, access.
Updated by Saurabh Garg over 20 years ago
Fixed. Eralier, Method and Project screens were not being inserted in right
order.