Custom object or fields could not be fetched from the ORG

655 views
Skip to first unread message

w...@cloudlendinginc.com

unread,
May 30, 2017, 5:32:12 PM5/30/17
to Illuminated Cloud General Discussion

For example, Loan_Committee__c is a newly created custom object on my ORG.

However, the object couldn't be fetched from my ORG. By no means of retrieving or refresh metadata.


By the way, what's the difference between retrieve and refresh? any documentation for the explanation?


 














Scott

unread,
May 30, 2017, 5:45:26 PM5/30/17
to Illuminated Cloud General Discussion
Wei, let me start by describing the difference between Retrieve, Retrieve & Merge, and Refresh.
  • Refresh downloads the latest server copy of metadata that you already have locally and overwrites it in-place with no additional prompting or opportunity for merging.  Refresh can be very efficient because it doesn't need to enumerate the metadata in the server to determine what to download.  It constructs its retrieval manifest based on the files in the local file system.
  • Retrieve downloads the latest server copy of metadata potentially including metadata that you don't already have locally.  To do that it needs to enumerate the metadata in the org which can be quite expensive in densely-populated orgs.  You're given an opportunity to fine-tune what is retrieved in the resulting dialog.  If in that dialog you choose the Retrieve button, the metadata is downloaded directly into your project root just as with Refresh except that it may include new metadata.  If instead you choose Retrieve & Merge the metadata is downloaded into a separate temporary directory and a diff tool is displayed with the downloaded metadata on the left and your project metadata on the right so that you can carefully merge into your local project.
The short version is that if you just want the latest version of what you already have, use Refresh; if you need additional metadata from the server and/or need to merge server metadata into local metadata, use Retrieve.

I get this question often and definitely need to include it in the FAQ and/or other documentation.

As for not being able to pull down the Loan_Committee__c object, let me explain the process required to grab new metadata:
  1. Open the subscription editor using Illuminated Cloud>Configure Module. or by starting a Retrieve Metadata operation and then clicking the edit icon to the right of the Contents drop-down.
  2. Assuming you're using a Selected metadata subscription, click the Refresh button above the tree view.
  3. Find the new metadata you'd like to include in the tree, in this case CustomObject>Loan_Committee__c, and selected it.
  4. Click OK to save the changes.
  5. If you haven't already, start a Retrieve Metadata operation.  The dialog will refresh based on the latest metadata and you should see objects>Loan_Committee__c.object in the retrieval tree as Server Only.
  6. Use either Retrieve or Retrieve & Merge as appropriate to bring the new metadata down into your project.
Please let me know if that doesn't address the issue and answer your questions about how this feature works.

Best regards,
Scott Wells

w...@cloudlendinginc.com

unread,
May 30, 2017, 7:06:01 PM5/30/17
to Illuminated Cloud General Discussion
Thanks so much.
You totally got my fix. 
The problem was I didn't check the subscription as the package.xml
Best

Scott

unread,
May 31, 2017, 9:11:04 AM5/31/17
to Illuminated Cloud General Discussion
Wonderful! Glad to hear it helped guide you to the solution.

Regards,
Scott
Reply all
Reply to author
Forward
0 new messages