2025-12-11 17:09:55.176 +05:30 INF Application is shutting down... 2025-12-11 17:10:38.393 +05:30 WRN Using an in-memory repository. Keys will not be persisted to storage. 2025-12-11 17:10:38.494 +05:30 WRN Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. 2025-12-11 17:10:38.553 +05:30 INF Creating key {f14858a3-c212-4d9c-bca6-fa3646f6a491} with creation date 2025-12-11 11:40:38Z, activation date 2025-12-11 11:40:38Z, and expiration date 2026-03-11 11:40:38Z. 2025-12-11 17:10:38.582 +05:30 WRN No XML encryptor configured. Key {f14858a3-c212-4d9c-bca6-fa3646f6a491} may be persisted to storage in unencrypted form. 2025-12-11 17:10:38.891 +05:30 INF Application started. Press Ctrl+C to shut down. 2025-12-11 17:10:38.893 +05:30 INF Hosting environment: Production 2025-12-11 17:10:38.893 +05:30 INF Content root path: C:\inetpub\wwwroot\Sang.FocusIntegration.API 2025-12-11 17:10:38.916 +05:30 81464ca7-4850-491c-b546-d03193b82a0d INF Request starting HTTP/1.1 POST http://103.120.178.195/Sang.FocusIntegration.API/gsg/posttofocusgsgtransactions?transId=15285&docType=1&be=1&countryId=1&isEdit=False - application/json; charset=utf-8 2 2025-12-11 17:10:39.283 +05:30 81464ca7-4850-491c-b546-d03193b82a0d INF HTTP request: Path: /gsg/posttofocusgsgtransactions QueryString: ?transId=15285&docType=1&be=1&countryId=1&isEdit=False Headers: {Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoic2hpamkiLCJ1bmlxdWVfbmFtZSI6InNoaWppIiwibmFtZWlkIjoiMjA5MiIsIkN1c3RvbUNsYWltVHlwZSI6WyJEYXRhYmFzZUtleSIsIkRhdGFiYXNlTmFtZSIsIkNoYW5uZWxJZCIsIkxhbmd1YWdlSWQiXSwiRGF0YWJhc2VLZXkiOiIxIiwiRGF0YWJhc2VOYW1lIjoiU2FuZ0V4REJfR1NHIiwiQ2hhbm5lbElkIjoiMSIsIkxhbmd1YWdlSWQiOiIwIiwibmJmIjoxNzY1NDUxOTQ2LCJleHAiOjE3NjU0NjYzNDYsImlhdCI6MTc2NTQ1MTk0Nn0.guzr48BwtspCEqF5nXkJiSurX0Chx5a5ZAniL4qkjzE}, {Content-Length: 2}, {Content-Type: application/json; charset=utf-8}, {Host: 103.120.178.195}, {traceparent: 00-53bc1ff7b2416c993afe1065cd3c6c63-f7b0344909667fc2-00} Host: 103.120.178.195 Body: {} 2025-12-11 17:10:39.353 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Executing endpoint 'Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api)' 2025-12-11 17:10:39.412 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Route matched with {action = "PostToFocusGsgTransactions", controller = "Gsg"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] PostToFocusGsgTransactions(Int32, Int32, Int32, Int32, Boolean) on controller Sang.FocusIntegration.Api.Controllers.GsgController (Sang.FocusIntegration.Api). 2025-12-11 17:10:40.482 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Start processing HTTP request POST http://103.120.178.195/Focus8API/login 2025-12-11 17:10:40.489 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Sending HTTP request POST http://103.120.178.195/Focus8API/login 2025-12-11 17:10:47.601 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Received HTTP response headers after 7102.3381ms - 200 2025-12-11 17:10:47.611 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF End processing HTTP request after 7142.4847ms - 200 2025-12-11 17:10:47.806 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Formatted Json Request: {"data":[{"Body":[{"Item__Id":13829,"TaxCode__Id":1,"VAT":5,"Unit__Id":1,"Quantity":8.0,"Rate":20.0,"sRemarks":"","ItemExtraDescription":"","Description":"PRO PLAN ADULT DELICATE DIGESTION, DRY CAT FOOD TURKEY,400G","ItemBarcode":"7613033568671","WarrantyNote":"","RMA":"","Batch":{},"ItemExpiryDate":null}],"Header":{"Date":132713483,"CustomerAC__Id":1001,"Currency__Id":7,"Company Master__Id":1,"Division__Id":2,"Branch__Id":6,"Place of supply__Id":1,"Jurisdiction__Id":1,"Salesman__Id":0,"Type Of Voucher__Id":61,"Discount Type__Id":0,"Pay Terms__Id":1,"sNarration":null,"DeliveryTerms":"","CustomerDeliveryAddress":"DUBAI, UAE, , , ","DiscountReference":"","EventDateandName":"","SampleRequestBy__Id":0,"DiscountCouponReference":"","HeaderId":0,"Outlet__Id":2,"WebOrderNo":"ORD276"}}]}. 2025-12-11 17:10:47.811 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Start processing HTTP request POST http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online 2025-12-11 17:10:47.812 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Sending HTTP request POST http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online 2025-12-11 17:10:49.661 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Received HTTP response headers after 1848.21ms - 200 2025-12-11 17:10:49.662 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF End processing HTTP request after 1852.2351ms - 200 2025-12-11 17:10:49.668 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Transaction result: OK - {"data":[null],"url":"http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online","result":-1,"message":"Transaction Validation is failed: Batch not available"} 2025-12-11 17:10:49.869 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 WRN Transaction Failed Sync Status : TransId - 15285, TotalVouchers - 1, FailureCount - 1, OverallFocusStatus - 3 2025-12-11 17:10:49.953 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Executing BadRequestObjectResult, writing value of type 'Sang.Service.Common.ApiResponse.ApiResponse'. 2025-12-11 17:10:49.994 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Executed action Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api) in 10572.4481ms 2025-12-11 17:10:49.996 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Executed endpoint 'Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api)' 2025-12-11 17:10:49.998 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF HTTP Response: StatusCode: 400 Headers: {X-Correlation-Id: 81464ca7-4850-491c-b546-d03193b82a0d}, {Content-Type: application/json; charset=utf-8}, {Content-Length: 463} Body: {"status":"Failure","statusCode":5000,"message":"Failed Posting to Focus.","result":"[{\"Voucher\":\"Delivery Note - Nestle Online\",\"Url\":\"http://103.120.178.195/Focus8API/Transactions/Delivery Note - Nestle Online\",\"Response\":\"{\\\"data\\\":[null],\\\"url\\\":\\\"http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online\\\",\\\"result\\\":-1,\\\"message\\\":\\\"Transaction Validation is failed: Batch not available\\\"}\"}]"} 2025-12-11 17:10:50.033 +05:30 8e11d45c-51b5-4d03-af66-a46f499da054 INF Request finished HTTP/1.1 POST http://103.120.178.195/Sang.FocusIntegration.API/gsg/posttofocusgsgtransactions?transId=15285&docType=1&be=1&countryId=1&isEdit=False - 400 463 application/json; charset=utf-8 11118.1769ms 2025-12-11 17:14:48.479 +05:30 60c0d119-2b72-493f-b194-7cd031659a28 INF Request starting HTTP/1.1 POST http://103.120.178.195/Sang.FocusIntegration.API/gsg/posttofocusgsgtransactions?transId=15286&docType=1&be=1&countryId=1&isEdit=False - application/json; charset=utf-8 2 2025-12-11 17:14:48.489 +05:30 60c0d119-2b72-493f-b194-7cd031659a28 INF HTTP request: Path: /gsg/posttofocusgsgtransactions QueryString: ?transId=15286&docType=1&be=1&countryId=1&isEdit=False Headers: {Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoic2hpamkiLCJ1bmlxdWVfbmFtZSI6InNoaWppIiwibmFtZWlkIjoiMjA5MiIsIkN1c3RvbUNsYWltVHlwZSI6WyJEYXRhYmFzZUtleSIsIkRhdGFiYXNlTmFtZSIsIkNoYW5uZWxJZCIsIkxhbmd1YWdlSWQiXSwiRGF0YWJhc2VLZXkiOiIxIiwiRGF0YWJhc2VOYW1lIjoiU2FuZ0V4REJfR1NHIiwiQ2hhbm5lbElkIjoiMSIsIkxhbmd1YWdlSWQiOiIwIiwibmJmIjoxNzY1NDUxOTQ2LCJleHAiOjE3NjU0NjYzNDYsImlhdCI6MTc2NTQ1MTk0Nn0.guzr48BwtspCEqF5nXkJiSurX0Chx5a5ZAniL4qkjzE}, {Content-Length: 2}, {Content-Type: application/json; charset=utf-8}, {Host: 103.120.178.195}, {traceparent: 00-6a7ad67bbd27facf83e0900074b7ab95-a447c6f074652421-00} Host: 103.120.178.195 Body: {} 2025-12-11 17:14:48.495 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Executing endpoint 'Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api)' 2025-12-11 17:14:48.497 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Route matched with {action = "PostToFocusGsgTransactions", controller = "Gsg"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] PostToFocusGsgTransactions(Int32, Int32, Int32, Int32, Boolean) on controller Sang.FocusIntegration.Api.Controllers.GsgController (Sang.FocusIntegration.Api). 2025-12-11 17:14:48.593 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Start processing HTTP request POST http://103.120.178.195/Focus8API/login 2025-12-11 17:14:48.593 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Sending HTTP request POST http://103.120.178.195/Focus8API/login 2025-12-11 17:14:48.647 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Received HTTP response headers after 53.9ms - 200 2025-12-11 17:14:48.648 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF End processing HTTP request after 55.2182ms - 200 2025-12-11 17:14:48.650 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Formatted Json Request: {"data":[{"Body":[{"Item__Id":13829,"TaxCode__Id":1,"VAT":5,"Unit__Id":1,"Quantity":24.0,"Rate":20.0,"sRemarks":"","ItemExtraDescription":"","Description":"PRO PLAN ADULT DELICATE DIGESTION, DRY CAT FOOD TURKEY,400G","ItemBarcode":"7613033568671","WarrantyNote":"","RMA":"","Batch":{},"ItemExpiryDate":null}],"Header":{"Date":132713483,"CustomerAC__Id":1001,"Currency__Id":7,"Company Master__Id":1,"Division__Id":2,"Branch__Id":6,"Place of supply__Id":1,"Jurisdiction__Id":1,"Salesman__Id":0,"Type Of Voucher__Id":61,"Discount Type__Id":0,"Pay Terms__Id":1,"sNarration":null,"DeliveryTerms":"","CustomerDeliveryAddress":"DUBAI, UAE, , , ","DiscountReference":"","EventDateandName":"","SampleRequestBy__Id":0,"DiscountCouponReference":"","HeaderId":0,"Outlet__Id":2,"WebOrderNo":"ORD277"}}]}. 2025-12-11 17:14:48.652 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Start processing HTTP request POST http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online 2025-12-11 17:14:48.652 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Sending HTTP request POST http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online 2025-12-11 17:14:49.944 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Received HTTP response headers after 1291.6516ms - 200 2025-12-11 17:14:49.944 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF End processing HTTP request after 1292.685ms - 200 2025-12-11 17:14:49.945 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Transaction result: OK - {"data":[null],"url":"http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online","result":-1,"message":"Transaction Validation is failed: Batch not available"} 2025-12-11 17:14:49.945 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 WRN Transaction Failed Sync Status : TransId - 15286, TotalVouchers - 1, FailureCount - 1, OverallFocusStatus - 3 2025-12-11 17:14:49.963 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Executing BadRequestObjectResult, writing value of type 'Sang.Service.Common.ApiResponse.ApiResponse'. 2025-12-11 17:14:49.968 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Executed action Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api) in 1470.1206ms 2025-12-11 17:14:49.968 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Executed endpoint 'Sang.FocusIntegration.Api.Controllers.GsgController.PostToFocusGsgTransactions (Sang.FocusIntegration.Api)' 2025-12-11 17:14:49.968 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF HTTP Response: StatusCode: 400 Headers: {X-Correlation-Id: 60c0d119-2b72-493f-b194-7cd031659a28}, {Content-Type: application/json; charset=utf-8}, {Content-Length: 463} Body: {"status":"Failure","statusCode":5000,"message":"Failed Posting to Focus.","result":"[{\"Voucher\":\"Delivery Note - Nestle Online\",\"Url\":\"http://103.120.178.195/Focus8API/Transactions/Delivery Note - Nestle Online\",\"Response\":\"{\\\"data\\\":[null],\\\"url\\\":\\\"http://103.120.178.195/Focus8API/Transactions/Delivery%20Note%20-%20Nestle%20Online\\\",\\\"result\\\":-1,\\\"message\\\":\\\"Transaction Validation is failed: Batch not available\\\"}\"}]"} 2025-12-11 17:14:49.970 +05:30 45dee9f1-56bd-411b-8b60-c2896fdd5e64 INF Request finished HTTP/1.1 POST http://103.120.178.195/Sang.FocusIntegration.API/gsg/posttofocusgsgtransactions?transId=15286&docType=1&be=1&countryId=1&isEdit=False - 400 463 application/json; charset=utf-8 1490.8954ms 2025-12-11 17:25:37.332 +05:30 INF Application is shutting down...