DIMSE Failed to receive message

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
vignesh
Posts: 9
Joined: Mon, 2020-01-20, 11:44

DIMSE Failed to receive message

#1 Post by vignesh »

Hi,

I have used StoreSCP to receive DICOM Image.
Transfer Syntax is : 1.2.840.10008.1.2.4.70
SOP Class UID is : 1.2.840.10008.5.1.4.1.1.1.1

while trying to send dicom from storageSCU it shows below error:

Code: Select all

  
   E: 0006:020e DIMSE Failed to send message
   E: Store SCU Failed: 0006:020e DIMSE Failed to send message
Using another SCU we sent dicom to StoreSCP.
StoreSCP-shows below errors :

Code: Select all

   E: DcmSequenceOfItems: Parse error in sequence (7fe0,0010), found (0000,0000) instead of sequence delimiter (fffe,e0dd)
   W: DIMSE Warning: (STORESCU,STORESCP): DIMSE receiveDataSetInMemory: dset->read() Failed (Sequence Delimitation Item missing)
   W: closing unflushed DcmInputBufferStream, loss of data!
   E: Store SCP Failed: 0006:020d DIMSE Failed to receive message
   E: DIMSE failure (aborting association): 0006:020d DIMSE Failed to receive message

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: DIMSE Failed to receive message

#2 Post by Michael Onken »

Hi,

could you use -d option on storescu and storescp and post the last few debug messages before the error?

Also, try dcmdump on the file to see whether DCMTK can generally parse it.

Best regards,
Michael

vignesh
Posts: 9
Joined: Mon, 2020-01-20, 11:44

Re: DIMSE Failed to receive message

#3 Post by vignesh »

Hi,

when i sent Dicom from StoreSCU. It shows below errors :

Code: Select all

D: $dcmtk: storescu v3.6.4 2018-11-29 $
D: 
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
I: checking input files ...
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    
D: Their Implementation Version Name: 
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    STORESCU
D: Called Application Name:     ANY-SCP
D: Responding Application Name: ANY-SCP
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:   Context ID:        2 (Proposed)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =BigEndianExplicit
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 4123 + 6 bytes PDU header
D: Only dumping 512 bytes.
D:   02  00  00  00  10  1b  00  01  00  00  41  4e  59  2d  53  43
D:   50  20  20  20  20  20  20  20  20  20  53  54  4f  52  45  53
D:   43  55  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  1b  01  00  00  00  40  00  00  13  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   2e  31  21  00  00  1b  03  00  00  00  40  00  00  13  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e
D:   32  21  00  00  1b  05  00  00  00  40  00  00  13  31  2e  32
D:   2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31
D:   21  00  00  1b  07  00  00  00  40  00  00  13  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  32  21
D:   00  00  1b  09  00  00  00  40  00  00  13  31  2e  32  2e  38
D:   34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31  21  00
D:   00  1b  0b  00  00  00  40  00  00  13  31  2e  32  2e  38  34
D:   30  2e  31  30  30  30  38  2e  31  2e  32  2e  32  21  00  00
D:   1b  0d  00  00  00  40  00  00  13  31  2e  32  2e  38  34  30
D:   2e  31  30  30  30  38  2e  31  2e  32  2e  31  21  00  00  1b
D:   0f  00  00  00  40  00  00  13  31  2e  32  2e  38  34  30  2e
D:   31  30  30  30  38  2e  31  2e  32  2e  32  21  00  00  1b  11
D:   00  00  00  40  00  00  13  31  2e  32  2e  38  34  30  2e  31
D:   30  30  30  38  2e  31  2e  32  2e  31  21  00  00  1b  13  00
D:   00  00  40  00  00  13  31  2e  32  2e  38  34  30  2e  31  30
D:   30  30  38  2e  31  2e  32  2e  32  21  00  00  1b  15  00  00
D:   00  40  00  00  13  31  2e  32  2e  38  34  30  2e  31  30  30
D:   30  38  2e  31  2e  32  2e  31  21  00  00  1b  17  00  00  00
D:   40  00  00  13  31  2e  32  2e  38  34  30  2e  31  30  30  30
D:   38  2e  31  2e  32  2e  32  21  00  00  1b  19  00  00  00  40
D:   00  00  13  31  2e  32  2e  38  34  30  2e  31  30  30  30  38
D:   2e  31  2e  32  2e  31  21  00  00  1b  1b  00  00  00  40  00
D: 
D: Parsing an A-ASSOCIATE PDU
D: Transport connection: TCP/IP, unencrypted.
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    1.2.276.0.7230010.3.0.3.6.5
D: Their Implementation Version Name: OFFIS_DCMTK_365
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    STORESCU
D: Called Application Name:     ANY-SCP
D: Responding Application Name: ANY-SCP
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianExplicit
D:   Context ID:        2 (Accepted)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =BigEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 16372)
I: Sending file: /home/ubuntu33/dicoms/Issues/380/I0010001
D: DcmMetaInfo::checkAndReadPreamble() TransferSyntax="Little Endian Explicit"
D: DcmDataset::read() TransferSyntax="JPEG Lossless, Non-hierarchical, 1st Order Prediction"
I: Converting transfer syntax: JPEG Lossless, Non-hierarchical, 1st Order Prediction -> Little Endian Explicit
I: Sending Store Request (MsgID 1, DX)
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type                  : C-STORE RQ
D: Message ID                    : 1
D: Affected SOP Class UID        : DigitalXRayImageStorageForPresentation
D: Affected SOP Instance UID     : 2.16.840.1.114440.1.4.1.954.3836.20140702.152533890.13398390
D: Data Set                      : present
D: Priority                      : medium
D: ======================= END DIMSE MESSAGE =======================
W: DIMSE Warning: (STORESCU,ANY-SCP): sendMessage: unable to convert dataset from 'JPEG Lossless, Non-hierarchical, 1st Order Prediction' transfer syntax to 'Little Endian Explicit'
E: Store Failed, file: /home/ubuntu33/dicoms/Issues/380/I0010001:
E: 0006:020e DIMSE Failed to send message
E: Store SCU Failed: 0006:020e DIMSE Failed to send message
I: Aborting Association

If i sent Dicom from another StoreSCU , StoreSCP Displays below Errors :

Code: Select all

D: $dcmtk: storescp v3.6.5 2019-10-28 $
D: 
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Association Received: 192
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 211 + 6 bytes PDU header
D:   01  00  00  00  00  d3  00  01  00  00  53  54  4f  52  45  53
D:   43  50  20  20  20  20  20  20  20  20  53  54  4f  52  45  53
D:   43  55  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  20  00  00  3d  01  00  00  00  30  00  00  1b  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  35  2e  31
D:   2e  34  2e  31  2e  31  2e  31  2e  31  40  00  00  16  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e
D:   34  2e  37  30  50  00  00  31  51  00  00  04  00  00  40  00
D:   52  00  00  1c  31  2e  32  2e  38  32  36  2e  30  2e  31  2e
D:   33  36  38  30  30  34  33  2e  32  2e  31  35  34  35  2e  34
D:   55  00  00  05  33  2e  33  2e  30
D: Parsing an A-ASSOCIATE PDU
I: Association Received
D: Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name:   OFFIS_DCMTK_365
D: Their Implementation Class UID:    1.2.826.0.1.3680043.2.1545.4
D: Their Implementation Version Name: 3.3.0
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    STORESCU
D: Called Application Name:     STORESCP
D: Responding Application Name: 
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =JPEGLossless:Non-hierarchical-1stOrderPrediction
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
D: Constructing Associate AC PDU
I: Association Acknowledged (Max Send PDV: 16372)
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name:   OFFIS_DCMTK_365
D: Their Implementation Class UID:    1.2.826.0.1.3680043.2.1545.4
D: Their Implementation Version Name: 3.3.0
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    STORESCU
D: Called Application Name:     STORESCP
D: Responding Application Name: STORESCP
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =DigitalXRayImageStorageForPresentation
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =JPEGLossless:Non-hierarchical-1stOrderPrediction
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Store Request
D: ===================== INCOMING DIMSE MESSAGE ====================
D: Message Type                  : C-STORE RQ
D: Presentation Context ID       : 1
D: Message ID                    : 1
D: Affected SOP Class UID        : DigitalXRayImageStorageForPresentation
D: Affected SOP Instance UID     : 2.16.840.1.114440.1.4.1.954.3836.20140702.152533890.13398390
D: Data Set                      : present
D: Priority                      : medium
D: ======================= END DIMSE MESSAGE =======================
D: DcmDataset::read() TransferSyntax="JPEG Lossless, Non-hierarchical, 1st Order Prediction"
E: DcmSequenceOfItems: Parse error in sequence (7fe0,0010), found (0000,0000) instead of sequence delimiter (fffe,e0dd)
D: DcmSequenceOfItems::readSubItem() cannot create Sub Item (0000,0000)
W: DIMSE Warning: (STORESCU,STORESCP): DIMSE receiveDataSetInMemory: dset->read() Failed (Sequence Delimitation Item missing)
W: closing unflushed DcmInputBufferStream, loss of data!
E: Store SCP Failed: 0006:020d DIMSE Failed to receive message
E: DIMSE failure (aborting association): 0006:020d DIMSE Failed to receive message
Thanks!

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: DIMSE Failed to receive message

#4 Post by Michael Onken »

Hi,

for JPEG Lossless try storescu's option "-xs" and storescp's option "+xs".

If you want to solve the problem (selecting the right transfer syntaxes) in general, use dcmsend instead of storescu and dcmrecv instead of storescp, which both re smart enough to select transfer syntaxes matching your files automatically.

Best regards,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest