problem to sink data from bahmni to openelis

I updated bahmni to the latest version, now when i request for lab test, it fails to sync to openelis, tried to check failed_events in openmrs database, this is what it says.

| 28 | http://localhost:8052/openelis/ws/feed/patient/recent | 2016-10-20 05:58:16 | Failed processing event in feed [http://localhost:8052/openelis/ws/feed/patient/6] Location Uuid not foundjava.lang.IllegalArgumentException: Location Uuid not found at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getLocationByUuid(BahmniVisitLocationServiceImpl.java:43) at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getVisitLocation(BahmniVisitLocationServiceImpl.java:38) at org.openmrs.module.bahmniemrapi.visitlocation.BahmniVisitLocationServiceImpl.getVisitLocationUuid(BahmniVisitLocationServiceImpl.java:29) at sun.reflect.GeneratedMethodAccessor833.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy260.getVisitLocationUuid(Unknown Source) at sun.reflect.GeneratedMethodAccessor833.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy292.getVisitLocationUuid(Unknown Source) at org.openmrs.module.bahmniemrapi.encountertransaction.service.VisitIdentificationHelper.getVisitFor(VisitIdentificationHelper.java:33) at org.bahmni.module.elisatomfeedclient.api.mapper.AccessionHelper.mapToNewEncounter(AccessionHelper.java:89) at org.bahmni.module.elisatomfeedclient.api.worker.OpenElisAccessionEventWorker.process(OpenElisAccessionEventWorker.java:97) at org.bahmni.module.elisatomfeedclient.api.worker.OpenElisPatientFeedWorker.process(OpenElisPatientFeedWorker.java:17) at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.java:168) at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) at org.openmrs.module.atomfeed.transaction.support.AtomFeedSpringTransactionManager$1.doInTransaction(AtomFeedSpringTransactionManager.java:40) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:1 | tag:atomfeed.ict4h.org:9706997c-ddb4-4383-87f3-e15b37082865 | /openelis/ws/rest/accession/665bea24-c6e1-4ffb-bb69-63a79c68f6d1 | 381932337 | accession | 5 | patient |

Please check solution on this thread

Hi @sravanthi17 , thank you for reply,

I have tried the solution you suggested, deleted, markers from both openelis and openerp, and restarted the systems but still nothing shows on both openelis and openerp when i send lab request, not even when i create a new patient doesnt show up as customer on openerp

From which version did you upgrade ?

I think it was 0.76

Did you follow the upgrade instructions mentioned in https://bahmni.atlassian.net/wiki/display/BAH/Release+Notes

How did you upgrade ? Using Bahmni command line “bahmni install” command ? or vagrant box update ?

Hi @tumga, Please follow the Bahmni Wiki to setup labLocation on OpenELIS. This is a new configuration introduced in Bahmni Release-0.83 ( mentioned in Bahmni Release-0.86 Release notes) to synch the Result Location as the one configured in OpenELIS. When you upgrade as labLocation is not set the atomfeed sync failed with LocationUUID null Exception.

If the sync from OpenMRS to OpenELIS fails, then you need to check the OpenELIS failed_events.

Can you check markers table in OpenERP database and see if they are latest and then check for any sync errors.

Can you please check this thread and provide any feed about this?

Please guide me on this post.