function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
adknllewkjadknllewkj 

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.
 
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"
Best Answer chosen by adknllewkj
VinayVinay (Salesforce Developers) 
Check below similar reference that can help you to deploy custom metadata records.

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,