b2c-crm-sync
b2c-crm-sync copied to clipboard
Error while running deploy step to standard org with PersonAccounts enabled
Describe the bug While executing the following command from the documentation https://github.com/SalesforceCommerceCloud/b2c-crm-sync#deploy-the-b2c-crm-sync-application-code-to-your-salesforce-org I receive the following error
,----------------------------------------------------------------------.
| |
| |
| 88888888888 88 |
| 88 88 |
| 88 88 |
| 88aaaaa 8b,dPPYba, 8b,dPPYba, ,adPPYba, 8b,dPPYba, 88 |
| 88""""" 88P' "Y8 88P' "Y8 a8" "8a 88P' "Y8 88 |
| 88 88 88 8b d8 88 "" |
| 88 88 88 "8a, ,a8" 88 aa |
| 88888888888 88 88 `"YbbdP"' 88 88 |
| |
| |
| Oh no! Not one of these :( |
| |
| It looks like you've run into an error or exception. |
| Please log an issue via |
| https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues. |
| That's the best way to engage us. Thank you for your support! |
| |
`----------------------------------------------------------------------'
[
{
"stack": "DeployFailed: Deploy failed.\n at /Users/choinierec/projects/b2c-crm-sync/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:71:31\n at async SourceDeployCommand.execLegacyCommand (/Users/choinierec/projects/b2c-crm-sync/node_modules/salesforce-alm/dist/ToolbeltCommand.js:149:29)\n at async SourceDeployCommand.run (/Users/choinierec/projects/b2c-crm-sync/node_modules/salesforce-alm/dist/commands/force/source/deploy.js:32:16)\n at async SourceDeployCommand._run (/Users/choinierec/projects/b2c-crm-sync/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)",
"message": "Deploy failed.",
"name": "DeployFailed",
"actions": [
"Check the order of your dependencies and ensure all metadata is included."
],
"exitCode": 1,
"columns": [
{
"key": "problemType",
"label": "TYPE"
},
{
"key": "filePath",
"label": "PROJECT PATH"
},
{
"key": "error",
"label": "PROBLEM"
}
],
"data": [
{
"columnNumber": "16",
"lineNumber": "770",
"error": "Could not resolve list view column: ACCOUNT.RECORDTYPE (770:16)",
"fullName": "Contact.Non_B2C_Commerce_Customer_Profiles",
"type": "ListView",
"filePath": "src/sfdc/base/main/default/objects/Contact/listViews/Non_B2C_Commerce_Customer_Profiles.listView-meta.xml",
"problemType": "Error",
"height": 1
},
{
"error": "lookupPhoneDialogsAdditionalFields ACCOUNT.PHONE1 not found",
"fullName": "Contact",
"type": "CustomObject",
"filePath": "src/sfdc/base/main/default/objects/Contact/Contact.object-meta.xml",
"problemType": "Error",
"height": 1
}
],
"commandName": "SourceDeployCommand",
"code": "Error"
}
]
```
**To Reproduce**
Steps to reproduce the behavior:
1. Use full sandbox (non-scratch org)
2. Have PersonAccounts enabled
3. Follow all instructions up to the deploy step
4. Run `npm run crm-sync:sf:org:deploy`
**Expected behavior**
Deploy should succeed
**local environment details**
Node version v14.18.3
NPM version 6.14.15
SFDX version sfdx-cli/7.132.0 darwin-x64 node-v16.13.1
Your remote environment details:
Salesforce B2C Commerce version: 22.1 compat 21.2
Salesforce Core version: ??