# Error during lookup

**URL:** <https://discourse.orthanc-server.org/t/error-during-lookup/1837>\
**Category:** Google Groups archive\
**Created:** [March 25, 2020, 2:52pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837 "2020-03-25T14:52:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![william](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@william](https://discourse.orthanc-server.org/u/william)\
**Post date:** [March 25, 2020, 2:52pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/1 "2020-03-25T14:52:10Z")

</div>

Hi

With the new version of Orthanc I am presenting an error when I request a search via the web with some particular criteria (for example, by the name of the patient), I get a notification top in the center that says error during lookup. If I ask for the options of all the patients or all the studies it shows me the information well (although only the first 100 studies). With other software such as Radiant, I can easily extract the information stored in the PACs.

By the way, this did not happen to me with the previous versions of Orthanc (19.10.2)

Thank you

William

[CAPTURE.pdf](https://discourse.orthanc-server.org/uploads/short-url/2cgrTXNXwn8FANDALlBeabDLnCO.pdf) (91.2 KB)

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [March 25, 2020, 4:07pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/2 "2020-03-25T16:07:06Z")

</div>

Hello,

Please post a minimal working example for us to be able to reproduce your issue:  
[https://book.orthanc-server.com/users/support.html#discussing-a-minimal-working-example](https://book.orthanc-server.com/users/support.html#discussing-a-minimal-working-example)

Sébastien-

---

<div class="post-metadata">

**Author:** ![Dkorthosurgery](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@Dkorthosurgery](https://discourse.orthanc-server.org/u/Dkorthosurgery)\
**Post date:** [March 25, 2020, 5:53pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/3 "2020-03-25T17:53:06Z")

</div>

I am getting the same error in the new version

many thanks,

Kyriakos

Τη Τετάρτη, 25 Μαρτίου 2020 - 4:52:10 μ.μ. UTC+2, ο χρήστης William Sanchez έγραψε:

---

<div class="post-metadata">

**Author:** ![william](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@william](https://discourse.orthanc-server.org/u/william)\
**Post date:** [March 25, 2020, 5:56pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/4 "2020-03-25T17:56:43Z")

</div>

Hi Sebastien

I install the latest version of Orthanc (20.3.1) and when I want to access the server via the web using chrome to search for patients who meet a certain restriction (for example, that the name contains MARIA) it gives me an error (see image capture1). If instead of filtering by name I request all the patients, it shows them to me without problem but with the restriction of only 100 patients (see image capture2). In my daily work I use the Radiant software to access the server information, if through Radiant I request all the studies of the patients that contain the name MARIA it shows them to me without problems (see image capture3), in this case I have 2371 patients. Attached also the server log file, indicates that the server is working without problems.

Until yesterday I had version 19.10.2 installed on the servers and I did not have this problem. I do not work Orthanc via web but I know that other people do, I think they should check to see what is happening in the new version.

Greetings and good luck to all of us who are working on the front line of this global pandemic

William

[CAPTURE1.pdf](https://discourse.orthanc-server.org/uploads/short-url/2fAJgAueHY9sULHGhus1OgK67pC.pdf) (102 KB)

[CAPTURE2.pdf](https://discourse.orthanc-server.org/uploads/short-url/2a9QxsGOlT0xUM1sqXmbVVDMdwa.pdf) (105 KB)

[CAPTURE3.pdf](https://discourse.orthanc-server.org/uploads/short-url/ma9wlVoM5Gl1W4p1BszCmmB61m2.pdf) (232 KB)

[Orthanc.log.20200324-184156.2768](https://discourse.orthanc-server.org/uploads/short-url/zHEGbR8381op7nGxPKWuwHfeW55.2768) (5.89 KB)

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [March 26, 2020, 6:24am UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/5 "2020-03-26T06:24:31Z")

</div>

Hello,

Thanks for these instructions, I have been able to reproduce your issue.

The problem lies with the JavaScript code of OrthancExplorer. When doing a lookup, OrthancExplorer injects a wildcard “\*” constrain on the Study Date, which is not compliant with the DICOM standard, as wildcard matching is not allowed on DA value representation:  
[http://dicom.nema.org/medical/dicom/2020a/output/chtml/part04/sect\_C.2.2.2.4.html](http://dicom.nema.org/medical/dicom/2020a/output/chtml/part04/sect_C.2.2.2.4.html)

Orthanc 1.5.8 didn’t enforce this part of the standard, but Orthanc 1.6.0 does. A fix for OrthancExplorer has just been committed:  
[https://bitbucket.org/sjodogne/orthanc/commits/6dba4fa8a6cb42ae608015c8d858a4bb5781ee8a](https://bitbucket.org/sjodogne/orthanc/commits/6dba4fa8a6cb42ae608015c8d858a4bb5781ee8a)

Regards,  
Sébastien-

---

<div class="post-metadata">

**Author:** ![william](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@william](https://discourse.orthanc-server.org/u/william)\
**Post date:** [March 26, 2020, 11:56am UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/6 "2020-03-26T11:56:20Z")

</div>

Hi Sebastien

Thank you for quickly detecting and correcting the problem. A question, if 1.6.0 is downloaded again, are the changes already implemented?

Regards

William

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [March 26, 2020, 12:01pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/7 "2020-03-26T12:01:13Z")

</div>

No, you’ll have to wait for the next official release, or to compile from sources:  
[https://book.orthanc-server.com/faq/compiling.html#compiling](https://book.orthanc-server.com/faq/compiling.html#compiling)

---

<div class="post-metadata">

**Author:** ![william](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@william](https://discourse.orthanc-server.org/u/william)\
**Post date:** [March 26, 2020, 12:17pm UTC](https://discourse.orthanc-server.org/t/error-during-lookup/1837/8 "2020-03-26T12:17:03Z")

</div>

OK, no problem

William
