Not able to Query to Efilm database

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

Not able to Query to Efilm database

#1 Post by ashishbme »

Hi,

i am writing Query/Retrieve SCU using Dcmtk 3.6.0 it is working fine with JDICOM,CONQUEST server. When i tried with Efilm version 4.2.0 and 3.4.0, it is not able to perform Query.While debugging i found my application able to establish association with Efilm and findSCU is returning normal (dfindscu.cc line number 245) after this when it is going to Release association (dfindscu.cc line number 269: cond = ASC_releaseAssociation(assoc);), it is not able to release association and showing cond.text() (0006,0303: UL finite state machine error,no action defined, state 7 event 10), i would appreciate if someone help me.

Thank you
Ashish

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

Re: Not able to Query to Efilm database

#2 Post by Michael Onken »

Hi,

Sorry, hard to say what happened with the details given, maybe the server already hung up itself?

Can you enable debug logging and send the log?

Best,
Michael

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

Re: Not able to Query to Efilm database

#3 Post by ashishbme »

Hi Michael,
Thank you for reply please find the log below
///////////////////////////////////////////////////////////////
WARN - ---------------------------
WARN - Find Response: 1 (Pending)
WARN -
# Dicom-Data-Set
# Used TransferSyntax: Little Endian Explicit
(0008,0020) DA [20151124] # 8, 1 StudyDate
(0008,0030) TM [075825] # 6, 1 StudyTime
(0008,0050) SH (no value available) # 0, 0 AccessionNumber
(0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
(0008,0054) AE [FINDSCU ] # 8, 1 RetrieveAETitle
(0008,0061) CS [MR] # 2, 1 ModalitiesInStudy
(0008,0080) LO [AZ. Osp.S.Giovanni B.Molinette] # 30, 1 InstitutionName
(0008,0090) PN (no value available) # 0, 0 ReferringPhysicianName
(0008,1030) LO [RM PROSTATA ] # 12, 1 StudyDescription
(0008,1040) LO [Risonanza Magnetica ] # 20, 1 InstitutionalDepartmentName
(0010,0010) PN [NAME^NONE ] # 10, 1 PatientName
(0010,0020) LO [NOID] # 4, 1 PatientID
(0010,0030) DA (no value available) # 0, 0 PatientBirthDate
(0010,0032) TM (no value available) # 0, 0 PatientBirthTime
(0010,0040) CS [M ] # 2, 1 PatientSex
(0020,000d) UI [1.3.6.1.4.1.5962.99.1.1699882287.1656588594.1457693828399.8.0] # 62, 1 StudyInstanceUID
(0020,0010) SH (no value available) # 0, 0 StudyID

WARN - DIMSE Warning: (FINDSCU,AE_TITLE): findUser: Status Success, but DataSetType!=NULL
WARN - DIMSE Warning: (FINDSCU,AE_TITLE): Assuming no response identifiers are present
ERROR - Association Release Failed: 0006:0316 DUL P-Data PDU arrived
ERROR - 0006:0316 DUL P-Data PDU arrived
///////////////////////////////////////////////////////////////////////////////////////////////
As we can see i am able to get query data but at the time of association release it is giving error.

Thank you
Ashish

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

Re: Not able to Query to Efilm database

#4 Post by Michael Onken »

Hi,

Your log shows two responses, one in status Pending which has actual response data.

Afterwards, the last response arrives with status Success. In the standard this must always be the last response, and that response must not contain any response data at all (but only notifies you of Success).
However, in your case the the server announces that there *is* data in the last response:

Code: Select all

WARN - DIMSE Warning: (FINDSCU,AE_TITLE): findUser: Status Success, but DataSetType!=NULL
findscu knows that this is not allowed in the standard, and assumes that the announcement is wrong and there is no data load:

Code: Select all

WARN - DIMSE Warning: (FINDSCU,AE_TITLE): Assuming no response identifiers are present
Now, findscu (and the underlying dcmnet library) is surprised since there *is* actuallly a data packet arriving:

Code: Select all

ERROR - Association Release Failed: 0006:0316 DUL P-Data PDU arrived
Now the connection is in error state, I assume that the server then hangs up (could also be that findscu does on that error, I did not look it up).

So, the server has a faulty behavior. You could build an option into findscu that lets you receive such an invalid last response. Right now there is nothing else you can do about it.

Best,
Michael

P.S: I dont know if you actually use findscu; otherwise put "your client code" where I wrote findscu

Post Reply

Who is online

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