Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v7.2.0 JPA-Starter] Transaction bundle Greater than 4000 char Fails with Error "Too Long" #5990

Open
ryckbirch opened this issue Jun 6, 2024 · 0 comments

Comments

@ryckbirch
Copy link

Submitting a transaction bundle with more than 4000chars of content to ../fhir/ fails with error message that the content is too long.

Steps to reproduce:

  1. Submit a content bundle greater than 4000chars in length. (our bundle had some 13563 lines)

System Details:
HAPI-FHIR version: 7.2.0
HAPI-FHIR-JPA-Starter version: 7.2.0
DB: AWS PostgreSQL
OS: docker-java-alpine-17

Error: ERROR: value too long for type character varying(4000) [see beginning of second block below]

Error Messages (edited to remove internal content)
2024-06-06 08:29:14.849 [http-nio-8080-exec-2] ERROR org.hibernate.orm.jdbc.batch [BatchImpl.java:293] HHH100501: Exception executing batch [java.sql.BatchUpdateException: Batch entry 3 insert into hfj_res_ver (res_deleted_at,res_encoding,res_version,has_tags,partition_date,partition_id,res_published,request_id,res_text,res_id,res_text_vc,res_type,res_ver,source_uri,res_updated,pid) values ((NULL),('JSON'),('R4'),('FALSE'::boolean),(NULL),(NULL),('2024-06-06 08:21:34.071-04'),(NULL),(NULL),('100142'::int8),('{"resourceType":"Composition","status":"final","type":{"coding":[{"system":"http:https://foundationmedicine.com/fhir/comppositiontype","code":"clinical-variant"}]},
....
,('166123'::int8)) was aborted: ERROR: value too long for type character varying(4000)
Location: File: varchar.c, Routine: varchar, Line: 648
Server SQLState: 22001 Call getNextException to see other errors in the batch.], SQL: insert into hfj_res_ver (res_deleted_at,res_encoding,res_version,has_tags,partition_date,partition_id,res_published,request_id,res_text,res_id,res_text_vc,res_type,res_ver,source_uri,res_updated,pid) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

COMMENTS:
The exact same transaction still works in 6.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant