You need to sign in to do that
Don't have an account?
Jirong Hu
": "mdapiDeployFailed: The metadata deploy operation failed.\
I got this error from this command, any idea why?
"stack": "mdapiDeployFailed: The metadata deploy operation failed.\n at ALMError (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\core\\almError.js:42:19)\n at MdDeployReportApi._throwErrorIfDeployFailed (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:354:25)\n at C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:308:36\n at tryCatcher
F:\sfdx\bin\sfdx force:mdapi:deploy -u wmcsfdev -c -d force-app-mdapi --testlevel RunLocalTests --json -w 30 -g
"stack": "mdapiDeployFailed: The metadata deploy operation failed.\n at ALMError (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\core\\almError.js:42:19)\n at MdDeployReportApi._throwErrorIfDeployFailed (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:354:25)\n at C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:308:36\n at tryCatcher
There could be multiple reasons for this error as it is deployment-specific. Unless the deployment components are investigated, it would be difficult to suggest the exact root cause.
Found a similar post from past: https://developer.salesforce.com/forums/?id=9060G0000005cLIQAY
If this information helps, please mark the answer as best. Thank you