Comments (6)
@luismiguelferreiraPWC Thank you again for the insight and support. The re-deployment worked flawlessly with your suggestions.
from b2c-crm-sync.
@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"
}
]
from b2c-crm-sync.
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.
@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.
@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.
@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)
- [BUG] ...npm run crm-sync:sf:b2cinstance:setup IS FAILING HOT 1
- [BUG] Unable to validate .env with salesforce scratch org
- Time to Switch to JWT Access Tokens! HOT 1
- [BUG] ...Issue while Setup the Salesforce Connect Extras HOT 1
- [BUG] npm run crm-sync:sf:b2cinstance:setup fails returns a 400 bad request error HOT 1
- [BUG] ... Duplicate Accounts are creating in SFDC
- Issue encountered at base metadata deployment step HOT 1
- [BUG] Latest version of the connector causes System.CalloutException HOT 1
- [BUG] B2C_INSTANCENAME validator is wrong HOT 2
- [BUG] Unable to parse the connectedApp credentials .json file; please execute 'npm run crm-sync:sf:connectedapps' to render this file
- [BUG] ...Could not retrieve an AuthToken from the B2C Commerce Account Manager instance
- [BUG] ...
- Newly created contacts on service cloud are not coming into commerce cloud HOT 1
- [BUG] ... OrderOnBehalf Access to XMLHttpRequest HOT 4
- Customer not syncing from service cloud
- [BUG] ... When attempting to run npm run crm-sync:sf:b2cinstance:setup im getting a 400 error HOT 2
- [BUG] Error when creating Person Account: INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Name
- SFCC => SFSC Contact information is not Synced
- Error on step 32 of B2C-CRM-SYNC:: Verifying / creating the OOBO Anonymous Customer records for these B2C Storefronts HOT 1
- [BUG] ...Getting error on step https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues/27 Configure Your B2C Instance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from b2c-crm-sync.