Incorrect format for 'records' parameter in DeleteRecordsAsync #58
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tranpl/redcap-api#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When calling DeleteRecordsAsync, I receive the following error message:
Incorrect format for 'records' parameter. It must be passed as an array, even if it only contains a single record name.I think we're passing the REDCap API an invalid
recordsparameter by converting thestring[] recordsparameter to a string. I think we could fix it by adding each record in therecordsarray to thepayloadas an item in an array.Instead of
payload.Add("records", await this.ConvertArraytoString(records));We could do the following, which would successfully delete the records.
thanks @etfrenchvcu , updated with fix