You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P2: DataCite XML rejects empty funderName, blocks publish_doi for on004022 (and likely others) #459
`nemar admin publish approve on004022 --skip-ci-check -y` completed all earlier orchestrator steps but failed at `publish doi`:
```
[!] publish doi failed: DOI publication failed: EZID update error: bad request - error="ValidationError({'datacite': ['Metadata validation error: DocumentInvalid("Element '{http://datacite.org/schema/kernel-4}funderName': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '1'., line 57")...
```
The DataCite XML generated for the on004022 record contains a `` element (empty value). The DataCite schema enforces `minLength=1` on `funderName`, so EZID rejects the update.
Root cause hypothesis
`bidsToDataCite()` (or whichever pipeline stage emits the funder entries) iterates the BIDS `Funding`/`Acknowledgements` field and emits `...` even when the source value is empty / whitespace-only. On a real-life dataset with one well-formed funder and one blank entry, the XML contains both, the schema validator only flags the bad one, and EZID 400s the whole update.
Fix
In `backend/src/services/datacite.ts` (or wherever the funder loop lives), filter the funder list to drop entries whose normalized `funderName` is empty before serializing. Same defensive pass on `creatorName` / `contributorName` to head off the same class of bug.
Repro
Re-run `nemar admin publish approve on004022 --skip-ci-check -y` against the current state. Captured log: `/tmp/approve-on004022.log` (local).
Scope
Likely affects any OpenNeuro dataset whose `Funding` list has empty / whitespace-only entries. We were tracking #450 (push-order); this is a separate pipeline-quality bug that surfaced once #450's fix let us actually reach the DOI step.
Operator workaround for on004022
Edit the dataset's `.nemar/metadata.json` (or the source `dataset_description.json`) to drop the empty funder, commit, then re-run approve.
Discovered while recovering the 27 datasets from run 25769577607.
Activity
neuromechanist commentedon May 14, 2026
Merged via PR #466.