You need to sign in to do that
Don't have an account?
adknllewkj
Custom Metadata Type Records Mass Insert Issues
Trying to mass upload custom metadata type records using cmdt commands. The following code was working but now it isn't. I keep getting this error: 'The column Name is not found on the custom metadata'. But according to docs I've read, the name column is needed for creating the label and name for the record. Please help... I am just confused as to why the Name column is suddenly a problem.. This definitely was working and the only change i did was adding more data to the csv file... I also tried DeveloperName, Label and using the tag --namecolumn as well with no success.
test_mdt has two fields: "text__c" and "num__c"
test.csv has three columns: "Name", "text__c", "num__c"
Sfdx force:cmdt:record:insert --filepath /Desktop/test.csv --typename test__mdt --inputdir /Documents/main/default/objects --outputdir /Users/4530206/Documents/main/default/customMetadata
test_mdt has two fields: "text__c" and "num__c"
test.csv has three columns: "Name", "text__c", "num__c"
https://salesforce.stackexchange.com/questions/328317/unable-to-insert-custom-metadata-records-with-cmdt-command
https://help.salesforce.com/s/articleView?id=sf.custommetadatatypes_cli.htm&type=5
Also I found some known issue around Metadata Relationship below.
https://github.com/forcedotcom/cli/issues/544
Please mark as Best Answer if above information was helpful.
Thanks,