anonymization causes prearchive error (1.8.0.1)

50 views
Skip to first unread message

Daniel Drucker

unread,
Mar 26, 2021, 12:29:11 PM3/26/21
to xnat_discussion
Attached is an example file. If anonymization is off, this get added just fine.

added as the anonymization script for the Project, then I get an error in the prearchive.  

errorprearchive.png

The details button gives:

XNAT has encountered an error with your request:
Exception: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
If this error continues to occur, please contact your system administrator with information about how to recreate the problem.


Any ideas? 

IM-0001-0027.dcm

Moore, Charlie

unread,
Mar 26, 2021, 12:41:07 PM3/26/21
to xnat_di...@googlegroups.com
This is the first script from this page, right: https://wiki.xnat.org/xnat-tools/dicombrowser ? You're running into the warning: "WARNING: this script removes so much metadata that the resulting files are generally unsuitable for upload to XNAT." Essentially, this script is way too heavy-handed to be used with XNAT (or really, used at all, to be honest). At the bare minimum, XNAT will not be able to do anything with data after running this script because it's deleting all of the SOP Instance, Study Instance, and Series Instance UIDs, but there's likely going to be other major issues besides just that.

Thanks,
Charlie

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Daniel Drucker <ddru...@mclean.harvard.edu>
Sent: Friday, March 26, 2021 11:29 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [WARNING: UNSCANNABLE EXTRACTION FAILED][XNAT Discussion] anonymization causes prearchive error (1.8.0.1)
 

* External Email - Caution *

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/18e40115-240d-4459-a054-5e0dc806ce45n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Daniel Drucker

unread,
Mar 26, 2021, 12:43:28 PM3/26/21
to xnat_discussion

Well, that explains it!  I found that script via https://wiki.xnat.org/workshop-2016/step-4-of-8-write-anonymization-scripts-29032852.html which doesn't carry that warning.

I'll try something a little less heavy handed. I'm sure that was the problem. Thanks!
Reply all
Reply to author
Forward
0 new messages