Batch update returned unexpected row count from update; actual row count: 3; expected: 2 ErrorsHelpAbout NHibernate.AdoNet.TooManyRowsAffectedException : Batch update returned unexpected row count from update; actual row count: 3; expected: 2 NHibernate.AdoNet.TooManyRowsAffectedException: Batch update returned unexpected row count from update; actual row count: 3; expected: 2 at NHibernate.AdoNet.Expectations.VerifyOutcomeBatched(Int32 expectedRowCount, Int32 rowCount) at NHibernate.AdoNet.SqlClientBatchingBatcher.DoExecuteBatch(IDbCommand ps) at NHibernate.AdoNet.AbstractBatcher.ExecuteBatchWithTiming(IDbCommand ps) at NHibernate.AdoNet.AbstractBatcher.ExecuteBatch() at NHibernate.Engine.ActionQueue.ExecuteActions() at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) at NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event) at NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces) at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) at NHibernate.Impl.CriteriaImpl.List(IList results) at NHibernate.Impl.CriteriaImpl.List[T]() at Mx.Inventory.Services.Repositories.EntityLocationRepository.GetLocationsByEntity(IUnitOfWork unitOfWork, Int64 entityId) at Mx.Inventory.Services.Inventory.AbstractOrderCommandHelper.GetSalesOrderToCreateSupplyOrder(Int64 entityId, Int64 vendorId, DateTime deliveryDate, DateTime coverUntilDate, String userName, ActionItemInstance scheduledOrderInstance) at Mx.Inventory.Services.CommandServices.SalesOrderCommandService.CreateAutoSelectOrder(Int64 entityId, Int64 vendorId, DateTime deliveryDate, DateTime coverUntilDate, String userName, ActionItemInstance scheduledOrderInstance) at Mx.Inventory.Services.CommandServices.SalesOrderCommandService.CreateAutoSelectTemplate(Int64 entityId, Int64 vendorId, DateTime deliveryDate, DateTime coverUntilDate, String userName, Int32 actionItemInstanceId) at Mx.Web.UI.Areas.Inventory.Order.Api.OrderController.PostCreateAutoSelectTemplate(Int64 entityId, Int64 vendorId, String deliveryDate, String coverUntilDate) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext() Logged on Monday, April 08, 2019 at 9:33:52 PM See also: Raw/Source data in XML or in JSON Server Variables Name Value ALL_HTTP HTTP_CACHE_CONTROL:no-cache, no-store, must-revalidate HTTP_CONNECTION:Keep-Alive HTTP_PRAGMA:no-cache HTTP_CONTENT_LENGTH:0 HTTP_EXPIRES:0 HTTP_ACCEPT:application/json, text/plain, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-US HTTP_COOKIE:__utmz=169128318.1548267407.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=169128318.561781591.1548267407.1548267407.1548603560.2; _gat_client=1; _gat_macromatix=1; OAMAuthnHintCookie=0@1554754564; cfaOrigReqURL=https%3A%2F%2Flogin.cfahome.com%2Flogin%2Flogin%3Freload%3Dy; logindomain=login.cfahome.com; _ga=GA1.2.561781591.1548267407; _gid=GA1.2.572509375.1554772861; .ASPXFORMSAUTH=9DBA57024DEFED897C17F4265742DF1B02DBF12ACA7A934A624BE608114D6A8E4FA221524D425F535C82208CE36481FA1C638B4941169EFB8DD698230BF909ACCE9000BF93236B225060496146537EA7B6C2AD6854F777602E24AC92CF973E510AD8A0271A7F04A86F8FA0DBBAE28C150F066668E9237C27C78D693AABFA94F8689C6977; __utmz=217751118.1548270331.431.6.utmcsr=cfahome.okta.com|utmccn=(referral)|utmcmd=referral|utmcct=/login/sessionCookieRedirect; sideBar=expanded; Mx_LabourScheduler_Warnings=on; pin=false; __utma=217751118.191389322.1511360251.1554751174.1554772986.546; tinymcePasteText=1; mxLocalisation=lastLocale=en-US&skinId=1; tab=menu; ASP.NET_SessionId=qoy1pf45tijzkxe2iu2wd145; __utmb=217751118.0.10.1554772986; __utmc=217751118 HTTP_HOST:m.informtesting.cfahome.com HTTP_REFERER:https://m.informtesting.cfahome.com/ HTTP_USER_AGENT:Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko HTTP_AUTHTOKEN:CEC421E7B593AABFA48CA2F459DE46F759DA9F0EE648163C3A8F402D9FF9D703FE618FA58928270BAE4FD3B4C4EE3E1BF556FEE685BD362020AE0E4BCD88DF958E86D796A49C7A4745C5109342230D2B9C3AECE0F883CFD5AC96408D1FF03060D0D91521D852F7EF80160A3A36C97FF62871245D6DBAE64A1177F92131A6FFC50D2910FDA1D231D23AE032A69B96E6430785DF6B ALL_RAW Cache-Control: no-cache, no-store, must-revalidate Connection: Keep-Alive Pragma: no-cache Content-Length: 0 Expires: 0 Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate Accept-Language: en-US Cookie: __utmz=169128318.1548267407.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=169128318.561781591.1548267407.1548267407.1548603560.2; _gat_client=1; _gat_macromatix=1; OAMAuthnHintCookie=0@1554754564; cfaOrigReqURL=https%3A%2F%2Flogin.cfahome.com%2Flogin%2Flogin%3Freload%3Dy; logindomain=login.cfahome.com; _ga=GA1.2.561781591.1548267407; _gid=GA1.2.572509375.1554772861; .ASPXFORMSAUTH=9DBA57024DEFED897C17F4265742DF1B02DBF12ACA7A934A624BE608114D6A8E4FA221524D425F535C82208CE36481FA1C638B4941169EFB8DD698230BF909ACCE9000BF93236B225060496146537EA7B6C2AD6854F777602E24AC92CF973E510AD8A0271A7F04A86F8FA0DBBAE28C150F066668E9237C27C78D693AABFA94F8689C6977; __utmz=217751118.1548270331.431.6.utmcsr=cfahome.okta.com|utmccn=(referral)|utmcmd=referral|utmcct=/login/sessionCookieRedirect; sideBar=expanded; Mx_LabourScheduler_Warnings=on; pin=false; __utma=217751118.191389322.1511360251.1554751174.1554772986.546; tinymcePasteText=1; mxLocalisation=lastLocale=en-US&skinId=1; tab=menu; ASP.NET_SessionId=qoy1pf45tijzkxe2iu2wd145; __utmb=217751118.0.10.1554772986; __utmc=217751118 Host: m.informtesting.cfahome.com Referer: https://m.informtesting.cfahome.com/ User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko AuthToken: CEC421E7B593AABFA48CA2F459DE46F759DA9F0EE648163C3A8F402D9FF9D703FE618FA58928270BAE4FD3B4C4EE3E1BF556FEE685BD362020AE0E4BCD88DF958E86D796A49C7A4745C5109342230D2B9C3AECE0F883CFD5AC96408D1FF03060D0D91521D852F7EF80160A3A36C97FF62871245D6DBAE64A1177F92131A6FFC50D2910FDA1D231D23AE032A69B96E6430785DF6B APPL_MD_PATH /LM/W3SVC/7/ROOT APPL_PHYSICAL_PATH H:\Macromatix\Web\CFATesting.Mobile\ AUTH_PASSWORD ***** AUTH_TYPE AUTH_USER stacy.privalova CERT_COOKIE CERT_FLAGS CERT_ISSUER CERT_KEYSIZE 256 CERT_SECRETKEYSIZE 2048 CERT_SERIALNUMBER CERT_SERVER_ISSUER C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert SHA2 High Assurance Server CA CERT_SERVER_SUBJECT C=US, S=Georgia, L=Atlanta, O="Chick-fil-A, Inc.", OU=Information Technology, CN=m.informtesting.cfahome.com CERT_SUBJECT CONTENT_LENGTH 0 CONTENT_TYPE GATEWAY_INTERFACE CGI/1.1 HTTP_ACCEPT application/json, text/plain, */* HTTP_ACCEPT_ENCODING gzip, deflate HTTP_ACCEPT_LANGUAGE en-US HTTP_AUTHTOKEN CEC421E7B593AABFA48CA2F459DE46F759DA9F0EE648163C3A8F402D9FF9D703FE618FA58928270BAE4FD3B4C4EE3E1BF556FEE685BD362020AE0E4BCD88DF958E86D796A49C7A4745C5109342230D2B9C3AECE0F883CFD5AC96408D1FF03060D0D91521D852F7EF80160A3A36C97FF62871245D6DBAE64A1177F92131A6FFC50D2910FDA1D231D23AE032A69B96E6430785DF6B HTTP_CACHE_CONTROL no-cache, no-store, must-revalidate HTTP_CONNECTION Keep-Alive HTTP_CONTENT_LENGTH 0 HTTP_COOKIE __utmz=169128318.1548267407.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=169128318.561781591.1548267407.1548267407.1548603560.2; _gat_client=1; _gat_macromatix=1; OAMAuthnHintCookie=0@1554754564; cfaOrigReqURL=https%3A%2F%2Flogin.cfahome.com%2Flogin%2Flogin%3Freload%3Dy; logindomain=login.cfahome.com; _ga=GA1.2.561781591.1548267407; _gid=GA1.2.572509375.1554772861; .ASPXFORMSAUTH=9DBA57024DEFED897C17F4265742DF1B02DBF12ACA7A934A624BE608114D6A8E4FA221524D425F535C82208CE36481FA1C638B4941169EFB8DD698230BF909ACCE9000BF93236B225060496146537EA7B6C2AD6854F777602E24AC92CF973E510AD8A0271A7F04A86F8FA0DBBAE28C150F066668E9237C27C78D693AABFA94F8689C6977; __utmz=217751118.1548270331.431.6.utmcsr=cfahome.okta.com|utmccn=(referral)|utmcmd=referral|utmcct=/login/sessionCookieRedirect; sideBar=expanded; Mx_LabourScheduler_Warnings=on; pin=false; __utma=217751118.191389322.1511360251.1554751174.1554772986.546; tinymcePasteText=1; mxLocalisation=lastLocale=en-US&skinId=1; tab=menu; ASP.NET_SessionId=qoy1pf45tijzkxe2iu2wd145; __utmb=217751118.0.10.1554772986; __utmc=217751118 HTTP_EXPIRES 0 HTTP_HOST m.informtesting.cfahome.com HTTP_PRAGMA no-cache HTTP_REFERER https://m.informtesting.cfahome.com/ HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko HTTPS on HTTPS_KEYSIZE 256 HTTPS_SECRETKEYSIZE 2048 HTTPS_SERVER_ISSUER C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert SHA2 High Assurance Server CA HTTPS_SERVER_SUBJECT C=US, S=Georgia, L=Atlanta, O="Chick-fil-A, Inc.", OU=Information Technology, CN=m.informtesting.cfahome.com INSTANCE_ID 7 INSTANCE_META_PATH /LM/W3SVC/7 LOCAL_ADDR 10.85.101.183 LOGON_USER PATH_INFO /Api/Entity/5704/Inventory/Order PATH_TRANSLATED H:\Macromatix\Web\CFATesting.Mobile\Api\Entity\5704\Inventory\Order QUERY_STRING coverUntilDate=2019-04-09T06:00:00&deliveryDate=2019-04-08T06:00:00&vendorId=10 REMOTE_ADDR 45.26.152.126 REMOTE_HOST 45.26.152.126 REMOTE_PORT 51943 REMOTE_USER stacy.privalova REQUEST_METHOD POST SCRIPT_NAME /Api/Entity/5704/Inventory/Order SERVER_NAME m.informtesting.cfahome.com SERVER_PORT 443 SERVER_PORT_SECURE 1 SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE Microsoft-IIS/8.5 URL /Api/Entity/5704/Inventory/Order Powered by ELMAH, version 1.2.14706.955. Copyright (c) 2004, Atif Aziz. All rights reserved. Licensed under Apache License, Version 2.0. Server date is Monday, 08 April 2019. Server time is 22:19:29. All dates and times displayed are in the Eastern Daylight Time zone. This log is provided by the In-Memory Error Log.