Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8047125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:00:23+00:00 2026-06-05T06:00:23+00:00

I’m doing a fairly complex NHibernate transaction in a financial system, creating a payment,

  • 0

I’m doing a fairly complex NHibernate transaction in a financial system, creating a payment, recording the ledger entries, checking to see if the payment is the total amount of an invoice, if so marking the invoice as paid in full, etc… lots of fun stuff. Naturally it has to happen inside a single transaction.

When I try to commit the change to the session, I get the following error:

Error dehydrating property value for C3.DataModel.CFAPTransaction.Vendor

Googling this did not turn up many record. Can someone tell me what this means and where I need to focus my debugging efforts?

UPDATE

Per request, here is the full error message:

NHibernate.PropertyValueException: Error dehydrating property v  alue for C3.DataModel.CFAPTransaction.Vendor --->

NHibernate.HibernateException: Unable to resolve property: APVendorId
at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String
propertyName) at
NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object
entity, String propertyPath) at
NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object
obj, String propertyName, EntityMode entityMode) at
NHibernate.Type.EntityType.GetIdentifier(Object value,
ISessionImplementor session) at
NHibernate.Type.ManyToOneType.NullSafeSet(IDbCommand st, Object value,
Int32 index, Boolean[] settable, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) — End of inner exception
stack trace — at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql,
Object obj, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Object obj, ISessionImplementor session) at
NHibernate.Action.EntityInsertAction.Execute() at
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) at
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) at
NHibernate.Engine.ActionQueue.ExecuteActions() at
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource
session) at
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent
event) at NHibernate.Impl.SessionImpl.Flush() at
NHibernate.Transaction.AdoTransaction.Commit() at
C3.DataModel.Repositories.NHUnitOfWork.Save() in
C:\projects\C3\C3.DataModel.Generated\Generated\NHibernateRepositories.generated.cs:line
2659 at
C3.WebUI.Areas.Finance.Controllers.AccountsPayableController.CreatePayment(CreatePaymentModel
model) in
C:\projects\C3\C3.WebUI\Areas\Finance\Controllers\AccountsPayableController.cs:line
434

UPDATE
Throwing NHibernate into DEBUG mode, I get a bunch of stuff like this:

processing cascade
NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for:
C3.DataModel.APVendor
cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for
collection: C3.DataModel.APVendor.Transactions
done cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for
collection: C3.DataModel.APVendor.Transactions
done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for:
C3.DataModel.APVendor
NHibernate.Event.Default.AbstractFlushingEventListener ERROR Could not synchronize database state with session
NHibernate.PropertyValueException: Error dehydrating property value for C3.DataModel.CFAPTransaction.Vendor —>
NHibernate.HibernateException: Unable to resolve property: APVendorId
at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String
propertyName) at
NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object
entity, String propertyPath) at
NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object
obj, String propertyName, EntityMode entityMode) at
NHibernate.Type.EntityType.GetIdentifier(Object value,
ISessionImplementor session) at
NHibernate.Type.ManyToOneType.NullSafeSet(IDbCommand st, Object value,
Int32 index, Boolean[] settable, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) — End of inner exception
stack trace — at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql,
Object obj, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Object obj, ISessionImplementor session) at
NHibernate.Action.EntityInsertAction.Execute() at
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) at
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) at
NHibernate.Engine.ActionQueue.ExecuteActions() at
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource
session)
C3.WebUI.Areas.Finance.Controllers.AccountsPayableController ERROR C3.WebUI.Areas.Finance.Controllers.AccountsPayableController:
No additional information.
NHibernate.PropertyValueException: Error dehydrating property value for C3.DataModel.CFAPTransaction.Vendor —>
NHibernate.HibernateException: Unable to resolve property: APVendorId
at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String
propertyName) at
NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object
entity, String propertyPath) at
NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object
obj, String propertyName, EntityMode entityMode) at
NHibernate.Type.EntityType.GetIdentifier(Object value,
ISessionImplementor session) at
NHibernate.Type.ManyToOneType.NullSafeSet(IDbCommand st, Object value,
Int32 index, Boolean[] settable, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) — End of inner exception
stack trace — at
NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object
id, Object[] fields, Object rowId, Boolean[] includeProperty,
Boolean[][] includeColumns, Int32 table, IDbCommand statement,
ISessionImplementor session, Int32 index) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql,
Object obj, ISessionImplementor session) at
NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id,
Object[] fields, Object obj, ISessionImplementor session) at
NHibernate.Action.EntityInsertAction.Execute() at
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) at
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) at
NHibernate.Engine.ActionQueue.ExecuteActions() at
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource
session) at
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent
event) at NHibernate.Impl.SessionImpl.Flush() at
NHibernate.Transaction.AdoTransaction.Commit() at
C3.DataModel.Repositories.NHUnitOfWork.Save() in
C:\projects\C3\C3.DataModel.Generated\Generated\NHibernateRepositories.generated.cs:line
2659 at
C3.WebUI.Areas.Finance.Controllers.AccountsPayableController.CreatePayment(CreatePaymentModel
model) in
C:\projects\C3\C3.WebUI\Areas\Finance\Controllers\AccountsPayableController.cs:line
434

It does not appear this is occurring when querying the database. I have a feeling it has problems with me creating a bunch of objects, relating them, and then trying to persist them, but that’s a pure guess.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:00:25+00:00Added an answer on June 5, 2026 at 6:00 am

    It’s likely that nhibernate is not showing the correct property of error, check the adjacent properties in the mapping file, looking for errors in relationship between data types from your database and data types from .net or repeated columns in properties… also check this link Fluent NHibernate – IndexOutOfRange

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I am trying to understand how to use SyndicationItem to display feed which is
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.