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 5 Current »

OpenSRP connector is the backend service that pushes form submissions from client to OpenMRS via OpenMRS REST module. Being a REST backend service that pushes data to external system there is possibility that due to number of reasons it fails to push data to OpenMRS. In that case Form Submission is saved as it is and also logged as Failed Submission in error tracker module (under progress). Below are various errors thrown found in stacktrace and their possible solutions.

1) java.lang.NullPointerException at org.opensrp.connector.OpenmrsConnector......

Possible Reason:

  • If you find this error anywhere in stacktrace during a form submission or data sync between openmrs and opensrp, it shows that there has been some inconsistency between client code (or xls form) and the form submission sent was not in format expected by opensrp connector.
  • Another potential reason could be a bug that has skipped through the QA
  • Or the submitted form submission has any data that connector doesnot know to handle

Solutions:

  • Check your xls form and make sure that there is no row with missing openmrs_entity_id
  • Review xls form and make sure that no new person exists without mandatory openmrs attribute mappings (first_name, last_name, gender,birth_date, atleast one patient_identifier)
  • Encounter mappings encounter_location and encounter_date for form also exist and if form registers multiple entities encounter type for new entities is also specified in repeat group in column openmrs_entity_id.
  • If none of the above exist contact developers with full stacktrace and the steps to reproduce the problem.
  • No labels