Skip to content
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

Unable to deploy the custom fields in standard object in sf using package.xml #3020

Closed
PiusSe opened this issue Sep 12, 2024 · 6 comments
Closed
Labels
more information required Issue requires more information or a response from the customer stale validated Version information for this issue has been validated

Comments

@PiusSe
Copy link

PiusSe commented Sep 12, 2024

<types>
    <members>Case.ancb__c</members>
    <name>CustomField</name>
</types>

<version>61.0</version>

When trying to deploy the custom fields in standard fields getting below error . but when tried with custom fields in custom objects deployment is success .

SF command sf project deploy start --manifest manifest/package.xml

Cli version : @salesforce/cli/2.58.7 linux-x64 node-v20.11.1
{
"architecture": "linux-x64",
"cliVersion": "@salesforce/cli/2.58.7",
"nodeVersion": "node-v20.11.1",
"osVersion": "Linux 6.1.106-116.188.amzn2023.x86_64",
"rootPath": "/home/codebuilder/.npm-packages/lib/node_modules/@salesforce/cli",
"shell": "bash",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.2 (core)",
"@oclif/plugin-commands 4.0.13 (core)",
"@oclif/plugin-help 6.2.10 (core)",
"@oclif/plugin-not-found 3.2.18 (core)",
"@oclif/plugin-plugins 5.4.6 (core)",
"@oclif/plugin-search 1.2.7 (core)",
"@oclif/plugin-update 4.5.5 (core)",
"@oclif/plugin-version 2.2.11 (core)",
"@oclif/plugin-warn-if-update-available 3.1.13 (core)",
"@oclif/plugin-which 3.2.12 (core)",
"@salesforce/cli 2.58.7 (core)",
"apex 3.4.8 (core)",
"api 1.2.1 (core)",
"auth 3.6.54 (core)",
"data 3.6.5 (core)",
"deploy-retrieve 3.12.3 (core)",
"info 3.4.3 (core)",
"limits 3.3.29 (core)",
"marketplace 1.2.25 (core)",
"org 4.5.7 (core)",
"packaging 2.8.2 (core)",
"schema 3.3.26 (core)",
"settings 2.3.16 (core)",
"sobject 1.4.33 (core)",
"source 3.5.18 (core)",
"telemetry 3.6.10 (core)",
"templates 56.3.17 (core)",
"trust 3.7.27 (core)",
"user 3.5.29 (core)",
"@salesforce/sfdx-scanner 4.5.0 (user) published 15 days ago (Tue Aug 27 2024)",
"sfdx-plugin-source-read 1.2.0 (user) published 323 days ago (Tue Oct 24 2023)"
]
}

Error Case.AllOpenCases Not in package.xml
| Error Case.All_ARC_Pays Not in package.xml
| Error Case.All_Application_Support_Cases Not in package.xml
| Error Case.All_Basic_Deduction_Cases Not in package.xml
| Error Case.All_CE_Cases Not in package.xml
| Error Case.All_Cases Not in package.xml
| Error Case.All_Compos_GL_TRUE Not in package.xml
| Error Case.All_Contractor_Pay_Cases Not in package.xml
| Error Case.All_Converga_Cases Not in package.xml
| Error Case.All_Courier_Post_Pays Not in package.xml
| Error Case.All_EIS_Admin_Cases Not in package.xml
| Error Case.All_Holidays_Act Not in package.xml
| Error Case.All_Investigation_Cases_created_by_CS Not in package.xml

<types>
    <members>Case_Transfer_Queue_Routing_IDs__c.XX__x</members>
    <members>Case_Transfer_Queue_Routing_IDs__c.XXX__x</members>
    <members>Case.ancb__c</members>
    <name>CustomField</name>
</types>

<version>61.0</version>
@PiusSe PiusSe added the investigating We're actively investigating this issue label Sep 12, 2024
Copy link

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.

Copy link

Hello @PiusSe 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated investigating We're actively investigating this issue and removed investigating We're actively investigating this issue more information required Issue requires more information or a response from the customer labels Sep 12, 2024
@iowillhoit
Copy link
Contributor

Hello @PiusSe, I am able to deploy a Custom Field on a Standard Object with a manifest. Maybe I am not understanding the issue.

Steps:

  • I created a Custom Field named ancb on the Standard Object Case
  • I created a package.xml with just that Custom Field
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Case.ancb__c</members>
        <name>CustomField</name>
    </types>
    <version>61.0</version>
</Package>
  • I deployed to a scratch org using that manifest sf project deploy start --manifest package.xml
  • The Custom Field was updated in the org

Screenshot:
Image

Can you please provide use with a github repository (with detailed steps) that allows us to easily reproduce this issue? The Dreamhouse sample app is a good starting point

@PiusSe
Copy link
Author

PiusSe commented Sep 12, 2024

Hello @PiusSe, I am able to deploy a Custom Field on a Standard Object with a manifest. Maybe I am not understanding the issue.

Steps:

  • I created a Custom Field named ancb on the Standard Object Case
  • I created a package.xml with just that Custom Field
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Case.ancb__c</members>
        <name>CustomField</name>
    </types>
    <version>61.0</version>
</Package>
  • I deployed to a scratch org using that manifest sf project deploy start --manifest package.xml
  • The Custom Field was updated in the org

Screenshot: Image

Can you please provide use with a github repository (with detailed steps) that allows us to easily reproduce this issue? The Dreamhouse sample app is a good starting point

i AM USING 62.0 SOAP API AND CLI VERSION IS "cliVersion": "@salesforce/cli/2.58.7",. wHAT IS YOURS?

@iowillhoit
Copy link
Contributor

I am also using version 2.58.7. In my previous post I was using the 61.0 soap API.
I just tried it again using the 62.0 version and it also worked for me.

Image

@WillieRuemmele WillieRuemmele added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Sep 19, 2024
Copy link

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

@github-actions github-actions bot added the stale label Sep 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer stale validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants