Skip to main content
Expanded with specific example of how to set the SFDX_MDAPI_TEMP_DIR environment variable in Windows.
Source Link
Daniel Ballinger
  • 103k
  • 40
  • 275
  • 601

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

For Windows set it as an environment variable. E.g. in Powershell (expand the ... out with your actual path):

PS C:\...\myDXProject\src> $env:SFDX_MDAPI_TEMP_DIR = 'C:\...\myDXProject\metadata'

Examining the metadata folder will tell whats going on here since it is weird  .

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

Examining the metadata folder will tell whats going on here since it is weird  .

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

For Windows set it as an environment variable. E.g. in Powershell (expand the ... out with your actual path):

PS C:\...\myDXProject\src> $env:SFDX_MDAPI_TEMP_DIR = 'C:\...\myDXProject\metadata'

Examining the metadata folder will tell whats going on here since it is weird.

added 1 character in body
Source Link
Mohith Shrivastava
  • 91.9k
  • 19
  • 161
  • 214

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadataexport SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

Examining the metadata folder will tell whats going on here since it is weird .

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

Examining the metadata folder will tell whats going on here since it is weird .

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

Examining the metadata folder will tell whats going on here since it is weird .

deleted 4 characters in body; deleted 2 characters in body; added 2 characters in body
Source Link
Mohith Shrivastava
  • 91.9k
  • 19
  • 161
  • 214

Since the error is not so clearlyclear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed  .

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed  .

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder  .

Examining the metadata folder will tell whats going on here since it is weird .

Since the error is not so clearly on why this is happening this is where one needs to see whats the actual metadata for the object that is getting deployed  .

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed  .

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder  .

Examining the metadata folder will tell whats going on here since it is weird .

Since the error is not so clear on why this is happening , this is where one needs to see whats the actual metadata for the object that is getting deployed.

There is an environment variable in the DX CLI named SFDX_MDAPI_TEMP_DIR you might want to set it to a temp metadata directory so that when sfdx push command runs you see the actual metadata thats being deployed.

Enable in MAC (For windows similar to any other environment variables you set one) using export SFDX_MDAPI_TEMP_DIR=/users/myName/myDXProject/metadata .This assumes you have myDXProject as project folder and metadata as the temporary folder.

Examining the metadata folder will tell whats going on here since it is weird .

Source Link
Mohith Shrivastava
  • 91.9k
  • 19
  • 161
  • 214
Loading