×
The 2025 Client Survey is now open! Responses will be accepted up until 10/31. Please feel free to share this link within your organization and we thank you in advance for your participation!

How to use createAndLoad for Lists or Datasets using R?

LabKey Support Forum (Inactive)
How to use createAndLoad for Lists or Datasets using R? kristen dang  2021-04-23 10:32
Status: Active
 

Hello,
In the R labkey package, I tried to use to use the labkey.domain.createAndLoad to create and load a list, but was unable to understand the error message. I'd like to be able to use this command for List and Dataset creation. Can you please suggest how I should address the issue with "strictFieldValidation?" I included my command and the response below.

labkey.domain.createAndLoad(baseUrl = labkey.getBaseUrl(),folderPath=fp,name="sequencing_vendor_QC_metrics", df=combined, domainKind="VarList")

Error in handleError(response, haltOnError) : 
HTTP request was unsuccessful. Status code = 500, Error message = Unrecognized field "strictFieldValidation" (class org.labkey.list.model.ListDomainKindProperties), not marked as ignorable (22 known properties: "entireListTitleTemplate", "discussionSetting", "keyName", "name", "entireListIndexSetting", "titleColumn", "eachItemBodyTemplate", "fileAttachmentIndex", "allowDelete", "listId", "eachItemBodySetting", "lastIndexed", "description", "allowExport", "eachItemTitleTemplate", "domainId", "entireListIndex", "allowUpload", "keyType", "entireListBodySetting", "entireListBodyTemplate", "eachItemIndex"])
 
 
chetc (LabKey Support) responded:  2021-05-06 11:28
Status: Closed

Hello Kristen,

I tested the example from the R API docs and received the same error you did. I am not sure how to interpret it either. So for this question, I have opened up a bug so our developers can investigate and I also created a ticket for this in your support portal for tracking purposes.

Ticket in Portal: https://www.labkey.org/Juno/Support%20Tickets/issues-details.view?issueId=43106
Issue:https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=43107

Thanks,
Chet