AddressConfigurationLoader.loadAddressConfiguration and Failed to import mapping org.openmrs.module.openconceptlab

I am new to openmrs. I encountered two major errors while setting up an instance of openmrs for refapp 3.5.0, which has prevented me from completing the setup. Error 2 looks like it keeps repeating in a loop. Please importantly i want to use ocl data model sample in my openmrs instance. Can someone help?

  1. ERROR - AddressConfigurationLoader.loadAddressConfiguration(67) |2025-10-26T02:12:18,615| Address hierarchy configuration file appears invalid, skipping the loading process @jandon
  2. . ERROR - ImportTask$1.run(108) |2025-10-26T02:23:17,821| Failed to import mapping org.openmrs.module.openconceptlab.client.OclMapping@3845e328[externalId=38512ABBBBBBBBBBBBBBBBBBBBBBBBBBBBBB] org.openmrs.module.openconceptlab.importer.ImportException: Cannot save mapping /orgs/CIEL/sources/CIEL/mappings/43126/ at org.openmrs.module.openconceptlab.importer.Saver.saveMapping(Saver.java:527) ~[openconceptlab.jar:?] at org.openmrs.module.openconceptlab.importer.ImportTask$1.run(ImportTask.java:99) ~[openconceptlab.jar:?] at org.openmrs.api.context.Daemon.lambda$runInDaemonThreadInternal$5(Daemon.java:452) ~[openmrs-api-2.7.6.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_202] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202] Caused by: org.openmrs.module.openconceptlab.importer.SavingException: Cannot create mapping from concept with URL /orgs/CIEL/sources/CIEL/concepts/110099/, because the concept has not been imported at org.openmrs.module.openconceptlab.importer.Saver.saveMapping(Saver.java:362) ~[openconceptlab.jar:?] … 7 more

@veronica are these the concepts that you were resolving?

This is a known issue that we are in the process of fixing, I believe. That said, it usually doesn’t stop the instance from starting up. The second error would seem like its running on a loop because its logging it for different concepts. Did you stop the process when the error popped up? Try letting it run regardless, and the instance should spin up

2 Likes

@dKayiwa. I left the open sdk to run completely. I think it is fine now. I tested by subscribing to Openconceptlab and it was sucessfully imported. Also activated Demo data sample.

Thanks for your response

@nethmi Thanks for your response, much appreciated. I allowed it to run completely and i think it is fine now.

@jandon a temporary fix for the Address Hierarchy config is providing an empty content package namespace:

content.referenceapplication-demo.namespace=

(Make this override in your distro.properties file)

@ Samuel32. I have made the temporary fix but still getting same error output

ERROR - AddressConfigurationLoader.loadAddressConfiguration(67)| 2025-10-29T08:07:47,644| Address hierarchy configuration file appears invalid, skipping the loading process:

Thank you

@jandon According to the screenshot provided seems u didn’t save the your distro.properties. Could u try saving it and re-running your server

@ jonathan. I saved it. No changes

Thanks