Giter VIP home page Giter VIP logo

Comments (6)

VALiNTRY360 avatar VALiNTRY360 commented on June 12, 2024 1

@luismiguelferreiraPWC Thank you again for the insight and support. The re-deployment worked flawlessly with your suggestions.

from b2c-crm-sync.

VALiNTRY360 avatar VALiNTRY360 commented on June 12, 2024

@jbachelet What could be causing this error? I re-ran the npm run crm-sync:sf:org:deploy and received the initial error from the first deployment attempt.

[
  {
    "stack": "DeployFailed: Deploy failed.\n    at DeployResultFormatter.display (/Users/luigifrascarelli/b2c-crm-sync/node_modules/@salesforce/plugin-source/lib/formatters/deployResultFormatter.js:61:19)\n    at Deploy.formatResult (/Users/luigifrascarelli/b2c-crm-sync/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:127:23)\n    at Deploy.run (/Users/luigifrascarelli/b2c-crm-sync/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:40:21)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async Deploy._run (/Users/luigifrascarelli/b2c-crm-sync/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)",
    "message": "Deploy failed.",
    "name": "DeployFailed",
    "exitCode": 1,
    "commandName": "Deploy",
    "code": "Error"
  }
]

Screen Shot 2022-01-05 at 1 42 40 PM

from b2c-crm-sync.

luismiguelferreiraPWC avatar luismiguelferreiraPWC commented on June 12, 2024

Hi @VALiNTRY360

I had that issue before because I had the previous versions of B2C CRM Sync in the SF Org. The previous version had the Client ID field that was a Text field but in the current version this is a Object.

I had to remove the previous version of the Salesforce Org to be able to make the deployment.

Even after this the npm run crm-sync:sf:org:deploy was failing but the sfdx force:source:deploy -p "./src/sfdc/base" run with success and installed all components on Salesforce Env.

from b2c-crm-sync.

VALiNTRY360 avatar VALiNTRY360 commented on June 12, 2024

@luismiguelferreiraPWC thank for the quick response. Did you just remove the B2C Client ID field and all the related ones prior to re-deploying? Any other tips you have to resolve this issue?

from b2c-crm-sync.

luismiguelferreiraPWC avatar luismiguelferreiraPWC commented on June 12, 2024

@VALiNTRY360 I've created a destructiveChange.xml and removed all B2C CRM Sync content from the org with the workbench.

After that I've run the sfdx force:source:deploy -p "./src/sfdc/base" and it was deployed successfully.

If you are in a dev org and you can play with it I would suggest to remove everything and make a new deployment.

In my case I was using the code I've made from May so my version was a lot deprecated (it was beta version at the time). Currently there is new objects and some fields have change their type for example the CLient Id it was a field text and now it's an object. Other thing is the connection between the SFCC and CRM are difference. These are just two differences but probably there are much more so I would suggest to remove everything and make a new deployment if you are in a environment that you could do that.

from b2c-crm-sync.

VALiNTRY360 avatar VALiNTRY360 commented on June 12, 2024

@luismiguelferreiraPWC Thank you! This is very helpful. I will get that solution a try. We deployed the previous version of the sync in a full sandbox a few months ago and noticed several issues when running end to end tests between SFCC and SFDC.

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.