Description

Declare empty Fields element when using only ContentTypeRefs. Fields automatically populated from content types.


list xmlns:ows="Microsoft SharePoint" title="List title" other="" attributes="">
 <metadata>
   <contenttypes>
     <contenttyperef id="0x0100EDFEDEA571A241FD80430F4D48A91346"></contenttyperef>
     <contenttyperef id="0x0120"></contenttyperef>
   </contenttypes>
   <fields>
   </fields>
   <views>
   </views>
   <forms>
   </forms>
 </metadata>
/list>


This works well. For most field types, that is. It does not work for Calculated Fields. More about this.

Resolution

Add empty Fields node to List shema.

Links