UNICOMMERCE ERRORS
Error 1: This error comes when in the first call for createInvoiceandGenerateLabel API we get error.
Sometimes it comes on the first call as well.
Error code: 20003.0
Error message: INVALID_PACKAGE_STATE
Resolution remark: Resolved
url: https://mplsports.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
{
"errors": [
{
"code": 20003.0,
"description": "Invalid package status READY_TO_SHIP, SP: ESBPB05475, invoicing channel: WCUSTOM",
"message": "INVALID_PACKAGE_STATE"
},
{
"code": 20003.0,
"description": "Invalid package status READY_TO_SHIP, SP: ESBPB05475, invoicing channel: WCUSTOM",
"message": "INVALID_PACKAGE_STATE"
}
],
"successful": false
}
Temporary Resolution:
In this case the invoice and label are already generated in UC. We can download it from UC and update it manually in db to process the order.
Permanent Resolution:
If we encounter this error we can do the following:
1) Call the get invoice label API of UC:
url: https://eshoptcq.unicommerce.com/services/rest/v1/oms/shippingPackage/getInvoiceLabel
Sample request body:
{
"shippingPackageCode": "ESHO04322"
}
Sample response:
{
"successful": true,
"message": null,
"errors": [],
"warnings": null,
"invoiceCode": "TATACLIQ-A16506220220A084",
"invoiceDisplayCode": "A16506220220A084",
"label": "JVBERi0xLjQKJeLjz9MKNSAwIG9iago8PC9Db2xvclNwYWNlL0RldmljZUdyYXkvU3VidHlwZS9JbWFnZS9IZWlnaHQgMTMwL0ZpbHRlci9GbGF0ZURlY29kZS9UeXBlL1hPYmplY3QvV2lkdGggMjU1L0xlbmd0aCAxMzM5L0JpdHNQZXJDb21wb25lbnQgOD4+c3RyZWFtCnic7VpbcsMgDPT9L02ncQx6rEBgwEmr/WgdENIuSDLp9DgCgUAgEAgEAoFAIBAIBAKBOUjpaQb7QLSmX/wL9YmCDbYXLqa2Hgmq965dw2kHfsXekP7lWKn787fSKXxscz5Zfl14njx/KVO98FvqpghKcoLaJGpdJuAjNbxbR4tbkO39fMNnIzJIbUy3His3vTX669LJvBXeYiX8AiuXprcRMZ25DTYDKZ9XQvllrGcXpXp41DWkyZ1LSC20ckV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DAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMTUxMSAwMDAwMCBuIAowMDAwMDA5ODY3IDAwMDAwIG4gCjAwMDAwMDk5MjAgMDAwMDAgbiAKMDAwMDAxMzQ4NiAwMDAwMCBuIAowMDAwMDEyMTg3IDAwMDAwIG4gCjAwMDAwMTM1MzggMDAwMDAgbiAKMDAwMDAxMzU5MSAwMDAwMCBuIAowMDAwMDEzNjMwIDAwMDAwIG4gCjAwMDAwMTM3MjMgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDE0IDAgUi9JRCBbPGE3MWFlZWU3MGEyZTczMmRkZjQ2N2MxMzZkNjhlMDk4Pjw4YWRmYzNjYTg4MTM4M2M0OGMwY2MxOWNhMmNjZThmZD5dL1Jvb3QgMTMgMCBSL1NpemUgMTU+PgolaVRleHQtNS40LjIKc3RhcnR4cmVmCjEzODc3CiUlRU9GCg=="
}
2) Generate invoice pdf by using the invoiceCode received from resposne of previous API and get invoice pdf Unicommerce API.
url: https://eshoptcq.unicommerce.com/services/rest/v1/oms/invoice/details/show?invoiceCodes=TATACLIQ-A16506220220A084
3) For label, we can generate label by decoding the label string received from getInvoiceLabel API.
4) For courier details and tracking id, we can call get sale order API.
curl --location --request POST 'https://tcns.unicommerce.com/services/rest/v1/oms/saleorder/get' \
--header 'Authorization: bearer 380b94b4-4e71-4f5e-9265-5c7bbf4c516b' \
--header 'facility: null' \
--header 'Content-Type: application/json' \
--data-raw '{
"code":"WW1000832948",
"facilityCodes": [
"ESB-PAT-B2C-01"
]
}'
sample response:
{
"successful": true,
"message": null,
"errors": [],
"warnings": null,
"saleOrderDTO": {
"code": "WW1000832948",
"displayOrderCode": "WW1000832948",
"channel": "WCUSTOM",
"source": "CUSTOM",
"displayOrderDateTime": 1645345353000,
"status": "COMPLETE",
"created": 1645345410000,
"updated": 1645385435000,
"fulfillmentTat": 1645431753000,
"notificationEmail": "",
"notificationMobile": "",
"customerGSTIN": null,
"cod": true,
"thirdPartyShipping": false,
"priority": 1,
"currencyCode": "INR",
"customerCode": null,
"billingAddress": {
"id": "4433304",
"name": "Anjugam",
"addressLine1": "865 Ramurthynagar new police station",
"addressLine2": null,
"city": "Bangalore",
"district": null,
"state": "KA",
"country": "IN",
"pincode": "560016",
"phone": "9886685801",
"email": null,
"type": "HOME"
},
"addresses": [
{
"id": "4433304",
"name": "Anjugam",
"addressLine1": "865 Ramurthynagar new police station",
"addressLine2": null,
"city": "Bangalore",
"district": null,
"state": "KA",
"country": "IN",
"pincode": "560016",
"phone": "9886685801",
"email": null,
"type": "HOME"
}
],
"shippingPackages": [
{
"code": "ESBPB07051",
"channelShipmentCode": null,
"saleOrderCode": "WW1000832948",
"channel": "WCUSTOM",
"status": "DISPATCHED",
"shippingPackageType": "DEFAULT",
"shippingProvider": "SHIPROCKET_WFORWOMAN",
"shippingCourier": "Delhivery",
"shippingMethod": "Standard-COD",
"trackingNumber": "8895911112344",
"trackingStatus": "NO_INFORMATION",
"courierStatus": "Pickup Exception",
"estimatedWeight": null,
"actualWeight": null,
"customer": "Anjugam",
"created": 1645345800000,
"updated": 1645468645000,
"dispatched": 1645353250000,
"delivered": null,
"invoice": 3983336,
"invoiceCode": "INS6724",
"invoiceDisplayCode": "INS6724",
"invoiceDate": 1645353237000,
"noOfItems": 1,
"city": "Bangalore",
"collectableAmount": 679.00,
"collectedAmount": null,
"paymentReconciled": false,
"podCode": null,
"shippingManifestCode": "SM11110",
"items": {
"8907819210380": {
"itemSku": "8907819210380",
"itemName": "19AUW12258-111792",
"itemTypeImageUrl": "https://buywclothes.com/promotions/MF19/W/Low_Res_Grey/19AUW12258-111792/19AUW12258-111792_1.JPG",
"itemTypePageUrl": "",
"quantity": 1
}
},
"customFieldValues": [
{
"fieldName": "POSInvoiceNo",
"fieldValue": "",
"valueType": "text",
"displayName": "POS Invoice No",
"required": false,
"possibleValues": [
""
]
}
],
"shippingLabelLink": "https://unicommerce-channel-shippinglabels.s3.amazonaws.com/1645353242_shipping-label-186987597-8895911112344.pdf",
"irn": null
}
],
"saleOrderItems": [
{
"id": 3613596,
"shippingPackageCode": null,
"shippingPackageStatus": null,
"facilityCode": "ESB-PAT-B2C-01",
"facilityName": "ESB-PATAUDI-B2C",
"alternateFacilityCode": "ESB-PAT-B2C-01",
"reversePickupCode": null,
"shippingAddressId": 4433304,
"packetNumber": 0,
"combinationIdentifier": null,
"combinationDescription": null,
"type": "HOPPABLE",
"item": null,
"shippingMethodCode": "STD",
"itemName": "19AUW12258-111792",
"itemSku": "8907819210380",
"sellerSkuCode": "8907819210380",
"channelProductId": "8907819210380",
"imageUrl": "https://buywclothes.com/promotions/MF19/W/Low_Res_Grey/19AUW12258-111792/19AUW12258-111792_1.JPG",
"statusCode": "CANCELLED",
"code": "WW1000832948-1",
"shelfCode": "DEFAULT",
"totalPrice": 679.00,
"sellingPrice": 679.00,
"shippingCharges": 0.00,
"shippingMethodCharges": 0.00,
"cashOnDeliveryCharges": 0.00,
"prepaidAmount": 0.00,
"voucherCode": null,
"voucherValue": 0.00,
"storeCredit": 0.00,
"discount": 0.00,
"giftWrap": null,
"giftWrapCharges": 0.00,
"taxPercentage": null,
"giftMessage": null,
"cancellable": false,
"editAddress": false,
"reversePickable": false,
"packetConfigurable": false,
"created": 1645345410000,
"updated": 1645353248000,
"onHold": false,
"saleOrderItemAlternateId": null,
"cancellationReason": "tcnssupport110@radiate.net.in:Placed by mistake",
"cancelledBySeller": null,
"pageUrl": "",
"color": null,
"brand": "W",
"size": "16",
"replacementSaleOrderCode": null,
"bundleSkuCode": null,
"customFieldValues": [
{
"fieldName": "eshopbox_barcode",
"fieldValue": "TP-IB031493",
"valueType": "text",
"displayName": "Eshopbox Barcode",
"required": false,
"possibleValues": null
}
],
"itemDetailFieldDTOList": [],
"hsnCode": "62114290",
"totalIntegratedGst": 0,
"integratedGstPercentage": 0,
"totalUnionTerritoryGst": 0,
"unionTerritoryGstPercentage": 0,
"totalStateGst": 0,
"stateGstPercentage": 0,
"totalCentralGst": 0,
"centralGstPercentage": 0,
"maxRetailPrice": 1699.00,
"sellingPriceWithoutTaxesAndDiscount": 679.00,
"batchDTO": null,
"shippingChargeTaxPercentage": 0,
"tcs": 0,
"ucBatchCode": null,
"channelMrp": null,
"channelExpiryDate": null,
"channelVendorBatchNumber": null,
"channelMfd": null,
"countryOfOrigin": null,
"itemDetailFields": null,
"channelSaleOrderItemCode": "WW1000832948-1"
}
],
"returns": [],
"customFieldValues": [
{
"fieldName": "Store_ID",
"fieldValue": "",
"valueType": "text",
"displayName": "Store ID",
"required": false,
"possibleValues": [
""
]
},
{
"fieldName": "employee_id",
"fieldValue": "",
"valueType": "text",
"displayName": "Employee ID",
"required": false,
"possibleValues": [
""
]
},
{
"fieldName": "Promo_Code",
"fieldValue": "",
"valueType": "text",
"displayName": "Promo Code",
"required": false,
"possibleValues": [
""
]
}
],
"cancellable": false,
"reversePickable": true,
"packetConfigurable": false,
"cFormProvided": false,
"totalDiscount": null,
"totalShippingCharges": null,
"additionalInfo": null,
"paymentInstrument": null
},
"refreshEnabled": false,
"failedOrderFetch": false
}
Error 2: From get invoice pdf API
Resolution remark: Resolved
url: https://tcns.unicommerce.com/services/rest/v1/oms/invoice/show?invoiceCodes=INS4348
java.lang.RuntimeException: Failed : HTTP error code : 401
Temporary Resolution:
Download invoice from source UC and update in db to process the order.
Permanent Resolution:
Same as Error 1.
Error 3: Error from google
Resolution remark: Resolved
url: https://mplsports.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
exception occurred while calling backend method (SystemService.java:375)
com.google.apphosting.runtime.HardDeadlineExceededError: This request (0000017ee2080558) started at 2022/02/10 05:08:03.544 UTC and was still executing at 2022/02/10 05:09:04.700 UTC.
url: https://mplsports.unicommerce.com/services/rest/v1/oms/invoice/show?invoiceCodes=AMAZON_IN-20-21--OO78O7IN-441
Exception while reading csv file - (CloudStorageUtil.java:235)
com.google.appengine.tools.cloudstorage.NonRetriableException: com.google.apphosting.api.ApiProxy$CancelledException: The API call urlfetch.Fetch() was cancelled because the thread was interrupted while waiting for concurrent API calls.
Temporary Resolution:
Download invoice from source UC and update in db to process the order.
Permanent Resolution:
Same as Error 1.
Error 4: Error from Tatacliq panel
Error code: 100118.0
Error message: Unable to create invoice
Resolution remark: Not Resolved
url: https://eshoptcq.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
{
"errors": [
{
"code": 100118.0,
"description": "Unable to fetch invoice SP: ESHO00014, invoicing channel: TATACLIQ Unable to dispatch package on channel. dispatchResponse: {\"PackIds\":[{\"PackID\":\"6353321\",\"ShipmentWght\":0.5,\"ShipmentHght\":20.0,\"ShipmentLen\":34.0,\"ShipmentWdht\":24.0,\"ShipmentStatus\":\"Packed\",\"Transaction\":[{\"TransactionID\":\"100301022114587\",\"Status\":\"FAIL\",\"Remark\":\"Transaction not in possible status to Generate AWB\"}],\"OriginBranchCode\":\" \",\"DestinationBranchCode\":\" \",\"REVAWBNum\":\" \",\"LogisticProviderName\":\"\"}]}\n",
"message": "Unable to create invoice"
},
{
"code": 100118.0,
"description": "Unable to fetch invoice SP: ESHO00014, invoicing channel: TATACLIQ Unable to dispatch package on channel. dispatchResponse: {\"PackIds\":[{\"PackID\":\"6353321\",\"ShipmentWght\":0.5,\"ShipmentHght\":20.0,\"ShipmentLen\":34.0,\"ShipmentWdht\":24.0,\"ShipmentStatus\":\"Packed\",\"Transaction\":[{\"TransactionID\":\"100301022114587\",\"Status\":\"FAIL\",\"Remark\":\"Transaction not in possible status to Generate AWB\"}],\"OriginBranchCode\":\" \",\"DestinationBranchCode\":\" \",\"REVAWBNum\":\" \",\"LogisticProviderName\":\"\"}]}\n",
"message": "Unable to create invoice"
}
],
"successful": false
}
For most cases, this error is from the panel itself. These orders are mostly cancelled.
Temporary fix: retry for these orders. If not resolved raise it to the panel.
Error 5: Error from shipping provider
Error code: 90001.0
Error message: AWB could not be created: No courier service available between 421302 and 500001
Resolution remark: Not Resolved
url: https://tcns.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
{
"errors": [
{
"code": 90001.0,
"description": "AWB could not be created: No courier service available between 421302 and 500001",
"message": "AWB could not be created: No courier service available between 421302 and 500001"
},
{
"code": 90001.0,
"description": "AWB could not be created: No courier service available between 421302 and 500001",
"message": "AWB could not be created: No courier service available between 421302 and 500001"
}
],
"successful": false
}
This error is from the shipping provider. Will have raise it to the team.
Error 6:
Error code: 90001.0
Error message: Unable to evaluate expression:#{!#pickupDone}
Resolution remark: Not Resolved
url: https://tcns.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
{
"errors": [
{
"code": 90001.0,
"description": "Unable to evaluate expression:#{!#pickupDone}",
"message": "Unable to evaluate expression:#{!#pickupDone}"
},
{
"code": 90001.0,
"description": "Unable to evaluate expression:#{!#pickupDone}",
"message": "Unable to evaluate expression:#{!#pickupDone}"
}
],
"successful": false
}
This error comes alternate before the AWB could not be created error.
Error 7:
Error code: 100222.0
Error message: Internal Error
Resolution remark: Resolved
url: https://mplsports.unicommerce.com/services/rest/v1/oms/shippingPackage/createInvoiceAndGenerateLabel
orderId: NYK-4724377-9276278-1-1
{
"errors": [
{
"code": 100222.0,
"description": "org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement",
"message": "Internal Error"
}
],
"successful": false
}
RCA: Actually for Nykaa, there can only be a single shipment in one order, as this order has two shipments, every time it is providing the invoice for first shipment even when we are calling for second one.
As a resolution, we can try to process the order from Channel itself, it order does not get processed from there, we need to cancel those order items and proceed with a fresh order generation.
Error 8: Error from UC
url: https://zlade.unicommerce.com/services/rest/v1/inventory/adjust/bulk'
Access denied
The user id has to be given access by UC.
CLOUTAIL ORDERS ERRORS:
While processing Cloudtail orders, we get the below errors while fetching label and invoice from Unicommerce.
Error code:
10040
Error message: UNABLE_TO_FETCH_SHIPPING_PROVIDER_INFORMATION
Resolution remark: Not Resolved
{
"errors": [
{
"code": 10040,
"description": "Unable to evaluate expression:#{#entityReferenceFields.put(#labelResponseDataEntry.getKey(), #labelResponseDataEntry.getValue())}",
"message": "UNABLE_TO_FETCH_SHIPPING_PROVIDER_INFORMATION"
}
]
}
2. Error code: 100118
Error message: Unable to create invoice
Resolution remark: Not Resolved
Error : [
{
"code": 100118,
"description": "Unable to fetch invoice SP: AGGN00093, invoicing channel: CLOUDTAIL {\n "errors": [\n {\n "code": "InternalFailure",\n "message": "We encountered an internal error. Please try again.",\n "details": ""\n }\n ]\n}",
"message": "Unable to create invoice"
},
{
"code": 100118,
"description": "Unable to fetch invoice SP: AGGN00093, invoicing channel: CLOUDTAIL {\n "errors": [\n {\n "code": "InternalFailure",\n "message": "We encountered an internal error. Please try again.",\n "details": ""\n }\n ]\n}",
"message": "Unable to create invoice"
}
]
3. Error code: 10040
Error message: Transaction is under Process.
Resolution remark: Not Resolved
Error : [
{
"code": 10040,
"description": "Transaction is under Process.",
"message": "UNABLE_TO_FETCH_SHIPPING_PROVIDER_INFORMATION"
}
]
Temporary fix:
RE TRY for RTS
2. MARK RTS on source UC , and then RE try to RTS from ESHOPBOX , label invoice will fetch by self.
Error 9: Error in return sync TCNS:
Error description: Putaway already completed for this shipment
Resolution mark: Link newly created bug to following bug
https://auperator.atlassian.net/browse/BUGS-17367
and mark the new bug as resolved.
{
"successful": false,
"message": null,
"errors": [
{
"code": 20012,
"fieldName": null,
"description": "Putaway already completed for this shipment",
"message": "INVALID_SHIPPING_PACKAGE_CODE",
"errorParams": null
}
],
"warnings": []
}
Error 10: Error while updating return on UC:
Error description: Shipping Code :STGA00298 return manifest has not been closed. Try with closing the return manifest
Resolution: This needs to be raised to UC, saying that we are getting the following error while marking return as completed.
{
"successful": false,
"message": null,
"errors": [
{
"code": 90008,
"fieldName": null,
"description": "Shipping Code :STGA00298 return manifest has not been closed . Try with closing the return manifest ",
"message": "INVALID_RETURN_MANIFEST_STATE",
"errorParams": null
}
],
"warnings": []
}
Note:
If you don’t find any logs for any returns, run the below API to reconcile the returns so that you can get the logs.
API type: POST
URL:
https://unicommerce-integration-prod.el.r.appspot.com/_ah/api/esb/v1/returnReconciliationWithDate
Request body:
{
"toDate": "2023-12-04",
"fromDate": "2023-12-03",
"locationId": "",
"connectionId": [
1359
]
}