ctsit / redcapcustodian

Simplified, automated data management on REDCap systems
Other
12 stars 6 forks source link

issue in friday-call-demo with redcap_event_name #130

Open aboulang opened 11 months ago

aboulang commented 11 months ago

For Server info: REDCap 13.8.1 · PHP 7.3.29 (Linux/Unix OS) · MySQL 5.7.34 Running the demo against 2 different REDCap server instances gets the same error:

fields_to_read <- c( "record_id", "redcap_event_name", "sample_collected_date", paste0("tube_id", 1:tubes_per_collection), paste0("tube_specimen_type", 1:tubes_per_collection), paste0("tube_volume", 1:tubes_per_collection) )

source_project_data <- REDCapR::redcap_read( redcap_uri = source_credentials$redcap_uri, token = source_credentials$token, fields = fields_to_read )

ERROR: The following values in the parameter "fields" are not valid: 'redcap_event_name' Error in REDCapR::redcap_read(redcap_uri = source_credentials$redcap_uri, : The redcap_read() call failed on iteration 1.

Taking the field out allows the read to happen but of course, it is needed for the demo.

I suspect there may be an API change or a change with Will Beasley's REDCapR library