2025/6/21 0:01:46 sql:INSERT INTO SinadealTradeDB..[tdCOMain]([COID],[PONo],[OrderDate],[ExpectDate],[Freight],[TotalPrice],[CurrencyCode],[InputUserID],[InputTime],[PARecordID],[OrderRemark],[COLevel],[COState],[SpecialFlag],[PrintFlag],[DissensionFlag],[CompleteFlag],[FormerlyOrder],[COType] ,[HaveMend],[CustomerID],[CCountry],[CProvince],[CCity],[CAddressLineOne],[CAddressLineTwo],[CPostalCode],[CContact],[Ctel],[CFax],[ShipVia],[Spec],[TransactionNumber],[MangoFlag],[MangoNumber],[StateTime],[Stock],[Itemtype],[TotalCost],[ShipCost],[TotalWeight],[WmsState],[FreightSide],[Name],RPayMethod,RAccount,CurrentRate,CanAutoDownLoad,BuyerId,TransactionID,Email,OrderSourceType,CurrencyShorts,CNYExchangeRate,LastModifier,LasModifyDate,OrderType,DropShopping,OrderConfirmMode,LocalTime,AllotType,VATNO,HouseNumber,IsVirtual,ShippingWHType,[OnLine],ContractNo,GoodsTotalSalesAmount,RelationPoNo,PlatformChargeRate,CompanyOperatingRates,AdjustThePriceOfGoods,AdjustTheShippingFee,HoldOn,SalesType,ShippingRemark,ApprovalStatus,ApprovalFlag,GrossProfit,GrossInterestRate,WarehouseAddressID,payment,NewCoustomerId,ApprovalLevel,Creator,StoreManager,RemoteFee,TaxOnAPI,FulfillmentChannel,MainOrderId,IsSubOrder)values(@COID,@PONo,@OrderDate,@ExpectDate,@Freight,@TotalPrice,@CurrencyCode,@InputUserID,@InputTime,@PARecordID,@OrderRemark,@COLevel,@COState,@SpecialFlag,@PrintFlag,@DissensionFlag,@CompleteFlag,@FormerlyOrder,@COType,@HaveMend,@CustomerID,@CCountry,@CProvince,@CCity,@CAddressLineOne,@CAddressLineTwo,@CPostalCode,@CContact,N'603076637',@CFax,@ShipVia,@Spec,@TransactionNumber,@MangoFlag,@MangoNumber,@StateTime,@Stock,@Itemtype,@TotalCost,@ShipCost,@TotalWeight,0,@FreightSide,N'DHL',@RPayMethod,@RAccount,@CurrentRate,@CanAutoDownLoad,@BuyerId,@TransactionID,@Email,@OrderSourceType,@CurrencyShorts,@CNYExchangeRate,@LastModifier,GETDATE(),@OrderType,@DropShopping,@OrderConfirmMode,@LocalTime,@AllotType,@VATNO,@HouseNumber,@IsVirtual,@ShippingWHType,@OnLine,@ContractNo,@GoodsTotalSalesAmount,@RelationPoNo,@PlatformChargeRate,@CompanyOperatingRates,@AdjustThePriceOfGoods,@AdjustTheShippingFee,@HoldOn,@SalesType,@ShippingRemark,@ApprovalStatus,@ApprovalFlag,@GrossProfit,@GrossInterestRate,@WarehouseAddressID,@payment,@NewCoustomerId,@ApprovalLevel,@Creator,@StoreManager,@RemoteFee,@TaxOnAPI,@FulfillmentChannel,@MainOrderId,@IsSubOrder) 错误信息:System.Data.SqlClient.SqlException (0x80131904): 不能在具有唯一索引“ix_PONo”的对象“dbo.tdCOMain”中插入重复键的行。重复键值为 (G16876853)。 语句已终止。 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) 在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) 在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() 在 Vayava.Erp.Dal.InputOrderService.ExecuteSqlTran(List`1 SQLStringList, IDictionary`2 Dict) ClientConnectionId:e140b4cb-a149-4cda-bd5a-66b19df5e3d2 Error Number:2601,State:1,Class:14