We have been running EspoCRM with Sales Pack and Advanced Pack. Using the API to push sales orders in from our back office commerce platform, and it has been working great for nearly a year.
Yesterday it looks like our tech team upgraded to the latest ESPO and upgraded the Sales Pack and Advanced Pack extensions. It does not appear to have generated any errors during the upgrade process, at least not any obvious after looking at logs and reviews from their work.
The one issue that appears to have risen from this upgrade is when doing an API call to insert a new order, it throws this error now:
Field validation failure; entityType: SalesOrderItem, field: unitPrice, type: required.
Here is the array that's being passed to the API that had been working prior to the upgrade, where you will see that unitPrice is there:
array(13) {
["billingContactId"]=>
string(17) "6625eb6729b7aed7f"
["shippingContactId"]=>
string(17) "6625eb6729b7aed7f"
["dateInvoiced"]=>
string(10) "2024-04-22"
["dateOrdered"]=>
string(10) "2024-04-22"
["itemList"]=>
array(2) {
[0]=>
array(6) {
["productId"]=>
string(17) "64dd6d006307a9bf6"
["listPrice"]=>
string(1) "1"
["name"]=>
string(31) "<removed for public post>"
["quantity"]=>
string(1) "1"
["amount"]=>
int(1)
["unitPrice"]=>
string(1) "1"
}
[1]=>
array(6) {
["productId"]=>
string(17) "64dddbbc62551a2bf"
["listPrice"]=>
string(1) "3"
["name"]=>
string(40) "<removed for public post>"
["quantity"]=>
string(1) "1"
["amount"]=>
int(3)
["unitPrice"]=>
string(1) "3"
}
}
["name"]=>
string(19) "<removed for public post>"
["status"]=>
string(9) "Completed"
["shippingCost"]=>
string(4) "7.95"
["shippingAddressState"]=>
string(2) "TX"
["shippingAddressCity"]=>
string(11) "<removed for public post>"
["shippingAddressPostalCode"]=>
string(5) "<removed for public post>"
["shippingAddressCountry"]=>
string(2) "US"
["shippingAddressStreet"]=>
string(16) "<removed for public post>"
}
Has anyone seen something similar crop up? It is not specific to any one order, it appears to be any order we try to import thru the API and thus-far is only the unitPrice field that fails validation.
Thank you in advance,
-BP
Yesterday it looks like our tech team upgraded to the latest ESPO and upgraded the Sales Pack and Advanced Pack extensions. It does not appear to have generated any errors during the upgrade process, at least not any obvious after looking at logs and reviews from their work.
The one issue that appears to have risen from this upgrade is when doing an API call to insert a new order, it throws this error now:
Field validation failure; entityType: SalesOrderItem, field: unitPrice, type: required.
Here is the array that's being passed to the API that had been working prior to the upgrade, where you will see that unitPrice is there:
array(13) {
["billingContactId"]=>
string(17) "6625eb6729b7aed7f"
["shippingContactId"]=>
string(17) "6625eb6729b7aed7f"
["dateInvoiced"]=>
string(10) "2024-04-22"
["dateOrdered"]=>
string(10) "2024-04-22"
["itemList"]=>
array(2) {
[0]=>
array(6) {
["productId"]=>
string(17) "64dd6d006307a9bf6"
["listPrice"]=>
string(1) "1"
["name"]=>
string(31) "<removed for public post>"
["quantity"]=>
string(1) "1"
["amount"]=>
int(1)
["unitPrice"]=>
string(1) "1"
}
[1]=>
array(6) {
["productId"]=>
string(17) "64dddbbc62551a2bf"
["listPrice"]=>
string(1) "3"
["name"]=>
string(40) "<removed for public post>"
["quantity"]=>
string(1) "1"
["amount"]=>
int(3)
["unitPrice"]=>
string(1) "3"
}
}
["name"]=>
string(19) "<removed for public post>"
["status"]=>
string(9) "Completed"
["shippingCost"]=>
string(4) "7.95"
["shippingAddressState"]=>
string(2) "TX"
["shippingAddressCity"]=>
string(11) "<removed for public post>"
["shippingAddressPostalCode"]=>
string(5) "<removed for public post>"
["shippingAddressCountry"]=>
string(2) "US"
["shippingAddressStreet"]=>
string(16) "<removed for public post>"
}
Has anyone seen something similar crop up? It is not specific to any one order, it appears to be any order we try to import thru the API and thus-far is only the unitPrice field that fails validation.
Thank you in advance,
-BP
Comment