Recipe with Indexing Module fails.

Topics: General, Troubleshooting
Mar 21, 2011 at 3:23 PM

Hi guys,

I've tried to put the Orchard.Indexing module in a Recipe (along with Lucene and Orchard.Search). Upon creating the site the following error appears (truncated):

 

The specified table does not exist. [ Orchard_Indexing_IndexingTaskRecord ]

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlServerCe.SqlCeException: The specified table does not exist. [ Orchard_Indexing_IndexingTaskRecord ]

Source Error: 

[No relevant source lines]


Source File: ReadOnlyCollectionExtensions.cs    Line: 

 

Why does this happen, yet Enabling the module manually works?

Coordinator
Mar 21, 2011 at 4:58 PM

Can you show what you put in the recipe?

Mar 21, 2011 at 5:06 PM

<?xml version="1.0"?>
<Orchard>
  <Recipe>
    <Name>Test Recipe</Name>
    <Description>A test recipe</Description>
    <Author></Author>
    <WebSite></WebSite>
    <Tags></Tags>
    <Version>1.0</Version>
  </Recipe>

  <Feature enable="Orchard.Blogs,Orchard.Comments,Orchard.Tags,
                   Orchard.Lists,TinyMce,Orchard.Media,Orchard.PublishLater,
                   Orchard.jQuery,Orchard.Widgets,Orchard.ContentTypes,
                   Orchard.Scripting,Orchard.Scripting.Lightweight,
                   PackagingServices,Orchard.Packaging,Gallery,
                   Lucene,
                   Orchard.Indexing,
                   Orchard.Search,
                   TheThemeMachine" />
  
  <Metadata>
    <Types>
      <Page ContentTypeSettings.Draftable="True" TypeIndexing.Included="true">
        <TagsPart />
        <LocalizationPart />
      </Page>
      <BlogPost ContentTypeSettings.Draftable="True" TypeIndexing.Included="true">
        <CommentsPart />
        <TagsPart />
        <LocalizationPart />
      </BlogPost>
    </Types>
    <Parts>
      <BodyPart BodyPartSettings.FlavorDefault="html" />
    </Parts>
  </Metadata>

  <Settings />
  
  <Command>
    layer create /Name:"Default" /LayerRule:"true"
    layer create /Name:"Authenticated" /LayerRule:"authenticated"
    layer create /Name:"Anonymous" /LayerRule:"not authenticated"
    layer create /Name:"Disabled" /LayerRule:"false"
    layer create /Name:"HomePage" /LayerRule:"url '~/'"
    page create /Slug:"welcome-to-orchard" /Title:"Welcome to Orchard!" /Path:"welcome-to-orchard" /Homepage:true /Publish:true /UseWelcomeText:true
    widget create /Type:"HtmlWidget" /Title:"First Leader Aside" /Zone:"TripelFirst" /Position:"5" /Layer:"HomePage" /UseLoremIpsumText:true
    widget create /Type:"HtmlWidget" /Title:"Second Leader Aside" /Zone:"TripelSecond" /Position:"5" /Layer:"HomePage" /UseLoremIpsumText:true
    widget create /Type:"HtmlWidget" /Title:"Third Leader Aside" /Zone:"TripelThird" /Position:"5" /Layer:"HomePage" /UseLoremIpsumText:true
    menuitem create /MenuPosition:"1" /MenuText:"Home" /Url:"" /OnMainMenu:true
  </Command>
  
  <Migration features="*" />
</Orchard>

Coordinator
Mar 21, 2011 at 9:21 PM

Seems like Orchard.Indexing is the only one causing this issue. Logged a bug http://orchard.codeplex.com/workitem/17515 and we'll investigate.

Thanks,

Suha

Mar 22, 2011 at 9:08 AM

Thanks :)