FHIR Chat · Errors when upgrading to 5.2 from 5.0, Could not locate o... · hapi

Stream: hapi

Topic: Errors when upgrading to 5.2 from 5.0, Could not locate o...


view this post on Zulip Hershil Patel (Feb 05 2021 at 23:48):

I am trying to upgrade from using hapi 5.0 to 5.2. However, my services are now running into an error. For example the following code works in 5.0 but fails in 5.2:

Bundle bundle = ourClient.search().forResource("Patient").returnBundle(Bundle.class).count(1000).execute();

I get an error "Could not locate ordinal parameter [2], expecting one of [1]". I am having trouble debugging what is causing this issue, do I need to change how I am querying?

I have tracked the error down to hibernateQuery.setParameter while the args are [Patient, 1000]

https://github.com/hapifhir/hapi-fhir/blob/v5.2.0/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/sql/SearchQueryExecutor.java#L117


Last updated: Apr 12 2022 at 19:14 UTC