I'm trying to import data in a scratch org but I'm always getting the error
andresbrav-ltm2:sfdx-out local.user$ sfdx force:data:tree:import --targetusername test-user@example.com --plan export-demo-Broker__c-Property__c-plan.json
ERROR running force:data:tree:import: ENOENT: no such file or directory, open '/Users/local.user/.local/share/sfdx/client/node_modules/salesforce-alm/schemas/dataImportPlanSchema.json'
I have generated the json data files and the json plan file with the sfdx export command, I have tried also with the files from the git repository for the trailhead course DreamHouse but it always tries to find this file .../dataImportPlanSchema.json that is not the plan file I'm sending.
Did anyone face this issue and know how to make the import command work with a plan to insert related tables?.
sfdx update
andsfdx plugins:install salesforcedx@latest
? – sfdcfox Mar 29 at 9:50sfdx update and sfdx plugins:install salesforcedx@latest
did the magic – andres.bravo Mar 29 at 9:59