...
This page explains how to solve the errors faced during OC sync. You can download the error csv from the import log page, as shown in the below image.
Go to the OpenClinica Study Configuration page of the study → Click on Import Logs → Download the csv file.
...
Error importing CRF: PATHOLOGY","java.lang.RuntimeException: Following special characters in form names not allowed: [+-/*(){}%. ]
Expand | ||
---|---|---|
| ||
The error states that there are specimen characters like +-/*(){}%, whitespaces (space, tab, newline, carriage return, etc.) in the CRF name. The OpenClinica OC connector uses the OID as the form name. These special characters are not allowed in the DE form names, hence the error. Also, when importing the OID mapping CSV file, make sure that the column ‘OS_FORM_NAME’ does not contain any special characters. For example, a form name can be added as ‘PATHOLOGY_DATA’ and not 'PATHOLOGY DATA.' Fix: Clean up the CRFs to ensure they don't contain special characters mentioned in the log file in the CRF. |
2. Error importing CRF data. Subject: ABC01, Event: BASELINE. Error: DE form for PATHOLOGY (Path_Data) doesn't seem to be created."
Expand | ||
---|---|---|
| ||
The error is displayed when the DE form ‘PATHOLOGY’ for the event ‘BASELINE’ is not yet created; hence the data cannot be imported. You need to make It would help if you made sure that the form error is fixed and imported. |
3. Error importing CRF data. Subject: ABC01, Event: SE_WEEK1FU."," com.krishagni.catissueplus.core.common.errors.OpenSpecimenException: Participant 48540 does not exist.
Expand | ||
---|---|---|
| ||
The error is displayed when the participant was created in Open Clinica with PPID ABC01, deleted, and recreated. You need to clean It would help if you cleaned up the mapping tables to remove the mapping of the deleted participants. |
4. Failed to authenticate with the
...
OC server. Check the following: a) auth credentials, b) auth server URL c) server accessibility.
Expand | ||
---|---|---|
| ||
This error occurs when the configured server URL, Username, or Password is wrong. To fix this, check the below details and update if needed in the server configuration.
To fix these details go to REST API Invoker >> use the ‘PUT' HTTP request >> ‘Resource URL’ as 'ServerURL/rest/ng/or-server-configs/{configured server ID}’ Once you update the necessary host, username, and password, click on 'Send'. You should get 200 status as a successful result. |
How to cleanup mapping tables?
You can clean up the Open Clinica mapping tables using the below SQLs
Code Block | ||
---|---|---|
| ||
Find the study ID from the table 'os_oc_studies'
//SQL to cleanup the visits mapping table, where 'N' is the study ID
SQL>delete from os_oc_visits where subject_id in (select identifier from os_oc_subjects where study_id = N);
//SQL to cleanup the participant mapping table, where 'N' is the study ID
SQL>delete from os_oc_subjects where study_id = N; |
5. Error: Unknown column '<table name>' in 'field list'
...
/ Error: Column 'FORM_CTXT_ID' cannot be null
Expand | ||
---|---|---|
| ||
When forms get corrupted due to any possible reason, this error occurs. In this case, you need to delete the existing form and resync the data for that form. Run below API to delete the form in OpenSpecimen.
form_OID: You will get the form OID from XML of CRF from OC. |
6. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead. Check the manual. You have to change some columns to TEXT or BLOBs.
Expand |
---|
Refer to the wiki page for more details. |
7. java.lang.RuntimeException: Error retrieving participants of the site: I-Spy2: 400: Error: {"message":"errorCode.studyNotExist","params":{"siteOid":null,"studyOid":"I-SPY2"}}
Expand |
---|
When OC doesn't have an OID for any site and patients are registered to that site. Then those patients can’t be synced into OS. In the above error, the ‘I-Spy2' is a site in OC whose siteOid is null. To fix this client has to add the OID for the site in OC. |
8. com.krishagni.catissueplus.core.common.errors.OpenSpecimenException: Parent specimen should be either in collected or missed state.
Expand |
---|
When you are trying to collect any primary specimen or child specimen, and their visit or primary specimen is not collected respectively due to any reason, then this error occurs.
|
9. No anticipated specimens with labels: EP_017-00-02-07-1
Expand |
---|
When you sync any specimen from OC and OS doesn’t have the same specimen with the label. Then this error occurs. To resolve this, you will need to add the specimen requirements that will match the label format. |
10. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '4-EP_021-00-04-01-2' for key 'CAT_SPEC_CP_ID_LABEL_UQ'
Expand |
---|
This error is reported when the auto-generated label conflicts with an existing label. Eg: The subject '74580' has more than one 'Baseline' event in OC. Whereas in OS, there is only one 'Baseline' event configured. In this case, there are two ways to resolve this error.
|
11. com.krishagni.catissueplus.core.common.errors.OpenSpecimenException: Invalid form data. Reason: COVID_Specimen_Extension.Reason specimen not collected:INVALID_VALUE
Expand |
---|
When the OC field has any value that is not configured in the OS, this error occurs. E.g., In the ‘Clinical Diagnosis’ dropdown field has PV values like 10 weeks gestation, 13 weeks gestation, etc. These values are not available in OS for the mapped field, then the data for these subjects won’t sync. To resolve this, add the same values in the OS dropdown as OC. |
12. SQL error: 'com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'DE_A_(n)' at row 1', where n is any number.
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
This error means the data that you are trying to insert/update cannot be stored in column DE_A_(n) because of its size limitation. Steps to resolve:
Syntax of the code: alter table <table_name> change <column_name where issue is found> mediumtext; Check the below example code for the reference:
|
13. 502 Bad Gateway Error. An error was encountered when invoking the OpenClinica API. The details are present in the error log file.
Expand |
---|
The ‘502 Bad Gateway Error’ occurs when the source server is down or not reachable. Please contact client to get this resolved. |
14. Specimen label already exists.
Expand |
---|
When duplicate specimen labels are entered in OpenClinica. OpenSpecimen syncs the first specimen and throws error for second duplicate specimen that this Specimen label already exists in the system. To resolve this issue user needs to update the OpenClinica data entry and remove the specimen label which is entered more than once. |