Issue 1: Malformed XML Error on Import
Symptom: REDCap displays a malformed XML error when you attempt to upload the exported file.
Cause: Some exports from REDCap 9.4.2 are missing the closing </odm> tag at the end of the file, which causes the XML to be technically invalid. More rarely, projects are also missing a critical part of the opening <odm>tag.
Fix 1: Open the XML file in a plain text editor (such as Notepad, TextEdit, or VS Code) and scroll to the very end of the file. If the file does not end with </odm>, add it manually on a new line at the very end of the document, save the file, and retry the upload.
Fix 2: If you still are receiving the XML error after adding the closing tag, check the opening <odm> tag on line two of your document - within that tag, there will be a variable called xsi:schemaLocation="".
If your schema location variable doesn't match below, replace it with the following code and save:
xsi:schemaLocation="http://www.cdisc.org/ns/odm/v1.3 https://www.cdisc.org/sites/default/files/osb/odm1-3-1/ODM1-3-1.xsd"
If you are still receiving XML errors after making both changes, please reach out for assistance.
Issue 2: 504 Gateway Timeout Error
Symptom: The browser displays a 504 timeout error during upload or after selecting Create Project.
Cause: A 504 timeout can occur for a couple of reasons:
- Too many users uploading projects at the same time, causing the server to be temporarily overloaded.
- A server-side issue that requires administrator intervention.
Fix: Wait at least 30 minutes and then retry the upload. Off-peak hours (early morning or evenings) tend to have lower server load. If you are still having issues uploading during off hours, please submit a REDCap Support Request.