# PACS sync failed

**URL:** <https://talk.openmrs.org/t/pacs-sync-failed/18243>\
**Category:** Bahmni\
**Tags:** bahmni\
**Created:** [May 30, 2018, 3:08pm UTC](https://talk.openmrs.org/t/pacs-sync-failed/18243 "2018-05-30T15:08:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjsanish](https://talk.openmrs.org/letter_avatar/mjsanish/32/6_22734026db12803ebb3e059622ac3534.png) [@mjsanish](https://talk.openmrs.org/u/mjsanish)\
**Post date:** [May 30, 2018, 3:08pm UTC](https://talk.openmrs.org/t/pacs-sync-failed/18243/1 "2018-05-30T15:08:21Z")

</div>

Trying to check PACS integration in Bahmni 0.90. But pacs syncing failing with following errors:

```auto
Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/2] 
Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality
	at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:42)
	at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.java:168)
	at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6)
	at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager$1.doInTransaction(AtomFeedHibernateTransactionManager.java:54)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51)
	at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68)
	at org.bahmni.module.pacsintegration.atomfeed.jobs.EncounterFeedJob.process(EncounterFeedJob.java:38)
	at org.bahmni.module.pacsintegration.atomfeed.ScheduledTasks$1.run(ScheduledTasks.java:79)
	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
	at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.bahmni.module.pacsintegration.exception.ModalityException: Unable to send the message to the modality 
Modality{id=1, name='DCM4CHEE', description='DCM4CHEE PACS', ip='192.168.33.10', port=2575, timeout=3000}
MSH|^~\&||||BahmniEMRBahmniEMR|||ACK|1|P|2.5
MSA|AR|1527692053468307|Missing required PID-5: Patient Name
	at org.bahmni.module.pacsintegration.services.ModalityService.processAcknowledgement(ModalityService.java:68)
	at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:40)
	at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57)
	at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37)
	... 17 more

```

---

<div class="post-metadata">

**Author:** ![dipakthapa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dipakthapa/32/20407_2.png) [@dipakthapa](https://talk.openmrs.org/u/dipakthapa)\
**Post date:** [June 6, 2018, 6:54am UTC](https://talk.openmrs.org/t/pacs-sync-failed/18243/2 "2018-06-06T06:54:11Z")

</div>

Your issue seems to be similar to as disussed in this thread.

> [@Bahmni not sending worklist queries to dcm4chee](https://talk.openmrs.org/t/bahmni-not-sending-worklist-queries-to-dcm4chee/11663/4):
>
> Got it, need to use the file [orm2dcm\_bahmni.xsl from here](https://github.com/Bahmni/bahmni-package/blob/master/bahmni-pacs/resources/dcm4chee/orm2dcm_bahmni.xsl) according to [this](https://bahmni.atlassian.net/wiki/display/BAH/Setup+DCM4CHEE+Server+with+Oviyam2).
