I would like to report one strange issue that I encounter when using multiple scheme mapping. When I first start my app, It starts ok and generates all the tables in the DB, but on consequent starts I got this error:

System.ArgumentException: Item with Name 'QPOS__Sales:ItemPrice' is not found.

   at Xtensive.Modelling.NodeCollection.get_Item(String name)

   at Xtensive.Modelling.NodeCollection3.get_Item(String name)</p><p>&nbsp;&nbsp; at Xtensive.Orm.Upgrade.SqlModelConverter.VisitForeignKey(ForeignKey key)</p><p>&nbsp;&nbsp; at Xtensive.Sql.Model.SqlModelVisitor1.Visit(Node node)

   at Xtensive.Orm.Upgrade.SqlModelConverter.Visit(Node node)

   at Xtensive.Orm.Upgrade.SqlModelConverter.VisitSchema(Schema schema)

   at Xtensive.Orm.Upgrade.SqlModelConverter.VisitCatalog(Catalog catalog)

   at Xtensive.Orm.Upgrade.SqlModelConverter.Run()

   at Xtensive.Orm.Upgrade.SchemaExtractor.ExtractSchema()

   at Xtensive.Orm.Upgrade.SchemaExtractor.GetSchema()

   at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.SynchronizeSchema(Domain domain, SchemaUpgrader upgrader, SchemaExtractor extractor, SchemaUpgradeMode schemaUpgradeMode)

   at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.PerformUpgrade(Domain domain, UpgradeStage stage)

   at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.BuildMultistageDomain()

   at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.Run()

   at Xtensive.Orm.Upgrade.UpgradingDomainBuilder.Build(DomainConfiguration configuration)

   at Xtensive.Orm.Domain.Build(DomainConfiguration configuration)

   at QPOS.Client.App..ctor() in C:\Users\Alen\Documents\Visual Studio 2010\Projects\QPOS\QPOS.Client\App.xaml.cs:line 23

   at QPOS.Client.App.Main() in C:\Users\Alen\Documents\Visual Studio 2010\Projects\QPOS\QPOS.Client\obj\x86\Debug\App.g.cs:line 0

   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

   at System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity, String[] args)

   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

This doesn't happen only if I set upgrade mode to Recreate.

Help would be appreciated!

Best regards,


asked Jan 06 '13 at 10:07

Cvale's gravatar image


edited Jan 06 '13 at 10:08

Hello Cvale. Thanks for your report. Is it possible to provide relevant parts of your model? This would help us to resolve your issue fast. If you don't want to publish such details you could write to support@dataobjects.net

(Jan 06 '13 at 12:11) Denis Krjuchkov Denis%20Krjuchkov's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA