Import fails for 'Query'

Topics: Core, General
Nov 20, 2014 at 7:51 AM
Edited Nov 21, 2014 at 6:56 AM
I'm Export/Import certain (running!) 'ContentTypes and Items' to a new site. ALL works fine except for importing 'Query'. Orchard: 1.8.1.

When importing I get the error below:
"object references an unsaved transient instance - save the transient instance before flushing or
set cascade action for the property to something that would make it autosave.
Type: Orchard.Projections.Models.PropertyRecord, Entity: Orchard.Projections.Models.PropertyRecord"
PS: Export/Import for 'Projection(and widgets)' work fine also!

On the export I used options 'Metadata' and 'Data'. I see all my 'queries' in the XML file.
below the the beginning of the 'xml' including the first Query.

What am I possibly missing?
Thanks for your time and hints
ed

`<Orchard>
<Recipe>
<Name>Generated by Orchard.ImportExport</Name>
<Author>admin</Author>
<ExportUtc>2014-11-19T19:59:36.7428683Z</ExportUtc>
</Recipe>
<Metadata>
<Types>
  <Query DisplayName="Query">
    <QueryPart />
    <TitlePart />
    <IdentityPart />
  </Query>
</Types>
<Parts>
  <QueryPart />
  <TitlePart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Provides a Title for your content item." />
  <IdentityPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Automatically generates a unique identity for the content item, which is required in import/export scenarios where one content item references another." />
</Parts>
</Metadata>
<Data>
<Query Id="/Identifier=fd01b6be1c994f78b47c7d02e22a092a" Status="Published">
  <IdentityPart Identifier="fd01b6be1c994f78b47c7d02e22a092a" />
  <TitlePart Title="Événements" />
  <QueryPart>
    <FilterGroups>
      <FilterGroup>
        <Filter Category="Content" Description="Evenements" Position="0" State="&lt;Form&gt;&lt;Description&gt;Evenements&lt;/Description&gt;&lt;ContentTypes&gt;Evenement&lt;/ContentTypes&gt;&lt;/Form&gt;" Type="ContentTypes" />
 ....       
continued
 ....
  </QueryPart>
</Query>``
```