title: A dependent lookup field does not support relationships
body: <p>During feature activation of my SharePoint 2010 project, built and deployed using Visual Studio 2012, I receive this error:</p>
  
  <pre><code>A dependent lookup field does not support relationships
  </code></pre>
  
  <p>I've played around a bit with the sequence in which items are listed within my feature files.  Of the dozen lists definitions I'm installing and an instance of each I'm creating, reviewing what has actually been created before the error stops activation indicates the problem may be with a specific list.  The list will be involved in a linked-list relation with another list.  Depending upon the sequence in which list instances are placed within the feature files, the related list may or may exist at the time the error occurs.</p>
  
  <p>However, the lookup field which relates the lists is not created until my feature receiver's feature activation code is executed.  And the dependant lookup fields are not created until after the primary lookup field exists.  All done via code and none within the declarative XML.  Further, the error occurs before the feature activated event handler is called.</p>
  
  <p>Any suggestions on what to look for?
  Any ideas what might be causing this error?
  Should I look into the other lists as well?</p>
  
  <p>In it's declarative XML, the suspect list has one multiple-lookup field to link with zero-to-many child elements on the linked table.  It has previously gone through deployment and activation with this field, so I'd be surprised if it is causing a problem now - though with SharePoint ...</p>
  
  <p>FeatureActivated event handler:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public override void FeatureActivated(SPFeatureReceiverProperties properties)
  {
      SPSite site = (SPSite)properties.Feature.Parent;
      using (SPWeb web = site.OpenWeb())
      {
          web.AllowUnsafeUpdates = true;
  
          SPList itcoExportRequests = web.Lists["ITCO Export Requests"];
          SPList itcoExportRequestRecipients = web.Lists["ITCO Export Request Recipients"];
  
          if (itcoExportRequests != null &amp;&amp; itcoExportRequestRecipients != null)
          {
              // Create a lookup column on the Recipients list from the Export Requests list
              const string fromRequestFKTitle = "Request ID";
              string fromRequestFKInternalName = SPEncodeName(fromRequestFKTitle);
  
              if (!itcoExportRequestRecipients.Fields.ContainsField(fromRequestFKTitle))
              {
                  fromRequestFKInternalName = itcoExportRequestRecipients.Fields.AddLookup(fromRequestFKTitle, itcoExportRequests.ID, true);
              }
  
              SPFieldLookup fromRequestFK = (SPFieldLookup)itcoExportRequestRecipients.Fields.GetFieldByInternalName(fromRequestFKInternalName);
              fromRequestFK.LookupField = itcoExportRequests.Fields["ID"].InternalName;
              fromRequestFK.IsRelationship = true;
              fromRequestFK.RelationshipDeleteBehavior = SPRelationshipDeleteBehavior.Cascade;  // Deleting a request should delete related recipients
              fromRequestFK.Indexed = true;
              fromRequestFK.Update();
  
              // Create a lookup column on the Export Requests list from the Recipients list
              const string fromRecipientsFKTitle = "Recipient IDs";
              string fromRecipientsFKInternalName = SPEncodeName(fromRecipientsFKTitle);
  
              if (!itcoExportRequests.Fields.ContainsField(fromRecipientsFKTitle))
              {
                  fromRecipientsFKInternalName = itcoExportRequests.Fields.AddLookup(fromRecipientsFKTitle, itcoExportRequests.ID, false);
              }
  
              SPFieldLookup fromRecipientsFK = (SPFieldLookup)itcoExportRequests.Fields.GetFieldByInternalName(fromRecipientsFKInternalName);
              fromRecipientsFK.LookupField = itcoExportRequestRecipients.Fields["ID"].InternalName;
              fromRecipientsFK.AllowMultipleValues = true;
              fromRecipientsFK.Indexed = false;
              fromRecipientsFK.RelationshipDeleteBehavior = SPRelationshipDeleteBehavior.None;
              fromRecipientsFK.Update();
  
              // dependant lookup columns
              const string fromRecipientRecipientTitle = "Recipient";
              string fromRecipientRecipientInternalName = SPEncodeName(fromRecipientRecipientTitle);
              if (!itcoExportRequests.Fields.ContainsField(fromRecipientRecipientTitle))
              {
                  fromRecipientRecipientInternalName = itcoExportRequests.Fields.AddDependentLookup(fromRecipientRecipientTitle, fromRecipientsFK.Id);
              }
  
              const string fromRecipientCountryTitle = "Recipient Country";
              string fromRecipientCountryInternalName = SPEncodeName(fromRecipientCountryTitle);
              if (!itcoExportRequests.Fields.ContainsField(fromRecipientCountryTitle))
              {
                  fromRecipientCountryInternalName = itcoExportRequests.Fields.AddDependentLookup(fromRecipientCountryTitle, fromRecipientsFK.Id);
              }
  
              const string fromRecipientAddressTitle = "Recipient Address";
              string fromRecipientAddressInternalName = SPEncodeName(fromRecipientAddressTitle);
              if (!itcoExportRequests.Fields.ContainsField(fromRecipientAddressTitle))
              {
                  fromRecipientAddressInternalName = itcoExportRequests.Fields.AddDependentLookup(fromRecipientAddressTitle, fromRecipientsFK.Id);
              }
          }
  
          EnsureWorkflowAssociation(web);
          LoadPropertyBag(web);
  
          #region Event Receivers
  
          SPList taskList = web.Lists["Tasks"];
          //taskList.EventReceivers.Add(SPEventReceiverType.ItemAdded, Assembly.GetExecutingAssembly().FullName, "LMENT.MFC.ITCO.WorkflowTaskEventReceivers.WorkflowTaskEventReceivers");
          //taskList.EventReceivers.Add(SPEventReceiverType.ItemUpdated, Assembly.GetExecutingAssembly().FullName, "LMENT.MFC.ITCO.WorkflowTaskEventReceivers.WorkflowTaskEventReceivers");
  
          #endregion
  
          web.AllowUnsafeUpdates = false;
      }
  }
  </code></pre>
  
  <p>Schema.xml of suspected problem list:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;List xmlns:ows="Microsoft SharePoint" Title="ITCO Export Requests" DisableAttachments="TRUE" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ITCO Export Requests" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE"&gt;
      &lt;MetaData&gt;
          &lt;ContentTypes&gt;
              &lt;ContentType ID="0x0100DEF7BC5FF5B44246ABFF4AAE7C751CE8" Name="ITCO Export Request Content Type" Group="ITCO Content Types" Inherits="FALSE" Version="0"&gt;
                  &lt;FieldRefs&gt;
                      &lt;FieldRef ID="{fd92202e-941d-4358-b511-6b6c5e9451e4}" DisplayName="Request Number" Required="TRUE" Name="Request Number" ReadOnly="TRUE" /&gt;
                      &lt;FieldRef ID="{cf4a6b47-a040-4a75-9ce5-60a73cfc8325}" DisplayName="Approval Date" Required="FALSE" Name="Approval Date" ReadOnly="TRUE" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{64fd3feb-5460-45f9-a3b2-5564733b2442}" DisplayName="Requestor" Required="TRUE" Name="Requestor" /&gt;
                      &lt;FieldRef ID="{674f3ad7-0a8c-47f6-b592-ec213e8405f0}" DisplayName="Request Title" Required="TRUE" Name="Request Title" /&gt;
                      &lt;FieldRef ID="{d073bbdb-2735-4993-88cd-2c93d32b4ab5}" DisplayName="Unclassified Acknowledgement" Required="TRUE" Name="Unclassified Acknowledgement" /&gt;
                      &lt;FieldRef ID="{63767861-8b11-4644-8fda-1fb044f0d7cf}" DisplayName="ITAR or EAR" Required="TRUE" Name="Request Class" /&gt;
                      &lt;FieldRef ID="{325d142d-b100-445e-b4cd-0c639efdcff6}" DisplayName="Export Type" Required="TRUE" Name="Request Type" /&gt;
                      &lt;FieldRef ID="{8512dcea-9c59-4a9c-94d7-8fef912b024d}" DisplayName="Document Contains Technical Data" Required="FALSE" Name="Document Contains Technical Data" /&gt;
                      &lt;FieldRef ID="{32530a2c-f610-4cce-9265-356074f55bd5}" DisplayName="Export Location" Required="TRUE" Name="Export Location" /&gt;
                      &lt;FieldRef ID="{6ae393ef-b628-4b8e-b5c2-e2087816bf4e}" DisplayName="Program" Required="TRUE" Name="Program" /&gt;
                      &lt;FieldRef ID="{b8c6f875-e59a-440e-9154-80bc3bfbdc57}" DisplayName="Agreement or License Number" Required="FALSE" Name="Document Number" /&gt;
                      &lt;FieldRef ID="{8c19b14d-7cf6-423a-a88d-5b3f17c61375}" DisplayName="Initial Use" Required="FALSE" Name="Initial Use" /&gt;
                      &lt;FieldRef ID="{a76a8fb4-3f35-4b81-aab2-92b7bfa2e1e2}" DisplayName="Exemption or Exception Number" Required="FALSE" Name="Exemption or Exception Number" /&gt;
                      &lt;FieldRef ID="{984cec2d-b1a6-4a6a-a4c7-fbbf8f30232a}" DisplayName="Authorized Recipients" Required="TRUE" Name="Authorized Recipients" /&gt;
                      &lt;FieldRef ID="{b0815589-e18f-46aa-b477-b5eb8da4f0d4}" DisplayName="Authorization Site" Required="FALSE" Name="Authorization Site" /&gt;
                      &lt;FieldRef ID="{19595412-14fc-425d-bbea-990b8ad3fa5b}" DisplayName="Method of Transfer" Required="FALSE" Name="Method of Transfer" /&gt;
                      &lt;FieldRef ID="{46c596ce-65a6-4b29-9e9f-0ed26f2c9b75}" DisplayName="Export Data Description" Required="FALSE" Name="Export Data Description" /&gt;
                      &lt;FieldRef ID="{67df98f4-9dec-48ff-a553-29bece9c5bf4}" DisplayName="$Resources:core,Attachments;" Name="Attachments" /&gt;
                      &lt;FieldRef ID="{6DF9BD52-550E-4a30-BC31-A4366832A87E}" DisplayName="Comments" Name="V3Comments" Sortable="FALSE" /&gt;
                      &lt;FieldRef ID="{6ca1981d-2398-4440-9e8c-71962aae3dd9}" DisplayName="Export Policy Acceptance (Requestor)" Required="TRUE" Name="Requestor Export Policy Acceptance" /&gt;
                      &lt;FieldRef ID="{12ef2114-7428-4834-a38f-5d612c7eecc5}" DisplayName="Empowered Official" Required="TRUE" Name="Empowered Official" /&gt;
                      &lt;FieldRef ID="{728219ae-90ee-43b3-a9f1-c5cc53e10e9d}" DisplayName="Documents are Properly Marked (EO)" Required="FALSE" Name="EO Documents are Properly Marked" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{279c1c68-616a-4f41-bc90-bf9d0c4d38e7}" DisplayName="Exemption or Exception is Properly Used" Required="FALSE" Name="Exemption or Exception is Properly Used" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{61AE5E1D-9A24-4DF3-A394-1A2C83DE4FBD}" DisplayName="Export Policy Acceptance (EO)" Required="TRUE" Name="EO Export Policy Acceptance" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{0ea3fd1e-b861-4956-ad23-c65d50af7ec1}" DisplayName="EO has Approved" Required="FALSE" Name="EO has Approved" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{5ecaa824-b25e-4195-a42b-b2a3d5fb3c18}" DisplayName="Technology Transfer Controller" Required="TRUE" Name="Technology Transfer Controller" /&gt;
                      &lt;FieldRef ID="{06D66AB1-57E4-4843-BC70-67C55E14CD09}" DisplayName="Documents are Properly Marked (TTC)" Required="FALSE" Name="TTC Documents are Properly Marked" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{2BF29126-15F9-4058-BA6A-BFC4D9E1BB7C}" DisplayName="Export Policy Acceptance (TTC)" Required="TRUE" Name="TTC Export Policy Acceptance" ShowInNewForm="FALSE" /&gt;
                      &lt;FieldRef ID="{8C8C943F-9B84-41E3-A18B-BB849668A800}" DisplayName="TTC has Approved" Required="FALSE" Name="TTC has Approved" ShowInNewForm="FALSE" /&gt;
                  &lt;/FieldRefs&gt;
                  &lt;XmlDocuments&gt;
                      &lt;XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"&gt;
                          &lt;FormUrls xmlns:spv3FormUrl="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"&gt;
                              &lt;New&gt;_Layouts/$(ProjectName)/ITCO%20Export%20Request%20Form.aspx?mode=new&lt;/New&gt;
                              &lt;Edit&gt;_Layouts/$(ProjectName)/ITCO%20Export%20Request%20Form.aspx?mode=edit&lt;/Edit&gt;
                              &lt;Display&gt;_Layouts/$(ProjectName)/ITCO%20Export%20Request%20Form.aspx?mode=display&lt;/Display&gt;
                          &lt;/FormUrls&gt;
                      &lt;/XmlDocument&gt;
                  &lt;/XmlDocuments&gt;
              &lt;/ContentType&gt;
          &lt;/ContentTypes&gt;
          &lt;Fields&gt;
              &lt;Field ID="{fd92202e-941d-4358-b511-6b6c5e9451e4}" Type="Counter" Name="Request Number" DisplayName="Request Number" Required="TRUE" Group="ITCO Site Columns" AllowDuplicateValues="FALSE" ReadOnly="TRUE" ReadOnlyEnforced="TRUE"&gt;&lt;/Field&gt;
              &lt;Field ID="{cf4a6b47-a040-4a75-9ce5-60a73cfc8325}" Type="DateTime" Name="Approval Date" DisplayName="Approval Date" Required="FALSE" Group="ITCO Site Columns" ReadOnly="TRUE" ReadOnlyEnforced="TRUE" ShowInNewForm="FALSE" StorageTZ="UTC"&gt;&lt;/Field&gt;
              &lt;Field ID="{64fd3feb-5460-45f9-a3b2-5564733b2442}" Type="User" Name="Requestor" DisplayName="Requestor" Required="TRUE" Group="ITCO Site Columns" Presence="TRUE" UserSelectionMode="0"&gt;&lt;/Field&gt;
              &lt;Field ID="{674f3ad7-0a8c-47f6-b592-ec213e8405f0}" Type="Text" Name="Request Title" DisplayName="Request Title" Required="TRUE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{d073bbdb-2735-4993-88cd-2c93d32b4ab5}" Type="Boolean" Name="Unclassified Acknowledgement" DisplayName="Unclassified Acknowledgement" Required="TRUE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{63767861-8b11-4644-8fda-1fb044f0d7cf}" Type="Choice" Name="Request Class" DisplayName="ITAR or EAR" Required="TRUE" Group="ITCO Site Columns"&gt;
                  &lt;CHOICES&gt;
                      &lt;CHOICE&gt;ITAR&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;EAR&lt;/CHOICE&gt;
                  &lt;/CHOICES&gt;
              &lt;/Field&gt;
              &lt;Field ID="{325d142d-b100-445e-b4cd-0c639efdcff6}" Type="Choice" Name="Request Type" DisplayName="Export Type" Required="TRUE" Group="ITCO Site Columns"&gt;
                  &lt;CHOICES&gt;
                      &lt;CHOICE&gt;Agreement&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;License&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;Exemption&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;Exception&lt;/CHOICE&gt;
                  &lt;/CHOICES&gt;
              &lt;/Field&gt;
              &lt;Field ID="{8512dcea-9c59-4a9c-94d7-8fef912b024d}" Type="Boolean" Name="Document Contains Technical Data" DisplayName="Document Contains Technical Data" Required="FALSE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{32530a2c-f610-4cce-9265-356074f55bd5}" Name="Export Location" DisplayName="Export Location" Type="Text" Required="TRUE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{6ae393ef-b628-4b8e-b5c2-e2087816bf4e}" Type="Text" Name="Program" DisplayName="Program" Required="TRUE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{b8c6f875-e59a-440e-9154-80bc3bfbdc57}" Type="Text" Name="Document Number" DisplayName="Agreement or License Number" Required="FALSE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{8c19b14d-7cf6-423a-a88d-5b3f17c61375}" Type="Boolean" Name="Initial Use" DisplayName="Initial Use" Required="FALSE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{a76a8fb4-3f35-4b81-aab2-92b7bfa2e1e2}" Type="Text" Name="Exemption or Exception Number" DisplayName="Exemption or Exception Number" Required="FALSE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{984cec2d-b1a6-4a6a-a4c7-fbbf8f30232a}" Type="LookupMulti" Name="Authorized Recipients" DisplayName="Authorized Recipients" Required="TRUE" Group="ITCO Site Columns" Mult="TRUE" EnableLookup="TRUE" IsRelationship="TRUE" ShowField="Company" List="Lists/ITCO Export Request Recipients" FieldRef="ID"&gt;&lt;/Field&gt;
              &lt;Field ID="{b0815589-e18f-46aa-b477-b5eb8da4f0d4}" Type="Text" Name="Authorization Site" DisplayName="Authorization Site" Required="FALSE" Group="ITCO Site Columns" HTMLEncode="TRUE"&gt;&lt;/Field&gt;
              &lt;Field ID="{19595412-14fc-425d-bbea-990b8ad3fa5b}" Type="Choice" Name="Method of Transfer" DisplayName="Method of Transfer" Required="FALSE" Group="ITCO Site Columns"&gt;
                  &lt;CHOICES&gt;
                      &lt;CHOICE&gt;Hand Carry&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;Meeting&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;Mail&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;Upload to SharePoint&lt;/CHOICE&gt;
                  &lt;/CHOICES&gt;
              &lt;/Field&gt;
              &lt;Field ID="{46c596ce-65a6-4b29-9e9f-0ed26f2c9b75}" Type="Note" Name="Export Data Description" DisplayName="Export Data Description" Required="FALSE" Group="ITCO Site Columns" HTMLEncode="TRUE"&gt;&lt;/Field&gt;
              &lt;Field ID="{6DF9BD52-550E-4a30-BC31-A4366832A87E}" Type="Note" RichText="TRUE" AppendOnly="TRUE" Name="V3Comments" DisplayName="Comments" Sortable="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="V3Comments" Group="$Resources:core,Base_Columns;" /&gt;
              &lt;Field ID="{6ca1981d-2398-4440-9e8c-71962aae3dd9}" Type="Text" Name="Requestor Export Policy Acceptance" DisplayName="Export Policy Acceptance (Requestor)" Required="TRUE" Group="ITCO Site Columns"&gt;&lt;/Field&gt;
              &lt;Field ID="{12ef2114-7428-4834-a38f-5d612c7eecc5}" Name="Empowered Official" DisplayName="Empowered Official" Type="User" Required="TRUE" Group="ITCO Site Columns" Presence="TRUE" UserSelectionMode="0"&gt;&lt;/Field&gt;
              &lt;Field ID="{728219ae-90ee-43b3-a9f1-c5cc53e10e9d}" Type="Choice" Name="EO Documents are Properly Marked" DisplayName="Documents are Properly Marked (EO)" Required="FALSE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;
                  &lt;CHOICES&gt;
                      &lt;CHOICE&gt;Yes&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;No&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;No Attachment&lt;/CHOICE&gt;
                  &lt;/CHOICES&gt;
              &lt;/Field&gt;
              &lt;Field ID="{279c1c68-616a-4f41-bc90-bf9d0c4d38e7}" Type="Boolean" Name="Exemption or Exception is Properly Used" DisplayName="Exemption or Exception is Properly Used" Required="FALSE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;&lt;/Field&gt;
              &lt;Field ID="{61AE5E1D-9A24-4DF3-A394-1A2C83DE4FBD}" Type="Text" Name="EO Export Policy Acceptance" DisplayName="Export Policy Acceptance (EO)" Required="TRUE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;&lt;/Field&gt;
              &lt;Field ID="{0ea3fd1e-b861-4956-ad23-c65d50af7ec1}" Type="Boolean" Name="EO has Approved" DisplayName="EO has Approved" Required="FALSE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;&lt;/Field&gt;
              &lt;Field ID="{5ecaa824-b25e-4195-a42b-b2a3d5fb3c18}" Type="User" Name="Technology Transfer Controller" DisplayName="Technology Transfer Controller" Required="TRUE" Group="ITCO Site Columns" Presence="TRUE" UserSelectionMode="0"&gt;&lt;/Field&gt;
              &lt;Field ID="{06D66AB1-57E4-4843-BC70-67C55E14CD09}" Type="Boolean" Name="TTC Documents are Properly Marked" DisplayName="Documents are Properly Marked (TTC)" Required="FALSE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;
                  &lt;CHOICES&gt;
                      &lt;CHOICE&gt;Yes&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;No&lt;/CHOICE&gt;
                      &lt;CHOICE&gt;No Attachment&lt;/CHOICE&gt;
                  &lt;/CHOICES&gt;
              &lt;/Field&gt;
              &lt;Field ID="{2BF29126-15F9-4058-BA6A-BFC4D9E1BB7C}" Type="Text" Name="TTC Export Policy Acceptance" DisplayName="Export Policy Acceptance (TTC)" Required="TRUE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;&lt;/Field&gt;
              &lt;Field ID="{8C8C943F-9B84-41E3-A18B-BB849668A800}" Type="Boolean" Name="TTC has Approved" DisplayName="TTC has Approved" Required="FALSE" Group="ITCO Site Columns" ShowInNewForm="FALSE"&gt;&lt;/Field&gt;
          &lt;/Fields&gt;
          &lt;Views&gt;
              &lt;View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE"&gt;
                  &lt;Toolbar Type="Standard" /&gt;
                  &lt;XslLink Default="TRUE"&gt;main.xsl&lt;/XslLink&gt;
                  &lt;RowLimit Paged="TRUE"&gt;30&lt;/RowLimit&gt;
                  &lt;ViewFields&gt;
                      &lt;FieldRef Name="LinkTitleNoMenu"&gt;&lt;/FieldRef&gt;
                  &lt;/ViewFields&gt;
                  &lt;Query&gt;
                      &lt;OrderBy&gt;
                          &lt;FieldRef Name="Modified" Ascending="FALSE"&gt;&lt;/FieldRef&gt;
                      &lt;/OrderBy&gt;
                  &lt;/Query&gt;
                  &lt;ParameterBindings&gt;
                      &lt;ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" /&gt;
                      &lt;ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /&gt;
                      &lt;ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" /&gt;
                  &lt;/ParameterBindings&gt;
              &lt;/View&gt;
              &lt;View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx"&gt;
                  &lt;Toolbar Type="Standard" /&gt;
                  &lt;XslLink Default="TRUE"&gt;main.xsl&lt;/XslLink&gt;
                  &lt;RowLimit Paged="TRUE"&gt;30&lt;/RowLimit&gt;
                  &lt;ViewFields&gt;
                      &lt;FieldRef Name="Attachments"&gt;&lt;/FieldRef&gt;
                      &lt;FieldRef Name="Request Number" /&gt;
                      &lt;FieldRef Name="Approval Date" /&gt;
                      &lt;FieldRef Name="Requestor" /&gt;
                      &lt;FieldRef Name="Request Title" /&gt;
                      &lt;FieldRef Name="Unclassified Acknowledgement" /&gt;
                      &lt;FieldRef Name="Request Class" /&gt;
                      &lt;FieldRef Name="Request Type" /&gt;
                      &lt;FieldRef Name="Document Contains Technical Data" /&gt;
                      &lt;FieldRef Name="Export Location" /&gt;
                      &lt;FieldRef Name="Program" /&gt;
                      &lt;FieldRef Name="Document Number" /&gt;
                      &lt;FieldRef Name="Initial Use" /&gt;
                      &lt;FieldRef Name="Exemption or Exception Number" /&gt;
                      &lt;FieldRef Name="Authorized Recipients" /&gt;
                      &lt;FieldRef Name="Authorization Site" /&gt;
                      &lt;FieldRef Name="Method of Transfer" /&gt;
                      &lt;FieldRef Name="Export Data Description" /&gt;
                      &lt;FieldRef Name="V3Comments" /&gt;
                      &lt;FieldRef Name="Requestor Export Policy Acceptance" /&gt;
                      &lt;FieldRef Name="Empowered Official" /&gt;
                      &lt;FieldRef Name="EO Documents are Properly Marked" /&gt;
                      &lt;FieldRef Name="Exemption or Exception is Properly Used" /&gt;
                      &lt;FieldRef Name="EO Export Policy Acceptance" /&gt;
                      &lt;FieldRef Name="EO has Approved" /&gt;
                      &lt;FieldRef Name="Technology Transfer Controller" /&gt;
                      &lt;FieldRef Name="TTC Documents are Properly Marked" /&gt;
                      &lt;FieldRef Name="TTC Export Policy Acceptance" /&gt;
                      &lt;FieldRef Name="TTC has Approved" /&gt;
                  &lt;/ViewFields&gt;
                  &lt;Query&gt;
                      &lt;OrderBy&gt;
                          &lt;FieldRef Name="ID"&gt;&lt;/FieldRef&gt;
                      &lt;/OrderBy&gt;
                  &lt;/Query&gt;
                  &lt;ParameterBindings&gt;
                      &lt;ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /&gt;
                      &lt;ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /&gt;
                  &lt;/ParameterBindings&gt;
              &lt;/View&gt;
          &lt;/Views&gt;
          &lt;Forms&gt;
              &lt;Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /&gt;
              &lt;Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /&gt;
              &lt;Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /&gt;
          &lt;/Forms&gt;
      &lt;/MetaData&gt;
  &lt;/List&gt;
  </code></pre>