-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieving Recordtypes, they land in the wrong folder, also deploying does not work. #880
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
It is not just on retrieve that there is an issue it is also on deploy. |
I have now renamed my Sales Processes and it retrieves and deploys ok. Opportunity.Commercial RecordType force-app\main\default\objects\Opportunity\recordTypes\Commercial.recordType-meta.xml then a few lines later after custom fields and list views it does the rest of the RecordTypes. This gives me concern that if the recordtypes are being deployed before fields could cause issues (missing pieces) We really need clarity on this topic even after fixing. |
OK, now having workaround the naming issue. and having an accurate set of files in the right folders within my package. I have deployed to the org (previously broken due to bad deploy), however the newly named Sales Processes and not being deployed. It was recently deleted, so now I will delete profiles and re-retrieve, see if that helps. THIS IS NOT A GOOD SITUATION! |
DELETING PROFILES and re-retrieving worked. Why do I have to do a delete and a re-retrieve. A retrieve should overwrite everything every time, and a deployment should also deploy everything. WHAT ARE THE EXCEPTIONS, and WHY? |
WHAT SHOULD HAPPEN? RETRIEVE: DEPLOY: For me I got no indication of whether my workflows were updated or not. Starting SFDX: Deploy Source to Org When a component is deployed there should be 4 or more states. I am in NZ and working on Australian Site???? could this cause problems with dates??? |
Not deleting this Comment, instead leaving it here as a reminder that Salesforce browser caching causes us so many problems. This problem has majorly broken my Salesforce instance, luckily Sandbox for now. I have 7 recordtypes with 7 sales processes, they appear to now be connected and correct for each, seemed to be deployed ok. They do not appear in salesforce during edit mode, I only get a Won-Closed StageName no other options, not even Qualify which is the current stage. Even the kanban and process widget are broken. Nightmare! |
Hi @qwikag, We have faced the same issue from here. Due to we have a feel dependency on the field, business process, and layouts, we are not able to deploy it alone. So that any attempt to deploy it, with its dependencies, from CLI, we are told that our RT does not exist on the package. Unfortunately, we are trying to deploy business processes and record types with the same name. As you commented, seems to be a problem with this CLI latest version. Plugins:
|
This issue has been linked to a new work item: W-9282312 |
@qwikag @renanlq can either of you share a link to a repo with these types, more detailed steps on how to create them, and a Or you could try the soon-to-be-announced beta source plugin, which uses the same library as VSCode and should fix metadata related problems like this. You can install it with |
Summary
Issue #1 When retrieving Opportunity Recordtypes, they are landing in the business processes folder.
see my output below.
my package.xml includes, business processes, recordtypes, custom fields and standardValueSets, profiles and more.
as I was deleting the recordtypes so that they could come down again they were then going into the businessPocesses folder.
initially I could not find them until I start searching for configuration files that might be pointing them into that folder (i could not)
I was deleting them because they were not updating with new metadata (that is another issue #2, maybe related)
This was not happening yesterday that I am aware of.
I have been retrieving from Dev and deploying to QA, no issues, until today deploying to UAT and causing many breakages in UAT.
So I deleted the entire Opportunity folder and it retrieved them OK.
this is a massive cause for concern, do not have faith in the deployment tool heading towards production.
We need this tool to get stable very soon!
I am not sure what caused this issue.
I have upgraded CLI and it still did the same thing.
Issue #2
similar to above except on deploy any recordtypes named the same as BusinessProcess Fail to deploy.
Steps To Reproduce:
18:56:13.388 sfdx force:source:retrieve --manifest d:\OneDrive\Workspaces\SF\xyz\manifest\package.xml
=== Retrieved Source
FULL NAME TYPE PROJECT PATH
───────────────────────────────────────────────────── ──────────────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────
...
Opportunity.Commercial RecordType force-app\main\default\objects\Opportunity*businessProcesses*\Commercial.recordType-meta.xml
Opportunity.Referrer RecordType force-app\main\default\objects\Opportunity*businessProcesses*\Referrer.recordType-meta.xml
Opportunity CustomObject force-app\main\default\objects\Opportunity\Opportunity.object-meta.xml
Opportunity.Commercial BusinessProcess force-app\main\default\objects\Opportunity\businessProcesses\Commercial.businessProcess-meta.xml
Opportunity.Referrer BusinessProcess force-app\main\default\objects\Opportunity\businessProcesses\Referrer.businessProcess-meta.xml
Opportunity.Lease RecordType force-app\main\default\objects\Opportunity*recordTypes*\Lease.recordType-meta.xml
Having deleted and re-added the entire Opportunity Folder, if I then remove a single recordtype and retrieve it again that single recordtype xml lands in the businessProcesses folder, as per pic.
Not good!
The only thing I can think of that could be causing this is the naming convention of the sale process (Business Process is the same as the recordtype.
UPDATE YES I THINK THAT IS IT: I did further testing by removing all recordtypes, and only the ones with exactly the same name are the ones landing in the wrong folder. the others land happily in the recordtype folder.
And also they do not deploy (if named the same)
Expected result
Delete the recordtype xml from the recordtype folder of an object and on retrieve it should return.
Actual result
on retrieve it lands in the Business Processes Folder of the Opportunity Object.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.88.4-3b2e55c3f1 win32-x64 node-v14.15.4
but it also failed on 7.84.....
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.5 (core)
@oclif/plugin-update 1.4.0-2 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.5 (core)
auth 1.4.8 (core)
config 1.2.4 (core)
generator 1.1.5 (core)
salesforcedx 51.0.4 (core)
├─ schema 1.0.4 (core)
├─ limits 1.0.4 (core)
├─ user 1.1.2 (core)
├─ apex 0.1.4 (core)
├─ custom-metadata 1.0.11 (core)
├─ templates 51.2.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
└─ salesforce-alm 51.0.2 (core)
sfdx-cli 7.88.4 (core)
telemetry 1.1.1 (core)
OS and version:
win 10.0.19041
The text was updated successfully, but these errors were encountered: