If you are importing a large data set and it contains duplicate resources, you could run into this problem.
Keith
--
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 on the web visit
https://groups.google.com/d/msgid/hapi-fhir/545815c5-3116-43f2-90ee-f8c07f4614d1n%40googlegroups.com.
No PHI in Email: PointClickCare and Collective Medical, A PointClickCare Company, policies prohibit sending protected health information (PHI) by email, which may violate regulatory requirements. If sending PHI is necessary, please contact the sender for secure delivery instructions.
Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
2023-05-03 22:08:50.588 [batch2-work-notification-47] ERROR o.h.e.j.batch.internal.BatchingBatch [BatchingBatch.java:134] HHH000315: Exception executing batch [java.sql.BatchUpdateException: Batch entry 2 insert into hfj_forced_id (partition_date, partition_id, forced_id, resource_pid, resource_type, pid) values (NULL, NULL, 'direct-trust-20230501-4', 2755619, 'Organization', 2755319) was aborted: ERROR: duplicate key value violates unique constraint "idx_forcedid_type_fid"
Detail: Key (resource_type, forced_id)=(Organization, direct-trust-20230501-4) already exists. Call getNextException to see other errors in the batch.], SQL: insert into hfj_forced_id (partition_date, partition_id, forced_id, resource_pid, resource_type, pid) values (?, ?, ?, ?, ?, ?)
2023-05-03 22:08:50.588 [batch2-work-notification-47] WARN o.h.e.jdbc.spi.SqlExceptionHelper [SqlExceptionHelper.java:137] SQL Error: 0, SQLState: 235