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)
[...]
{
"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 "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"]) 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"])</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