To allow the solution to import successfully, the LocalizedNames section within the XML for the saved query needs to be added.
1. Extract the contents of the solution .zip file you are trying to import.
2. Open the customization.xml file in a text editor.
3. Refer to the error details which should include part of the fetchxml section from the saved query. You may need to find a unique section of this XML and then search within the customization.xml file to find a matching saved query.
4. Once you have located the saved query that is referenced in the error details, update the XML to include the LocalizedNames section. An example of a saved query is provided below with the missing section in bold.
<savedquery unmodified="1">
<isquickfindquery>0</isquickfindquery>
<isprivate>0</isprivate>
<isdefault>0</isdefault>
<savedqueryid>{65ffaf9a-e8c5-432d-860b-32f841b00d87}</savedqueryid>
<queryapi></queryapi>
<layoutxml>
<grid name="resultset" jump="name" select="1" icon="1" preview="1">
<row name="result" id="accountid">
<cell name="name" width="300" />
<cell name="telephone1" width="100" />
<cell name="address1_city" width="100" />
<cell name="primarycontactid" width="150" />
<cell name="accountprimarycontactidcontactcontactid.emailaddress1" width="150" disableSorting="1" />
<cell name="statecode" width="100" />
</row>
</grid>
</layoutxml>
<querytype>0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="account">
<attribute name="name" />
<attribute name="telephone1" />
<attribute name="address1_city" />
<attribute name="primarycontactid" />
<link-entity alias="accountprimarycontactidcontactcontactid" name="contact" from="contactid" to="primarycontactid" link-type="outer" visible="false">
<attribute name="emailaddress1" />
</link-entity>
<attribute name="statecode" />
</entity>
</fetch>
</fetchxml>
<IntroducedVersion>9.0.0.0</IntroducedVersion>
<LocalizedNames>
<LocalizedName description="All Accounts" languagecode="1033" />
</LocalizedNames>
</savedquery>
5. After correcting the XML, select all of the components you extracted from the solution file and send them to a new .zip file.
6. Attempt to import the solution again.
NOTE: If there are multiple saved queries (views) missing the <LocalizedNames> section, the steps may need to be repeated for each view.