-
Notifications
You must be signed in to change notification settings - Fork 501
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
Export Errors: DDI, HTML DDI have issues #8036
Comments
This is a bit confusing... The DDI error does appear to be happening on demo.dataverse.org ("confirmed on 5.5"); example: https://demo.dataverse.org/api/datasets/export?exporter=ddi&persistentId=doi%3A10.70122/FK2/BRJLGV - the outer It could be caused by specific metadata of course... but the above dataset on demo doesn't have much metadata at all - it's a bare bones dataset with 3 files. |
P.S. Not only the closing Hmmmm. |
Kevin, check out this dataset I just created and published on internal: I'm having a bad feeling that it's working w/ S3... but not when the export lives on a filesystem. This would explain the fact that it's working in prod. (it's not impossible; that we flush some buffers in that export, in a way that fails differently, depending on the physical driver... but that would still be quite weird!) |
@poikilotherm Thanks! I'll take a look, but... When you say "refactored"... how broken were they? |
But, I CANNOT reproduce this on my own build (develop branch); these DDI exports are just working for me, regardless of the type of dataset or where they are written. Is there a chance that both demo and dataverse-internal are broken in some similar way, outside of the application itself? Some metadata block update that was applied to both of them? - idk. OK, I've already spent more time looking into this than I could afford... |
OK, I've identified the missing step, still trying to isolate issue: I've restricted 2 of 3 files. Doesn't happen with only 1 or 2 restricted files. Doesn't need terms of access. @landreev So, the special sauce is this: 1 unrestricted tabular file, 1 restricted non tabular file, with or without request access/terms of access. This causes the problem. Note that I've tried many combinations and if the unrestricted file is non tabular it works. |
Thanks! I feel bad now, having missed this part last night. |
Yep -
continue; not return; Otherwise, the restricted file causes you to exit the loop through files and, if you've already had a tabular file, you never write the closing "dataDscr" element, which means the writeEndElement() that is supposed to close the overall codeBook element just ends the dataDscr element and leaves the codeBook unclosed.
|
Discovered in 5.6 dev but confirmed on 5.5.
DDI export shows an error at the top of the export:
This page contains the following errors:
error on line 1 at column 30220: Extra content at the end of the document
Below is a rendering of the page up to the first error.
HTML DDI Codebook export just shows a blank page.
The text was updated successfully, but these errors were encountered: