redcapAPI icon indicating copy to clipboard operation
redcapAPI copied to clipboard

exportRecords returns incorrect field type

Open SimpleAddress4390 opened this issue 3 years ago • 5 comments

We are finding that text field where no data has been entered in a form for that field, are returned as logical instead of the correct field type from the metadata.

Once data are entered in the field on any record, the export correctly returns the field as chr.

Factor fields, even when blank on the entire form, are returned correctly, as are date fields.

Attached are screenshots for redcapR and REDCapAPI. Help!! scrREDCapExtractions-20220718.pdf

SimpleAddress4390 avatar Aug 11 '22 07:08 SimpleAddress4390