Comments (10)
Opened #109
from b2c-crm-sync.
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.
@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.
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.
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.
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.
@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.
Please do open a PR and we will take it from there.
Thanks!
from b2c-crm-sync.
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.
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)
- Creating account and contact, but not returning the contact details in the response json HOT 15
- [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
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.