2025-04-11 16:30:16,210 [49] ERROR NHibernate.AdoNet.AbstractBatcher - Could not execute query: INSERT INTO `PurchaseOrderInvoice` (`OrderType`, `OrderNumber`, `InvoiceType`, `InvoiceCode`, `InvoiceNumber`, `SupplierId`, `SupplierName`, `SupplierTaxNumber`, `InvoiceDate`, `ReceiveDate`, `InvoiceAmount`, `TaxRate`, `InvoiceStatus`, `Remark`, `AttachmentFile`, `Creator`, `CreateTime`, `Updater`, `UpdateTime`, `Reviewer`, `ReviewDate`, `IsDeleted`) VALUES (?p0, ?p1, ?p2, ?p3, ?p4, ?p5, ?p6, ?p7, ?p8, ?p9, ?p10, ?p11, ?p12, ?p13, ?p14, ?p15, ?p16, ?p17, ?p18, ?p19, ?p20, ?p21);SELECT LAST_INSERT_ID() MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '22' for key 'PurchaseOrderInvoice.UIndex_InvoiceNumber' at MySql.Data.MySqlClient.MySqlStream.ReadPacketAsync(Boolean execAsync) at MySql.Data.MySqlClient.NativeDriver.GetResultAsync(Int32 affectedRow, Int64 insertedId, Boolean execAsync) at MySql.Data.MySqlClient.Driver.GetResultAsync(Int32 statementId, Int32 affectedRows, Int64 insertedId, Boolean execAsync) at MySql.Data.MySqlClient.Driver.NextResultAsync(Int32 statementId, Boolean force, Boolean execAsync) at MySql.Data.MySqlClient.MySqlDataReader.NextResultAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlDataReader.NextResultAsync(Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, Boolean execAsync, CancellationToken cancellationToken) at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at NHibernate.AdoNet.AbstractBatcher.DoExecuteReader(DbCommand cmd) 2025-04-11 16:30:16,216 [49] ERROR NHibernate.Util.ADOExceptionReporter - Duplicate entry '22' for key 'PurchaseOrderInvoice.UIndex_InvoiceNumber'