# Add DATA - does not load

**URL:** <https://discourse.slicer.org/t/add-data-does-not-load/2109>\
**Category:** Support\
**Created:** [February 18, 2018, 4:15pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109 "2018-02-18T16:15:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 18, 2018, 4:15pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/1 "2018-02-18T16:15:26Z")

</div>

Operating system:Windows 10  
Slicer version:4.8.1  
Expected behavior: choose directory/fie to add.  
Actual behavior: I choose the directory I wish to add and nothing happens. It does not show up on the dialog box. After a while a get a message that it is not responding and I have to shut it down.  
Data that is already loaded I also cannot get to show up on the screen. I can select the file I want but when I press load it does not load.  
The new data that I wanted to import is a patched DICOM file.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 18, 2018, 5:49pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/2 "2018-02-18T17:49:20Z")

</div>

Drag-and-drop the folder that contains your files, choose to import as DICOM, then use DICOM module to load the image into the scene.

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 18, 2018, 8:54pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/3 "2018-02-18T20:54:17Z")

</div>

I tried that. But it is just sitting there, saying 0% done, for about the last hour.  
Which directory should I try to load? I have DICOM/pa001. It is recognising it as a DICOM file.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 18, 2018, 9:59pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/4 "2018-02-18T21:59:33Z")

</div>

Drag-and-drop pa001 folder. If it fails to load then please post the application log (menu: Help/Report a bug) or share the data set (make sure it is properly anonymized if it is human data).

---

<div class="post-metadata">

**Author:** ![danagood](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@danagood](https://discourse.slicer.org/u/danagood)\
**Post date:** [February 18, 2018, 11:12pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/5 "2018-02-18T23:12:34Z")

</div>

I’ve seen this happen when a zombie Slicer process is still running. Close  
your current instance, then check your task manager-\> processes and kill  
any lingerers.

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 19, 2018, 8:20am UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/6 "2018-02-19T08:20:05Z")

</div>

Ton of error message

SQL failed  
Bad SQL: SELECT InsertTimestamp FROM Images WHERE Filename == ?  
Error text: database disk image is malformed Unable to fetch row

A later message is

C:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct000.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct001.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct002.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct003.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct004.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct005.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct006.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct007.dcmC:/Users/pg13t/Desktop/3D Ortho Prints/TROH84507\_fixed/DICOM/pa001/st000/se000/ct008.dcmImported a DICOM directory, checking for extensions

The final one  
Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 413, in timerCallback  
self.promptForExtensions()  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 418, in promptForExtensions  
extensionsToOffer = self.checkForExtensions()  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 481, in checkForExtensions  
instance0 = slicer.dicomDatabase.filesForSeries(series)[0]  
IndexError: tuple index out of range

I cancel the import as it does not do anything. It doesn’t give me a %update on this one

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 19, 2018, 8:40am UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/7 "2018-02-19T08:40:33Z")

</div>

If I use the DICOM button to load previously used data sets I get the message:

Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 766, in loadCheckedLoadables  
self.examineForLoading()  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 677, in examineForLoading  
self.loadablesByPlugin, loadEnabled = self.getLoadablesFromFileLists(self.fileLists)  
TypeError: ‘NoneType’ object is not iterable  
Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 766, in loadCheckedLoadables  
self.examineForLoading()  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 677, in examineForLoading  
self.loadablesByPlugin, loadEnabled = self.getLoadablesFromFileLists(self.fileLists)  
TypeError: ‘NoneType’ object is not iterable  
Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 766, in loadCheckedLoadables  
self.examineForLoading()  
File “C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 677, in examineForLoading  
self.loadablesByPlugin, loadEnabled = self.getLoadablesFromFileLists(self.fileLists)  
TypeError: ‘NoneType’ object is not iterable

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 19, 2018, 12:46pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/8 "2018-02-19T12:46:04Z")

</div>

The DICOM database sem to be corrupted or in an incorrect location (not writeable by current user). Please try the solution described here: [Why I can not import DICOM?](https://discourse.slicer.org/t/why-i-can-not-import-dicom/204/10?u=lassoan)

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 21, 2018, 8:06pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/9 "2018-02-21T20:06:43Z")

</div>

I tried patching it again, then importing. I can’t see any problem on the patch log, but the import log says this

W: DcmItem: Non-standard VR ’ ’ (0a\00) encountered while parsing element (0004,1130), assuming 2 byte length field  
W: DcmItem: Non-standard VR ‘16’ (31\36) encountered while parsing element (5346,3959), assuming 2 byte length field  
W: DcmItem: Length of element (5346,3959) is odd  
W: DcmItem: Non-standard VR ’ 5’ (00\35) encountered while parsing element (0200,0000), assuming 2 byte length field  
W: DcmItem: Length of element (0200,0000) is odd  
W: DcmItem: Dataset not in ascending tag order, at element (0200,0000)  
W: DcmItem: Non-standard VR ‘CO’ (43\4f) encountered while parsing element (0000,4944), assuming 4 byte length field  
W: DcmItem: Length of element (0000,4944) is odd  
E: DcmElement: Unknown Tag & Data (0000,4944) larger (808464467) than remaining bytes in file  
W: DcmItem: Dataset not in ascending tag order, at element (0000,4944)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 21, 2018, 10:05pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/10 "2018-02-21T22:05:54Z")

</div>

This seems like an invalid/corrupted DICOM file. What did produce this file?

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 22, 2018, 7:56am UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/11 "2018-02-22T07:56:04Z")

</div>

It was produced by DICOM patcher

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 22, 2018, 8:06am UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/12 "2018-02-22T08:06:51Z")

</div>

There were no error messages on the patched files. The problem came when I tried to load it.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 22, 2018, 7:35pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/13 "2018-02-22T19:35:36Z")

</div>

> [@MSilent](#):
>
> It was produced by DICOM patcher

Where does the original data comes from (that you feed into DICOM patcher)?  
The DICOM patcher should not introduce those invalid tags that are reported to be found when you try to import the data.

You can also try all 3 available DICOM parsers (GDCM, DCMTK, archetype) and see if any of them is insensitive to the presence of invalid tags.

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 22, 2018, 7:38pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/14 "2018-02-22T19:38:24Z")

</div>

I’ve also tried to delete data sets from DICOM browser and it’s not letting me delete those. I try REMOVE or DELETE and neither works.  
It seems to be DICOM browser that I’m specifically having problems with

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 22, 2018, 7:58pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/15 "2018-02-22T19:58:33Z")

</div>

If you have trouble deleting the DICOM database content then you can clear the DICOM database folder or choose an empty folder (DICOM browser, \>\> icon in the top-right, `LocalDatabase`).

---

<div class="post-metadata">

**Author:** ![MSilent](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@MSilent](https://discourse.slicer.org/u/MSilent)\
**Post date:** [February 22, 2018, 8:31pm UTC](https://discourse.slicer.org/t/add-data-does-not-load/2109/16 "2018-02-22T20:31:58Z")

</div>

I rebooted the computer and that has fixed a lot of the problems. I’m guessing there was a background process going on. Thanks for the help
