Package.xml not changing even if I try to retrieve the full source code

Issue #1118 resolved
Nagendra Singh created an issue

I went to Project Structure>Project Settings>Modules>module name>Illuminated Cloud under the General tab and selected the subscription type as All/Package.

But the package.xml which got generated has not changed, it still shows only these types:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexComponent</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexPage</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>
    <types>
        <members>*</members>
        <name>AuraDefinitionBundle</name>
    </types>
    <types>
        <members>Account</members>
        <members>AccountCleanInfo</members>
        <members>AccountContactRole</members>
        <members>Activity</members>
        <members>Asset</members>
        <members>AssetRelationship</members>
        <members>AssistantProgress</members>
        <members>Campaign</members>
        <members>CampaignMember</members>
        <members>Campsite_Reservation__c</members>
        <members>Campsite__c</members>
        <members>Case</members>
        <members>CaseContactRole</members>
        <members>Contact</members>
        <members>ContactCleanInfo</members>
        <members>ContentVersion</members>
        <members>Contract</members>
        <members>ContractContactRole</members>
        <members>DandBCompany</members>
        <members>Document</members>
        <members>DuplicateRecordItem</members>
        <members>DuplicateRecordSet</members>
        <members>EmailMessage</members>
        <members>Event</members>
        <members>ExchangeUserMapping</members>
        <members>FeedItem</members>
        <members>ForecastingCategoryMapping</members>
        <members>Idea</members>
        <members>Knowledge__kav</members>
        <members>Lead</members>
        <members>LeadCleanInfo</members>
        <members>LinkedArticle</members>
        <members>Macro</members>
        <members>MacroAction</members>
        <members>MacroInstruction</members>
        <members>Opportunity</members>
        <members>OpportunityCompetitor</members>
        <members>OpportunityContactRole</members>
        <members>OpportunityLineItem</members>
        <members>Order</members>
        <members>OrderItem</members>
        <members>PartnerRole</members>
        <members>Pricebook2</members>
        <members>PricebookEntry</members>
        <members>Product2</members>
        <members>Project__c</members>
        <members>PushTopic</members>
        <members>Scorecard</members>
        <members>ScorecardMetric</members>
        <members>Site</members>
        <members>SocialPersona</members>
        <members>Solution</members>
        <members>StreamingChannel</members>
        <members>Student__c</members>
        <members>Suggestion__c</members>
        <members>Task</members>
        <members>Tracker_Bug__c</members>
        <members>Trail__c</members>
        <members>User</members>
        <members>UserProvisioningRequest</members>
        <members>Vehicles__c</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>*</members>
        <name>StaticResource</name>
    </types>
    <version>41.0</version>
</Package>

The custom label, Permission sets, QuickAction, those are missing, Can you please help me understand where does illuminated cloud store the package.xml locally when it starts retrieving the files. I would like to see the full package.xml

Comments (8)

  1. Scott Wells repo owner

    Let me preface by saying that I do not ever recommend the use of All/Package without selecting a development package. It can lead to retrieval of metadata that cannot be in turn deployed back into an org. This is a Salesforce issue where the metadata API reports metadata that is not safe to round-trip. I would recommend reading this information on how metadata subscriptions and metadata deployment/retrieval work including the various options available for each:

    http://www.illuminatedcloud.com/home/deployment

    With that preface out of the way, I'll explain what's happening. Changing the subscription to All/Package won't change your package.xml. IC only changes your package.xml when you're using a Package.xml subscription after you've added or removed metadata in the local filesystem, and by default it will prompt you before doing so. This is because package.xml files tend to be very carefully hand-maintained files. If you want the equivalent of the All/Package package.xml file, perform a Retrieve Metadata on the entire project and the one generated by Salesforce will be included in the retrieved metadata payload. You can copy that into your local project.

    As for retrieving ListView metadata, that is a child metadata type of CustomObject and does not result in a top-level file in the local filesystem. It comes back in the associated *.object file. You can see the list views in the metadata retrieval dialog by opening the objects folder and navigating to the bottom where you'll see ListView:

    Issue1118ListView.png

    Please let me know if you have any further questions or issues after reviewing this information.

  2. Scott Wells repo owner

    Resolving this as having provided explanations/pointers to documentation. Feel free to let me know if anything doesn't work as described or if you have any other questions/issues.

  3. Nagendra Singh reporter

    Thanks for the explanation that really helped.

    But for the first point, I am not able to find the package.xml provided by Salesforce when I do a retrieve metadata on my full project.

    "perform a Retrieve Metadata on the entire project and the one generated by Salesforce will be included in the retrieved metadata payload. You can copy that into your local project."

    Where is the package generated ? Can you let me know where is this in local drive ?

  4. Scott Wells repo owner

    Make sure in the retrieval dialog you set the Contents drop-down to either Project or Module and not Context or Custom. When you choose one of the latter two, you're performing a selective retrieval and the returned package.xml only represents the selected subset of metadata. To prevent you from overwriting the carefully hand-crafted package.xml file with something that's only sparsely-populated, IC will only include the returned package.xml if you retrieve the entire module or project.

    Let me know if that doesn't allow you to get this full org package.xml file.

  5. Log in to comment