Hi all,
In our project we have developed our concepts (1000s of them), then we decided to import the CIEL database. The CIEL database from dropbox will replace all concepts tables that we have. So we decided to export our concepts first using metadata sharing module, then import the CIEL concepts to our MYSQL. after that we imported our concepts back again using the metadata sharing module.
Unfortunately, we have encountered the following error
I appreciate any advice in terms of how to solve the current issue on hand. I realized that many of the CIEL concepts have the same ID of the concepts that we developed. I am not sure how is it possible to keep all concepts and change the ID of the CIEL ones.
Just to check, you’re not doing this against a database with observations in it, are you? It is not okay to replace your legacy concept dictionary with CIEL, if you have existing obs, because it will change their meaning.
You are right @dkayiwa . I replaced the current version with 1.2 and I dont see the error anymore. This is great.
However, while I am finishing the import, I was stuck on page 5. I reviewed all assessment and tried to click “load next part” but it does not seem to work.
@yadamz try set the correct values for these global properties or settings: scheduler.username & scheduler.password
After saving, repeat the whole importation process.
@dkayiwa I tried it again however it didnt work. same result
However, what I did is trying to import smaller number of concepts (five instead of 1000s) . it worked fine. I imported the concepts successfully. is there a limit of how many concepts I can import?
@dkayiwa I tried 300 concepts and I ended up with this error
Task details
Failed (errors: 1)
Sun May 15 12:13:56 PDT 2016 - Saving import state
Sun May 15 12:13:56 PDT 2016 - Importing subpackage 1 of 1
Sun May 15 12:13:56 PDT 2016 - Resolving related items
Sun May 15 12:14:06 PDT 2016 - Adjusting import settings
Sun May 15 12:14:06 PDT 2016 - Loading existing items
Sun May 15 12:14:07 PDT 2016 - Converting items
Sun May 15 12:14:07 PDT 2016 - Setting audit fields
Sun May 15 12:14:08 PDT 2016 - Merging items
Sun May 15 12:14:08 PDT 2016 - Preparing items to save
Sun May 15 12:14:08 PDT 2016 - Validating items
Sun May 15 12:20:44 PDT 2016 - Saving items
Sun May 15 12:28:49 PDT 2016 - Updating mappings
Sun May 15 12:28:54 PDT 2016 - Import completed
Sun May 15 12:28:56 PDT 2016 - Task failed
org.openmrs.module.metadatasharing.task.TaskException: Task failed
at org.openmrs.module.metadatasharing.task.Task.log(Task.java:125)
at org.openmrs.module.metadatasharing.task.TaskEngine$RunnableTask.run(TaskEngine.java:127)
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.openmrs.module.metadatasharing.task.TaskException: Task failed
… 4 more
Caused by: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:718)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
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.$Proxy254.executeTask(Unknown Source)
at org.openmrs.module.metadatasharing.task.TaskEngine$RunnableTask.run(TaskEngine.java:124)
… 3 more