# Problem of retrieve(query work but retrieve dead)

**URL:** <https://discourse.slicer.org/t/problem-of-retrieve-query-work-but-retrieve-dead/929>\
**Category:** Support\
**Tags:** dicombrowser\
**Created:** [August 23, 2017, 4:31am UTC](https://discourse.slicer.org/t/problem-of-retrieve-query-work-but-retrieve-dead/929 "2017-08-23T04:31:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ningrong\_Ye](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@Ningrong\_Ye](https://discourse.slicer.org/u/Ningrong_Ye)\
**Post date:** [August 23, 2017, 4:31am UTC](https://discourse.slicer.org/t/problem-of-retrieve-query-work-but-retrieve-dead/929/1 "2017-08-23T04:31:01Z")

</div>

Hi all,  
I’m using Redhat7, installed Slicer-4.7.0-2017-08-16-linux-amd64

Here is my problem,  
I try to query from our hospital’s server.  
I work, I can get all patients data.  
But, I can’t retrieve any from the server.(I try both C-get and C-move both are not work )  
from terminal I found:

```
I: Requesting Association
I: Association Accepted (Max Send PDV: 28660)
Setting Retrieve Parameters
Sending Move Request
I: Sending C-MOVE Request (MsgID 1)
I: Received C-MOVE Response (Failed: IdentifierDoesNotMatchSOPClass)
setting value to 0
E: Identifier does not match SOP class in C-MOVE response
MOVE response receveid with status: Failed: IdentifierDoesNotMatchSOPClass
MOVE request failed, server does report error
MOVE request failed: Status Detail: 
# Dicom-Data-Set
# Used TransferSyntax: Little Endian Implicit
(0000,0901) AT (0000,0600) # 4, 1 OffendingElement
(0000,0902) LO [MOVE_REQUEST_IMPROPERLY_FORMATED] # 32, 1 ErrorComment

```

then I try to use Steve Pieper’s advice

> [@Query and Retrieve](https://discourse.slicer.org/t/query-and-retrieve/378/4):
>
> A couple suggestions:
> 
> check if CGET is supported on your scanner. If not, you need to be running the Listener on the Slicer side and your scanner needs to be configured to be able to send to it.
> 
> the Slicer listener runs as an independent process (storescp) so you can use our OS tools to look at that process to see what the command line arguments are and use the DCMTK documentation to understand how those map to what your scanner expects.
> 
> Often debugging is easiest by using the command line tools independent of Slicer to confirm all the settings and then copy them to Slicer.
> 
> Here are some notes about using dcmtk command line tools for storage, query:
> 
> [CTSC:ARRA:Mockup - NAMIC Wiki](https://www.na-mic.org/Wiki/index.php/CTSC:ARRA:Mockup#PACS)
> 
> And a test at the CTK level that shows how the communication works and it might give you some clues:

I download and install dcmtk,  
Also findscu works, but movescu not;  
here is the script:  
` movescu --patient --key 0020,000d=1.2.840.113619.2.327.3.1695170825.707.1503019605.111 --output-directory /home1/try --write-file --aetitle MYAT --call SERVER IP_address Port`  
result is:  
` W: Move response with error status (Failed: IdentifierDoesNotMatchSOPClass)`

I will appreciate any suggestions.  
Thanks  
Ningrong

---

<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:** [August 23, 2017, 4:32am UTC](https://discourse.slicer.org/t/problem-of-retrieve-query-work-but-retrieve-dead/929/2 "2017-08-23T04:32:32Z")

</div>

A post was merged into an existing topic: [Query worked but retrieve didn’t](https://discourse.slicer.org/t/query-worked-but-retrieve-didnt/928)

---

<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:** [August 23, 2017, 4:32am UTC](https://discourse.slicer.org/t/problem-of-retrieve-query-work-but-retrieve-dead/929/3 "2017-08-23T04:32:32Z")

</div>


