API insertRows to add samples fails with error 'Name expression required' | olnerdybastid | 2018-04-02 07:50 |
Status: Closed | ||
Ah, I see. I took a look at the Edit Set area of the Sample Set I'm trying to insert into ('Study Specimens') and the Name Expression field is blank. I tried specifying some different name expressions in the Edit Set interface including ${Name} and ${randomID} and then trying to to insert samples again with the same procedure as before, but with no luck. Same error message occurs--'Name expression required'. After setting the 'Name Expression' field back to its default value (which is empty in the HIV tutorial), I tried two different things while I was messing around with this over the weekend. First, per your suggestion, I made a data frame with a single row consisting of a single column ('Name') and tried to insert that. Same error.
Secondly, I navigated to the 'Upload Specimens' page, downloaded the template workbook, and entered data for a dummy sample (see attached Excel sheet). When I paste that sheet into the 'Upload Specimens' section I can add the sample just fine. When I read it into an R data frame first and try to insert it via API however I still get the same Name Expression error:
You mentioned that the error didn't replicate for you. Can I ask what columns you passed in the data frame when you made the insertRows call so I can make sure I'm structuring my data frame correctly? |
||