Force.com migration tool metadata not retrieved

I am using ant target from the migration tool to retrieve all the medata from one of my sandboxes. In the list of metadata retrieved I don’t have dashboard, email, reports, all is empty. But when I use the eclipse plugin and sync with server all this metadata appears. Can someone explain me why I have this difference ?

Thanks for your help.

Answer

For these metadata types, you can’t simply retrieve all of them with the * notation. To retrieve them, you need to request them specifically by name and include the folder that they are in.

When the eclipse plugin generates the package.xml file, it is doing that work for you behind the scenes.

A good reference to consult when working with metadata is the Metadata API Developers’ Guide


When calling describeMetadata(), you will notice that certain metadataObjects are being returned with the value of inFolder set to true. These objects have another object that is not returned from the describeMetadata() call that are named with the word “Folder” at the end (DashboardFolder, ReportFolder, etc.). To get the metadata for these types, you should use the +Folder object names in the listMetadata() call.

Attribution
Source : Link , Question Author : Sébastien Van Cutsem , Answer Author : martin

Leave a Comment