Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Refer below mentioned steps depending on the cause if there is an issue in syncing openmrs to openerp. Please note that this are troubleshooting steps and need to be careful while executing any of the steps on any Production environment. 

1) Check if bahmni-erp-connect service is running by :

sudo service bahmni-erp-connect status

If it is not running then do : sudo service bahmni-erp-connect start

2) If bahmni-erp-connect service is already running then need to check openerp username and password below and after updating them to required ones we need to restart bahmni-erp-connect service :

Path : /opt/bahmni-erp-connect/bahmni-erp-connect/WEB-INF/classes

Filename : atomfeed.properties

openerp.user=admin (default username)

openerp.password=password (default password)

3) If still sync is unable to happen between openmrs to openerp then need to check markers table of openerp database :

- psql -Uopenerp;

- select * from markers;

Verify if columns “last_read_entry_id” and “feed_uri_for_last_read_entry” have the correct entries for corresponding feed_uri.

Postman extension in chrome can you be used to check for the latest atomfeeds or specific atomfeeds.

- Also need to check if there are any entries in failed_events table in openerp database :

- psql -Uopenerp;

- select * from failed_events;

Need to analyse the entries in failed_events table by reading the contents in “error_message” column in failed_events table and proceed accordingly.

Please refer Atom Feed Based Synchronization in Bahmni  for Details on Atom Feed Based Sync.

4) In Openerp: Sales --> Configuration --> Order Type Shop – Shop Mapping :

Order Type : Drug Order

Shop : Implementation Specific Shop name

Local Shop : Keep it blank

Location Name : Keep it blank.

- Restart openerp service : sudo service openerp restart

5) In Openerp: Sales --> Configuration --> Units to be Synced :

- Should have all the Drug Units added whatever is present in Bahmni with the exact names.

e.g : Capsule(s), Tablet(s)

  • No labels