1

I'm working on transferring a legacy project with many file attachments to a new REDCap build and using the exportFiles() function to export the files. I’m running into an issue where I receive the following error message:

400: ERROR: There is no file to download for this record, even though the files do exist.

For example, this works:

library(redcapAPI)
files <- exportFiles(source_project, record = "10", field = "upload_1", instance = 1)  # Success

But this fails:

files <- exportFiles(source_project, record = "1", field = "upload_1", instance = 2)   # Fails

Both records are from the same instrument, and I’m sure the files exist.

1
  • 1
    Hi Andrea, can you edit your question to make clear any packages you are using outside of base R? Assuming the exportFiles() function comes from the redcapAPI package, add library(redcapAPI). Assuming the field "upload_1" exists on a repeating instrument, are you sure that every repeat instance has a file uploaded? For instance, what does exportFiles(source_project, record = "10", field = "upload_1", repeat_instance = 2) return? Commented Jun 2 at 15:35

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.