Giter VIP home page Giter VIP logo

Comments (10)

nek4life avatar nek4life commented on June 12, 2024 1

Opened #109

from b2c-crm-sync.

filipecarvalho15 avatar filipecarvalho15 commented on June 12, 2024

I had this problem, my advice is go the easy way and delete the list view and remove the bad field

from b2c-crm-sync.

nek4life avatar nek4life commented on June 12, 2024

@filipecarvalho15 thanks for letting me know you ran into the same thing. I have tried removing the specific fields, but then ran into more errors. I will try removing the entire list view and see if the deployment will continue.

from b2c-crm-sync.

nek4life avatar nek4life commented on June 12, 2024

Deleting:

<columns>ACCOUNT.RECORDTYPE</columns>
<columns>ACCOUNT.TYPE</columns>

src/sfdc/base/main/default/objects/Contact/listViews/Non_B2C_Commerce_Customer_Profiles.listView-meta.xml

and deleting

    <lookupPhoneDialogsAdditionalFields>CONTACT.PHONE6</lookupPhoneDialogsAdditionalFields>

src/sfdc/base/main/default/objects/Contact/Contact.object-meta.xml

Allowed the base metadata to deploy.

I now get an error with the PersonAccount metadata

[
  {
    "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": "18",
        "lineNumber": "268",
        "error": "In field: RecordType - no RecordType named PersonAccount.PersonAccount found (268:18)",
        "fullName": "Account.B2C_Commerce_Customer_Profiles",
        "type": "ListView",
        "filePath": "src/sfdc/base/main/default/objects/Account/listViews/B2C_Commerce_Customer_Profiles.listView-meta.xml",
        "problemType": "Error",
        "height": 1
      },
      {
        "columnNumber": "20",
        "lineNumber": "3",
        "error": "You can't change a matching rule's status from Activating to Active. (3:20)",
        "type": "MatchingRule",
        "filePath": "N/A",
        "problemType": "Error",
        "height": 1
      }
    ],
    "commandName": "SourceDeployCommand",
    "code": "Error"
  }
]

I will try removing this file as well to see if I can deploy the person account metadata

from b2c-crm-sync.

nek4life avatar nek4life commented on June 12, 2024

I removed

  <filters>
        <field>ACCOUNT.RECORDTYPE</field>
        <operation>equals</operation>
        <value>PersonAccount.PersonAccount</value>
    </filters>

from src/sfdc/personaccounts/main/default/objects/Account/listViews/B2C_Commerce_Customer_Profiles.listView-meta.xml

and was able to complete the deploy.

Has this project been tested against a sandbox org with person accounts enabled before? I'm wondering why these particular fields were causing issues.

from b2c-crm-sync.

jbachelet avatar jbachelet commented on June 12, 2024

Hello @nek4life ,
Thank you for opening an issue here.

I can see that you solved all your issues, that's great!

FYI, we are testing, for all releases, the deployment of the framework against:

  • A scratch org with Account/Contact model
  • A scratch org with PersonAccount model
  • A dev org sandbox with Account/Contact model
  • A dev org sandbox with PersonAccount model

Thus, to answer your question, yes this project has been tested against orgs where PersonAccounts are enabled.
The issue is that you might have specific configurations/licenses on your org which makes the framework deployment breaking where it is working well on a brand new dev org/scratch org.

If you can open a pull request that removes the extra stuff not needed for a deployment, that would be awesome, otherwise, I can do it in a few weeks from now.

Thanks

from b2c-crm-sync.

nek4life avatar nek4life commented on June 12, 2024

@jbachelet I can certainly add a pull request. Once we have that perhaps you'd be able to tell what functionality is missing or would be broken with the missing pieces of metadata. That's my only concern. I'm not as familiar with Service Cloud development as am with Commerce so I took a very basic approach to debugging.

from b2c-crm-sync.

jbachelet avatar jbachelet commented on June 12, 2024

Please do open a PR and we will take it from there.
Thanks!

from b2c-crm-sync.

nek4life avatar nek4life commented on June 12, 2024

Screen Shot 2022-01-28 at 11 51 38 AM

It looks like I do not have permission to fork the repository. If you can update the permissions I'd be happy to help.

Charlie

from b2c-crm-sync.

jbachelet avatar jbachelet commented on June 12, 2024

From your screenshot, I can see that you do.
You have to click on your Github ID shown on the screen, which will fork the repository into your personal space.

from b2c-crm-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.