# "failed to set suffix" error following DICOM anonymization 

**URL:** <https://discourse.slicer.org/t/failed-to-set-suffix-error-following-dicom-anonymization/5404>\
**Category:** Support\
**Tags:** dicom\
**Created:** [January 17, 2019, 5:41pm UTC](https://discourse.slicer.org/t/failed-to-set-suffix-error-following-dicom-anonymization/5404 "2019-01-17T17:41:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chloe](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@chloe](https://discourse.slicer.org/u/chloe)\
**Post date:** [January 17, 2019, 5:41pm UTC](https://discourse.slicer.org/t/failed-to-set-suffix-error-following-dicom-anonymization/5404/1 "2019-01-17T17:41:37Z")

</div>

Hi,

I have some anonymized DICOM files that I am trying to load into Slicer. I can load the studies into the DICOM browser. However, when I try to display them, I get the following error:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/e/5ec5eec6c8c2a7168408c156ae36fda1c00db566.png)

More details on how I’m anonymizing the data:

- Instead of deleting/replacing PHI, I create a new DICOM file and only copy/replace what I need to. This is very similar to what’s done [here](https://github.com/16-Bit-Inc/dicom-anonymizer)
- I have verified that I am including all of the required DICOM fields, as specified [here](https://www.pclviewer.com/help/required_dicom_tags.htm) and [here](https://www.slicer.org/wiki/Documentation/Nightly/FAQ/DICOM)
- I have tried different DICOM readers (DCMTK vs GDCM), but both lead to the same error.

I am using **Slicer 4.8.1**.

Thank you!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 17, 2019, 6:36pm UTC](https://discourse.slicer.org/t/failed-to-set-suffix-error-following-dicom-anonymization/5404/2 "2019-01-17T18:36:00Z")

</div>

You might have better luck with the latest release or nightly version, but probably there’s something incorrectly formatted in the anonymized data. I’d suggest using [DicomCleaner](http://www.dclunie.com/pixelmed/software/webstart/DicomCleanerUsage.html). At least use that for debugging your script.
