SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
64 stars 47 forks source link

SFDX : Deploy failed #14

Closed olegforce closed 3 years ago

olegforce commented 3 years ago

The following error was produced on the RCG IDO Summer '21 Org (non-scratchOrg environment) generated by Q Central after executing the following CLI command: npm run crm-sync:sf:org:deploy

[
  {
    "stack": "DeployFailed: Deploy failed.\n    at /Users/osapishchuk/IdeaProjects/b2c-crm-sync/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:71:31\n    at async SourceDeployCommand.execLegacyCommand (/Users/osapishchuk/IdeaProjects/b2c-crm-sync/node_modules/salesforce-alm/dist/ToolbeltCommand.js:149:29)\n    at async SourceDeployCommand.run (/Users/osapishchuk/IdeaProjects/b2c-crm-sync/node_modules/salesforce-alm/dist/commands/force/source/deploy.js:32:16)\n    at async SourceDeployCommand._run (/Users/osapishchuk/IdeaProjects/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": [
      {
        "error": "In field: QuickAction - no QuickAction named NewContact found",
        "fullName": "Account-B2C%3A Account%28Support%29 Layout",
        "type": "Layout",
        "filePath": "src/sfdc/base/main/default/layouts/Account-B2C%3A Account%28Support%29 Layout.layout-meta.xml",
        "problemType": "Error",
        "height": 1
      },
      {
        "error": "Your org doesn't have access to component runtime_sales_social:socialPanel.",
        "fullName": "B2C_Account_Record_Page",
        "type": "FlexiPage",
        "filePath": "src/sfdc/base/main/default/flexipages/B2C_Account_Record_Page.flexipage-meta.xml",
        "problemType": "Error",
        "height": 1
      },
      {
        "error": "Your org doesn't have access to component runtime_sales_social:socialPanel.",
        "fullName": "Account_Record_Page",
        "type": "FlexiPage",
        "filePath": "src/sfdc/base/main/default/flexipages/Account_Record_Page.flexipage-meta.xml",
        "problemType": "Error",
        "height": 1
      }
    ],
    "commandName": "SourceDeployCommand",
    "code": "Error"
  }
]

image

olegforce commented 3 years ago

FYI: deployment worked just fine for scratchOrg generated for this Org.

olegforce commented 3 years ago
      {
        "error": "Your org doesn't have access to component runtime_sales_social:socialPanel.",
        "fullName": "B2C_Account_Record_Page",
        "type": "FlexiPage",
        "filePath": "src/sfdc/base/main/default/flexipages/B2C_Account_Record_Page.flexipage-meta.xml",
        "problemType": "Error",
        "height": 1
      },
      {
        "error": "Your org doesn't have access to component runtime_sales_social:socialPanel.",
        "fullName": "Account_Record_Page",
        "type": "FlexiPage",
        "filePath": "src/sfdc/base/main/default/flexipages/Account_Record_Page.flexipage-meta.xml",
        "problemType": "Error",
        "height": 1
      }

For this part with help of colleague I was informed about a fix and it is manually to go to Setup -> Home -> Feature Settings -> Sales -> Social Accounts and Contacts Settings and enable Enable Social Accounts, Contacts, and Leads

Any way we can automate it with deployment? If not can we please update installation/deploy guidelines?

olegforce commented 3 years ago
      {
        "error": "In field: QuickAction - no QuickAction named NewContact found",
        "fullName": "Account-B2C%3A Account%28Support%29 Layout",
        "type": "Layout",
        "filePath": "src/sfdc/base/main/default/layouts/Account-B2C%3A Account%28Support%29 Layout.layout-meta.xml",
        "problemType": "Error",
        "height": 1
      },

For this part the solution I applied was to remove from src/sfdc/base/main/default/layouts/Account-B2C%3A Account%28Support%29 Layout.layout-meta.xml following Quick Action

        <quickActionListItems>
            <quickActionName>NewContact</quickActionName>
        </quickActionListItems>
jbachelet commented 3 years ago

Fixed through PR#32