issue with hapi-fhir-cli 8.2.0 migrate-database

37 views
Skip to first unread message

Andrea Caloni

unread,
Aug 4, 2025, 5:59:44 AMAug 4
to HAPI FHIR
Hello, 
I am trying to perform a database update, using hapi-fhir-cli, from version 6.6.0 to 8.2.0.
The database is Microsoft SQL server 2022.
When I start the command 
.\hapi-fhir-cli migrate-database ...
I get the ca.uhn.fhir.context.ConfigurationException:
HAPI-2563: System is configured in Partitioned ID mode but the database schema is not correct for this. Found HFJ_RESOURCE PK: [res_id]

Please note that Partitioned ID Mode has not ever been enabled, so we work in classical mode.
Do you have any suggestion to get this migration working ?

James Agnew

unread,
Aug 5, 2025, 2:55:57 PMAug 5
to Andrea Caloni, HAPI FHIR
Hi Andrea,

I was able to reproduce this by configuring the database to use lowercase identifiers. It's a bug.

A fix has been submitted here and should hopefully make the 8.4.0 release this month: https://github.com/hapifhir/hapi-fhir/pull/7174

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hapi-fhir/114f7097-dff9-494b-ab44-cbc128bc5557n%40googlegroups.com.
Message has been deleted

Andrea Caloni

unread,
Aug 8, 2025, 7:56:48 AMAug 8
to HAPI FHIR
Thank you, James !
Andrea

Reply all
Reply to author
Forward
0 new messages