Import instances from DCM4CHEE 2 to ARC failed with restful service

258 views
Skip to first unread message

Lucas Sousa

unread,
Dec 21, 2022, 8:45:59 AM12/21/22
to dcm4che
I'm trying to import instances from my old archive using IMPORT-RS but I keep getting the same error: 
Response Internal Server Error caused by java.lang.IllegalArgumentException: Illegal character in path at index 0: DICMUL�OBUI1.2.840.10008.5.1.4.1.1.1UI81.2.392.200036.9125.9.0.2049141748.252201692.2201912959UI1.2.840.10008.1.2.4.70UI1.2.40.0.13.1.1.1SHdcm4che-1.4.3CS

Already try with several different dicom files from my company and no luck, I've made a simple bash script to import the files:
#!/bin/bash

source=/dicom/
curl_bin=/usr/local/bin/curl

for f in $(find $source-type f); do
        echo "File: $f"
        $curl_bin -X 'POST' \
        'http://192.168.0.84:8080/dcm4chee-arc/aets/mobilemed/rs/instances/storage/migrate' \
        -H 'Accept: application/dicom+xml' \
        -H 'Content-Type: text/*' \
        --data-binary @$f \
        --output -
done

I've also try running directly from the command line as stated in the article: Import Instances on Storage · dcm4che/dcm4chee-arc-light Wiki · GitHub, same error, I really don't know which character is causing the problem, I'm going to attach a sample file I'm trying to send.
sample.dcm
log_error.txt

Vrinda Nayak

unread,
Dec 25, 2022, 12:28:18 AM12/25/22
to dcm4che
What is the configuration of migrate Storage Descriptor?
Message has been deleted

Lucas Sousa

unread,
Dec 29, 2022, 11:06:27 AM12/29/22
to dcm4che

Hello, Vrinda
I'll attach the screenshots from the configuration of the storage descriptor.
Screenshot 2022-12-29 125957.png
Screenshot 2022-12-29 130025.png

ty...@anzer.com

unread,
Jan 9, 2023, 1:31:01 PM1/9/23
to dcm4che
Is there solution? I am trying to use article https://github.com/dcm4che/dcm4chee-arc-light/wiki/Import-Instances-on-Storage and getting similar error 
Illegal character in opaque part at index 2: C:\PACSHIST\FS1\HISTORY\2.DCM
where C:\PACSHIST\FS1\HISTORY\2.DCM is dicom file I am trying to create a reference in dcm4chee arc light.
I am using Windows server 2019,  dcm4chee-arc-5.20.0 with sql server

Vrinda Nayak

unread,
Jan 16, 2023, 10:41:53 AM1/16/23
to dcm4che
Used your storage descriptor config and sample DICOM file to match with configured pathFormat in dockerized archive setup and successfully imported the file. See attached zipped file with docker-compose / configuration and other settings and match it with yours, as I do not know if you've started archive using manual / dockerized setup.
importInstances-dcm4cheForum.zip
Reply all
Reply to author
Forward
0 new messages