Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. Ошибка /0/rest/UsrIntegrationService/Orders 200 при передаче: {
  2. "ordersData": [
  3. {
  4. "orderNumber": "СА000024583",
  5. "orderID1C": "2fcb3685-a952-11e9-80d7-0050560118b6",
  6. "orderDate": "2019/07/18 15:07:21",
  7. "orderContactUsrID1C": "63b52eeb-d63b-11e5-a1d7-984be16421ed",
  8. "orderUsrAccountID1C": "cf6ed7af-7187-11e9-80d6-0050560118b6",
  9. "orderDepartmentID1C": "da3b59a3-d1b8-11e0-860a-002215b20579",
  10. "orderScheduledAmount": "0",
  11. "orderPaidAmount": "0",
  12. "orderProductInfo": [
  13. {
  14. "productID1C": "187c6eb8-d127-11e7-80ca-005056013062",
  15. "quantity": "3",
  16. "usrOrderPrice": "290.8",
  17. "usrAmount": "872.39",
  18. "orderScheduledQuantity": "3",
  19. "orderShippedCanceledQuantity": "0",
  20. "orderLeftToShipQuantity": "3",
  21. "orderReserveQuantity": "0",
  22. "orderFreeRemainderQuantity": "0",
  23. "orderRemainsToProvideQuantity": "243"
  24. },
  25. {
  26. "productID1C": "5d2665d2-7fc5-11e6-8297-984be16421ed",
  27. "quantity": "2",
  28. "usrOrderPrice": "6316.75",
  29. "usrAmount": "12633.5",
  30. "orderScheduledQuantity": "2",
  31. "orderShippedCanceledQuantity": "0",
  32. "orderLeftToShipQuantity": "2",
  33. "orderReserveQuantity": "0",
  34. "orderFreeRemainderQuantity": "0",
  35. "orderRemainsToProvideQuantity": "107.2"
  36. },
  37. {
  38. "productID1C": "f477eaa4-7ef7-11e6-8297-984be16421ed",
  39. "quantity": "15",
  40. "usrOrderPrice": "774.59",
  41. "usrAmount": "11618.82",
  42. "orderScheduledQuantity": "15",
  43. "orderShippedCanceledQuantity": "0",
  44. "orderLeftToShipQuantity": "15",
  45. "orderReserveQuantity": "0",
  46. "orderFreeRemainderQuantity": "0",
  47. "orderRemainsToProvideQuantity": "75"
  48. }
  49. ]
  50. }
  51. ]
  52. } Ответ: {"Result":1,"ResultCodeDescription":[{"Key":"InternalError","Value":"Record not saved; System.Data.SqlClient.SqlException (0x80131904): Ошибка преобразования значения nvarchar \"107.2\" в тип данных int.\r\n в System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n в System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n в System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n в System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)\r\n в 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)\r\n в 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)\r\n в System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)\r\n в System.Data.SqlClient.SqlCommand.ExecuteNonQuery()\r\n в Polly.Policy.<>c__DisplayClass119_0`1.<Execute>b__0(Context ctx, CancellationToken ct)\r\n в Polly.Policy.<>c__DisplayClass129_0`1.<ExecuteInternal>b__0(Context ctx, CancellationToken ct)\r\n в Polly.Policy.<>c__DisplayClass103_0.<NoOp>b__1(Context ctx, CancellationToken ct)\r\n в Polly.NoOp.NoOpEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)\r\n в Polly.Policy.<>c.<NoOp>b__103_0(Action`2 action, Context context, CancellationToken cancellationToken)\r\n в Polly.Policy.ExecuteInternal[TResult](Func`3 action, Context context, CancellationToken cancellationToken)\r\n в Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)\r\n в Polly.Policy.Execute[TResult](Func`1 action)\r\n в Terrasoft.DB.MSSql.MSSqlExecutor.FailoverExecute[TResult](DbCommand command, Func`1 func)\r\n в Terrasoft.Core.DB.DBExecutor.ExecuteCommand[TResult](Func`2 commandExecutionCallback, String sqlText, QueryParameterCollection queryParameters, CancellationToken cancellationToken)\r\n в Terrasoft.Core.DB.DBExecutor.Execute(String sqlText, QueryParameterCollection queryParameters)\r\n в Terrasoft.Core.DB.BaseInsert.Execute()\r\n в Terrasoft.Configuration.UsrIntegrationService.Order(OrderData order)\r\nClientConnectionId:2e52605e-821a-49cb-bfd9-4bc89b0a257d\r\nError Number: 245, State: 1, Class: 16"}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement