$export-poll-status not working in Hapi 8.6.5

10 views
Skip to first unread message

Johanna Häusler

unread,
May 8, 2026, 1:39:33 AM (yesterday) May 8
to HAPI FHIR
Hello,

I have a long running batch2 job and need to check the status of it from outside of hapi, so I can not access the DB directly.
On my server (based on hapifhir starter) partitioning is not enabled (double checked that in the logs: 2026-05-08T05:22:30.984842986Z 2026-05-08 05:22:30.984 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:350] Partitioning is not enabled on this server).

If I try to perform the $export-poll-status operation, in Hapi a mapping exception is thrown:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "partitionedUrl" (class ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters), not marked as ignorable (17 known properties: "partitionId", "binarySecurityContextIdentifierSystem", "resourceTypes", "includeHistory", "exportId", "originalRequestUrl", "patientIds", "userData", "postFetchFilterUrls", "outputFormat", "since", "filters", "expandMdm", "exportStyle", "until", "groupId", "binarySecurityContextIdentifierValue"])
2026-05-07T14:41:09.980093973Z  at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 20] (through reference chain: ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters["partitionedUrl"])
2026-05-07T14:41:09.980096457Z   at ca.uhn.fhir.util.JsonUtil.deserialize(JsonUtil.java:92)
2026-05-07T14:41:09.980099041Z   at ca.uhn.fhir.batch2.model.JobInstance.getParameters(JobInstance.java:189)
2026-05-07T14:41:09.980101327Z   at ca.uhn.fhir.batch2.jobs.export.BulkDataExportProvider.exportPollStatus(BulkDataExportProvider.java:443)
2026-05-07T14:41:09.980127264Z   at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
2026-05-07T14:41:09.980130742Z   at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[...]

This behavior is reproducible on the hapifhir server as well: https://hapi.fhir.org/baseR4/swagger-ui/#/System%20Level%20Operations/post__export_poll_status. I tested it with a simple $reindex job and the response of the http request looks like this (feel free to test yourself with this jobId: "203459b6-355e-4f1e-bf6f-13174c02dc26":
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td>HAPI-2060: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field &quot;partitionedUrl&quot; (class ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters), not marked as ignorable (17 known properties: &quot;partitionId&quot;, &quot;binarySecurityContextIdentifierSystem&quot;, &quot;resourceTypes&quot;, &quot;includeHistory&quot;, &quot;exportId&quot;, &quot;originalRequestUrl&quot;, &quot;patientIds&quot;, &quot;userData&quot;, &quot;postFetchFilterUrls&quot;, &quot;outputFormat&quot;, &quot;since&quot;, &quot;filters&quot;, &quot;expandMdm&quot;, &quot;exportStyle&quot;, &quot;until&quot;, &quot;groupId&quot;, &quot;binarySecurityContextIdentifierValue&quot;]) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 20] (through reference chain: ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters[&quot;partitionedUrl&quot;])</td></tr></table></div>" }, "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-2060: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"partitionedUrl\" (class ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters), not marked as ignorable (17 known properties: \"partitionId\", \"binarySecurityContextIdentifierSystem\", \"resourceTypes\", \"includeHistory\", \"exportId\", \"originalRequestUrl\", \"patientIds\", \"userData\", \"postFetchFilterUrls\", \"outputFormat\", \"since\", \"filters\", \"expandMdm\", \"exportStyle\", \"until\", \"groupId\", \"binarySecurityContextIdentifierValue\"])\n at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 20] (through reference chain: ca.uhn.fhir.rest.api.server.bulk.BulkExportJobParameters[\"partitionedUrl\"])" } ] }

Can someone please give advice if that is a real bug in hapi or if there is another configuration that would control the existence of the "partitionedUrl" that causes the mapping to fail?

Thanks and kind regards,
Johanna
Reply all
Reply to author
Forward
0 new messages