Not able to retrieve the latest metadata for Custom field/Custom object

Issue #1769 resolved
Arnab KarSarkar created an issue

Hi,

I am not able to retrieve the latest changes for the custom fields on any object. Steps to reproduce -

  1. Open the existing Custom_field__c.xml file.
  2. Right click and select Illuminated Cloud → Retrieve Metadata
  3. Blank screen when selecting the context option under Contents.
  4. I changed the Contents dropdown to Custom.
  5. Selected the desired Custom field under Objects → Custom__c → Custom_Field__c.
  6. Click on the Retrieve button.

Nothing happened.

Then I tried to use the Compare with the server option. That gives me this below message

  Retrieved 1/2 components from arnab-dev in 7 s 923 ms with status SUCCEEDED.

Successes
=========
 package.xml

Failures
========
 package.xml: Entity of type 'CustomField' named 'CUSOMT_FIELD__c' cannot be found

Please let me know if you need any additional details. Its probably something silly I am missing. I am not able to perform my daily tasks without this functionality.

Comments (11)

  1. Scott Wells repo owner

    Is CUSOMT_FIELD__C a typo by you in the pasted section, or is it perhaps incorrect somewhere else? That just stands out to me. If that doesn't help resolve it, I'll need you to enable debug logging for metadata retrieval, reproduce the issue, and either attach or email the resulting idea.log (Help>Show Log in Explorer/Finder/Files).

  2. Scott Wells repo owner

    Hi. I didn't receive an email from you. Can you please (re)send it to support@illuminatedcloud.com? Also, did the typo in my previous response look familiar?

  3. Arnab KarSarkar reporter

    Hi - oops.. I just sent the email to your support address. The field is an existing one and we have the xml file in our version control. I just added a new Picklist value to the field. I needed to pull those changes from my sandbox org to the file in IntelliJ.

  4. Scott Wells repo owner

    I'm seeing the following retrieval error in the log:

    Entity of type "CustomField" named "Secondary_Churn_Reason__c" cannot be found
    

    Is that the field in question? If so, either it doesn't exist in the org or the user configured with IC's connection doesn't have access to it.

  5. Arnab KarSarkar reporter

    Yes.. I do have access actually when I tried with the sfdx command it worked. See this below command..

    sfdx force:source:retrieve --sourcepath /force-app/main/default/objects/Opportunity/fields/Secondary_Churn_Reason__c.field-meta.xml
    === Retrieved Source
    FULL NAME                              TYPE         PROJECT PATH
    ─────────────────────────────────────  ───────────  ──────────────────────────────────────────────────────────────────────────────────────────
    Opportunity.Secondary_Churn_Reason__c  CustomField  force-app/main/default/objects/Opportunity/fields/Secondary_Churn_Reason__c.field-meta.xml
    

    I am not sure what I am doing wrong..

  6. Arnab KarSarkar reporter

    Thanks Scott!! So I had to select the sfdx executable in the configuration. And I have to use the sfdx connections to get the metadata in correct format.

  7. Scott Wells repo owner

    If you want to work with files in source format--which is the more flexible, decomposed format introduced with Salesforce DX--you will need to use SFDX projects in IC2 and Salesforce CLI-based connections for those projects, either against scratch orgs of OAuth connections against non-scratch orgs.

  8. Log in to comment