CWD: /var/www/html/sinergiattiva/public_html/koc/app

*** IMPORT ALL starting ... ***

START 2026-08-06 13:33:33
ANAGRA 2026-08-06 13:33:35
 + syncAnanaz
[2026-08-06 13:33:35] Start getOdataApiRecords: Countries, filter: , select:
[2026-08-06 13:33:35] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/DYN/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:33:35] DEBUG - Complete API endpoint: Countries
[2026-08-06 13:33:35] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/DYN/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/Countries
[2026-08-06 13:33:35] DEBUG - URL length: 118
[2026-08-06 13:33:36] DEBUG - HTTP Code: 200
[2026-08-06 13:33:36] DEBUG - Response length: 29303
[2026-08-06 13:33:36] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/DYN/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/Countries","value":[{"id":"999e528d-1c67-ed11-823f-00224881ec17","code":"AB","displayName":"Antigua e Barbuda","isoCode":"AG","addressFormat":"City+Post Code","lastModifiedDateTime":"2024-01-15T15:23:57.463Z","registeredPostalCode":false},{"id":"9a9e528d-1c67-ed11-823f-00224881ec17","code":"AD","displayName":"Andorra","isoCode":"AD","addressFormat":"City+Post
[2026-08-06 13:33:36] DEBUG - Records in this batch: 139
[2026-08-06 13:33:36] SUCCESS - API data fetched, total rows: 139
[2026-08-06 13:33:36] End getOdataApiRecords: Countries
 + syncAnagra
[2026-08-06 13:33:36] Start getOdataApiRecords: Customers, filter: useBlocked eq ' ' or useBlocked eq 'BSP01' or useBlocked eq 'BSP02S' or useBlocked eq 'BINS', select:
[2026-08-06 13:33:36] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:33:36] DEBUG - Filter BEFORE encoding: useBlocked eq ' ' or useBlocked eq 'BSP01' or useBlocked eq 'BSP02S' or useBlocked eq 'BINS'
[2026-08-06 13:33:36] DEBUG - Complete API endpoint: Customers?$filter=useBlocked+eq+%27+%27+or+useBlocked+eq+%27BSP01%27+or+useBlocked+eq+%27BSP02S%27+or+useBlocked+eq+%27BINS%27
[2026-08-06 13:33:36] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/Customers?$filter=useBlocked+eq+%27+%27+or+useBlocked+eq+%27BSP01%27+or+useBlocked+eq+%27BSP02S%27+or+useBlocked+eq+%27BINS%27
[2026-08-06 13:33:36] DEBUG - URL length: 235
[2026-08-06 13:33:51] DEBUG - HTTP Code: 200
[2026-08-06 13:33:51] DEBUG - Response length: 14163440
[2026-08-06 13:33:51] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/Customers","value":[{"no":"2013CLI00000078","name":"kocca*","vatRegistrationNo":"01183350915","address":"PIAZZA SAN GIOVANNI 3","city":"NUORO","territoryCode":"SAR","postCode":"08100","county":"NU","country":"IT","eMail":"curreligiuseppe@gmail.com","phoneNo":"0784255029","customerPriceGroup":"000","paymentTermsCode":"ANTICIPATO","paymentMethodCode":"BONIFICO",
[2026-08-06 13:33:52] DEBUG - Records in this batch: 18585
[2026-08-06 13:33:52] SUCCESS - API data fetched, total rows: 18585
[2026-08-06 13:33:52] End getOdataApiRecords: Customers
 + syncDesmer
[2026-08-06 13:34:46] Start getOdataApiRecords: ShiptoAddresses, filter: , select:
[2026-08-06 13:34:46] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:34:46] DEBUG - Complete API endpoint: ShiptoAddresses
[2026-08-06 13:34:46] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/ShiptoAddresses
[2026-08-06 13:34:46] DEBUG - URL length: 124
[2026-08-06 13:34:52] DEBUG - HTTP Code: 200
[2026-08-06 13:34:52] DEBUG - Response length: 9150528
[2026-08-06 13:34:52] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/ShiptoAddresses","value":[{"customerNo":"2013CLI00000078","code":"000","name":"kocca*","name2":"","address":"PIAZZA SAN GIOVANNI 3","address2":"","city":"NUORO","contact":"","phoneNo":"0784255029","telexNo":"","shipmentMethodCode":"ASS","shippingAgentCode":"BRT","placeofExport":"","countryRegionCode":"IT","lastDateModified":"1900-01-01","locationCode":"G-PF","
[2026-08-06 13:34:52] DEBUG - Records in this batch: 14921
[2026-08-06 13:34:52] SUCCESS - API data fetched, total rows: 14921
[2026-08-06 13:34:52] End getOdataApiRecords: ShiptoAddresses
 + syncAnaage
[2026-08-06 13:35:10] Start getOdataApiRecords: SalespersonCustomers, filter: , select:
[2026-08-06 13:35:10] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:35:10] DEBUG - Complete API endpoint: SalespersonCustomers
[2026-08-06 13:35:10] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers
[2026-08-06 13:35:10] DEBUG - URL length: 129
[2026-08-06 13:35:17] DEBUG - HTTP Code: 200
[2026-08-06 13:35:17] DEBUG - Response length: 3881847
[2026-08-06 13:35:17] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers","value":[{"salesPersonCode":"0010077","campaignCode":"AI24-25","zonaStatCode":"IT-SAR-1","brandCode":"KOC","customerNo":"C0010152","group":2,"starting_Date_FilterOnly":null,"ending_Date_FilterOnly":null},{"salesPersonCode":"0010077","campaignCode":"AI24-25","zonaStatCode":"IT-SAR-1","brandCode":"KOC","customerNo":"C0010157","group":2,"sta
[2026-08-06 13:35:17] DEBUG - Next URL found: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken='0020746','AI26-27','IT-ABR-1','KOCK','C0025115'
[2026-08-06 13:35:17] DEBUG - Skiptoken extracted: '0020746','AI26-27','IT-ABR-1','KOCK','C0025115'
[2026-08-06 13:35:17] DEBUG - Records in this batch: 20000
[2026-08-06 13:35:17] DEBUG - Full URL (attempt #2): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken=%270020746%27%2C%27AI26-27%27%2C%27IT-ABR-1%27%2C%27KOCK%27%2C%27C0025115%27
[2026-08-06 13:35:17] DEBUG - URL length: 217
[2026-08-06 13:35:23] DEBUG - HTTP Code: 200
[2026-08-06 13:35:23] DEBUG - Response length: 3905427
[2026-08-06 13:35:23] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers","value":[{"salesPersonCode":"0020746","campaignCode":"AI26-27","zonaStatCode":"IT-ABR-1","brandCode":"KOCK","customerNo":"C0025118","group":1,"starting_Date_FilterOnly":null,"ending_Date_FilterOnly":null},{"salesPersonCode":"0020746","campaignCode":"AI26-27","zonaStatCode":"IT-ABR-1","brandCode":"KOCK","customerNo":"C0036683","group":1,"s
[2026-08-06 13:35:23] DEBUG - Next URL found: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken='0022221','PE25','IT-PUG-1','SOGOLD','C0015942'
[2026-08-06 13:35:23] DEBUG - Skiptoken extracted: '0022221','PE25','IT-PUG-1','SOGOLD','C0015942'
[2026-08-06 13:35:23] DEBUG - Records in this batch: 20000
[2026-08-06 13:35:23] DEBUG - Full URL (attempt #3): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken=%270022221%27%2C%27PE25%27%2C%27IT-PUG-1%27%2C%27SOGOLD%27%2C%27C0015942%27
[2026-08-06 13:35:23] DEBUG - URL length: 216
[2026-08-06 13:35:27] DEBUG - HTTP Code: 200
[2026-08-06 13:35:27] DEBUG - Response length: 3888804
[2026-08-06 13:35:27] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers","value":[{"salesPersonCode":"0022221","campaignCode":"PE25","zonaStatCode":"IT-PUG-1","brandCode":"SOGOLD","customerNo":"C0015943","group":1,"starting_Date_FilterOnly":null,"ending_Date_FilterOnly":null},{"salesPersonCode":"0022221","campaignCode":"PE25","zonaStatCode":"IT-PUG-1","brandCode":"SOGOLD","customerNo":"C0015944","group":1,"sta
[2026-08-06 13:35:28] DEBUG - Next URL found: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken='0024787','AI25-26','IT-CAL-1','KOC','C0023661'
[2026-08-06 13:35:28] DEBUG - Skiptoken extracted: '0024787','AI25-26','IT-CAL-1','KOC','C0023661'
[2026-08-06 13:35:28] DEBUG - Records in this batch: 20000
[2026-08-06 13:35:28] DEBUG - Full URL (attempt #4): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken=%270024787%27%2C%27AI25-26%27%2C%27IT-CAL-1%27%2C%27KOC%27%2C%27C0023661%27
[2026-08-06 13:35:28] DEBUG - URL length: 216
[2026-08-06 13:35:31] DEBUG - HTTP Code: 200
[2026-08-06 13:35:31] DEBUG - Response length: 3883923
[2026-08-06 13:35:31] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers","value":[{"salesPersonCode":"0024787","campaignCode":"AI25-26","zonaStatCode":"IT-CAL-1","brandCode":"KOC","customerNo":"C0023696","group":1,"starting_Date_FilterOnly":null,"ending_Date_FilterOnly":null},{"salesPersonCode":"0024787","campaignCode":"AI25-26","zonaStatCode":"IT-CAL-1","brandCode":"KOC","customerNo":"C0023711","group":1,"sta
[2026-08-06 13:35:32] DEBUG - Next URL found: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken='0025559','PE24','IT-SIC-2','SOGOLD','C0012030'
[2026-08-06 13:35:32] DEBUG - Skiptoken extracted: '0025559','PE24','IT-SIC-2','SOGOLD','C0012030'
[2026-08-06 13:35:32] DEBUG - Records in this batch: 20000
[2026-08-06 13:35:32] DEBUG - Full URL (attempt #5): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers?$skiptoken=%270025559%27%2C%27PE24%27%2C%27IT-SIC-2%27%2C%27SOGOLD%27%2C%27C0012030%27
[2026-08-06 13:35:32] DEBUG - URL length: 216
[2026-08-06 13:35:34] DEBUG - HTTP Code: 200
[2026-08-06 13:35:34] DEBUG - Response length: 2092914
[2026-08-06 13:35:34] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonCustomers","value":[{"salesPersonCode":"0025559","campaignCode":"PE24","zonaStatCode":"IT-SIC-2","brandCode":"SOGOLD","customerNo":"C0012109","group":1,"starting_Date_FilterOnly":null,"ending_Date_FilterOnly":null},{"salesPersonCode":"0025559","campaignCode":"PE24","zonaStatCode":"IT-SIC-2","brandCode":"SOGOLD","customerNo":"C0012115","group":1,"sta
[2026-08-06 13:35:34] DEBUG - Records in this batch: 10782
[2026-08-06 13:35:34] SUCCESS - API data fetched, total rows: 90782
[2026-08-06 13:35:34] End getOdataApiRecords: SalespersonCustomers
 + syncUtenti
[2026-08-06 13:37:07] Start getOdataApiRecords: ApiUsers_Web, filter: UserEnabled eq true, select:
[2026-08-06 13:37:07] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:37:07] DEBUG - Filter BEFORE encoding: UserEnabled eq true
[2026-08-06 13:37:07] DEBUG - Complete API endpoint: ApiUsers_Web?$filter=UserEnabled+eq+true
[2026-08-06 13:37:07] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/ApiUsers_Web?$filter=UserEnabled+eq+true
[2026-08-06 13:37:07] DEBUG - URL length: 149
[2026-08-06 13:37:09] DEBUG - HTTP Code: 200
[2026-08-06 13:37:09] DEBUG - Response length: 2249918
[2026-08-06 13:37:09] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/ApiUsers_Web","value":[{"@odata.etag":"W/\"JzE5OzU4OTkzMjI1MTU3Mjk2MzA5MzIxOzAwOyc=\"","UserGuid":"aaae1b46-9cd2-479a-a588-003858cf8ecc","UserCode":"C0023541","UserName":"BON TON S.R.L.S.","UserBadgeurl":"","UserUsername":"0023541","UserPassword":"K1244G","UserEnabled":true,"UserDefaultPricekm":0,"UserMainOffice":"","UserUrlYoutube":"https://www.youtube.com/us
[2026-08-06 13:37:09] DEBUG - Records in this batch: 2034
[2026-08-06 13:37:09] SUCCESS - API data fetched, total rows: 2034
[2026-08-06 13:37:09] End getOdataApiRecords: ApiUsers_Web
 + syncAnareg
[2026-08-06 13:37:10] Start getOdataApiRecords: koccatradeagreements, filter: startingDate le 2026-08-06 and endingDate ge 2026-08-06, select:
[2026-08-06 13:37:10] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:37:10] DEBUG - Filter BEFORE encoding: startingDate le 2026-08-06 and endingDate ge 2026-08-06
[2026-08-06 13:37:10] DEBUG - Complete API endpoint: koccatradeagreements?$filter=startingDate+le+2026-08-06+and+endingDate+ge+2026-08-06
[2026-08-06 13:37:10] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/koccatradeagreements?$filter=startingDate+le+2026-08-06+and+endingDate+ge+2026-08-06
[2026-08-06 13:37:10] DEBUG - URL length: 193
[2026-08-06 13:37:12] DEBUG - HTTP Code: 200
[2026-08-06 13:37:12] DEBUG - Response length: 1568257
[2026-08-06 13:37:12] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/koccatradeagreements","value":[{"reorderValue":0,"returnValue":0,"stockValue":0,"substitutionValue":0,"allowInvoiceDisc":true,"allowLineDisc":false,"code":"AI25-26","customerNo":"C0010004","dimension1Code":"AI25-26","dimension2Code":"RIASS","dimension3Code":"KOC","dimension4Code":"","dimension5Code":"","endingDate":"2026-12-31","invoiceDiscount":0,"lineDiscoun
[2026-08-06 13:37:12] DEBUG - Records in this batch: 2961
[2026-08-06 13:37:12] SUCCESS - API data fetched, total rows: 2961
[2026-08-06 13:37:12] End getOdataApiRecords: koccatradeagreements
 + syncAgeanaCustomer
[2026-08-06 13:37:14] Start getOdataApiRecords: SalespersonShipToAddresses, filter: , select:
[2026-08-06 13:37:14] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:37:14] DEBUG - Complete API endpoint: SalespersonShipToAddresses
[2026-08-06 13:37:14] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonShipToAddresses
[2026-08-06 13:37:14] DEBUG - URL length: 135
[2026-08-06 13:37:34] DEBUG - HTTP Code: 200
[2026-08-06 13:37:34] DEBUG - Response length: 13424753
[2026-08-06 13:37:34] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonShipToAddresses","value":[{"salesPersonCode":"","customerNo":"2013CLI00000078","code":"000","name":"kocca*","name2":"","address":"PIAZZA SAN GIOVANNI 3","address2":"","city":"NUORO","contact":"","phoneNo":"0784255029","telexNo":"","shipmentMethodCode":"ASS","shippingAgentCode":"BRT","placeofExport":"","countryRegionCode":"IT","lastDateModified":"190
[2026-08-06 13:37:35] DEBUG - Next URL found: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonShipToAddresses?$skiptoken='0023597','C0021897','000','C0021897'
[2026-08-06 13:37:35] DEBUG - Skiptoken extracted: '0023597','C0021897','000','C0021897'
[2026-08-06 13:37:35] DEBUG - Records in this batch: 20000
[2026-08-06 13:37:35] DEBUG - Full URL (attempt #2): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonShipToAddresses?$skiptoken=%270023597%27%2C%27C0021897%27%2C%27000%27%2C%27C0021897%27
[2026-08-06 13:37:35] DEBUG - URL length: 206
[2026-08-06 13:37:38] DEBUG - HTTP Code: 200
[2026-08-06 13:37:38] DEBUG - Response length: 4736331
[2026-08-06 13:37:38] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/SalespersonShipToAddresses","value":[{"salesPersonCode":"0021350","customerNo":"C0021900","code":"000","name":"MARIA ANTONIA ORTEGA LAGUIA","name2":"ABRIL BOUTIQUE","address":"OCTAVIO CUARTERO,3","address2":"","city":"VILLAROBLEDO","contact":"cell. 0034627061465","phoneNo":"0034967811693","telexNo":"","shipmentMethodCode":"DAP","shippingAgentCode":"RAF","place
[2026-08-06 13:37:39] DEBUG - Records in this batch: 7100
[2026-08-06 13:37:39] SUCCESS - API data fetched, total rows: 27100
[2026-08-06 13:37:39] End getOdataApiRecords: SalespersonShipToAddresses
 + syncCommissionRules
[2026-08-06 13:37:45] Start getOdataApiRecords: koccacommissionrules, filter: , select:
[2026-08-06 13:37:45] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:37:45] DEBUG - Complete API endpoint: koccacommissionrules
[2026-08-06 13:37:45] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/koccacommissionrules
[2026-08-06 13:37:45] DEBUG - URL length: 129
[2026-08-06 13:37:49] DEBUG - HTTP Code: 200
[2026-08-06 13:37:49] DEBUG - Response length: 5564500
[2026-08-06 13:37:49] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/koccacommissionrules","value":[{"commission":0,"commissionType":"%","customerNo":"","customerPriceGroup":"","dimension1Code":"AI14-15","dimension2Code":"IT-TRE-1","dimension3Code":"","dimension4Code":"KOC","dimension5Code":"","elementNo":1,"endingDate":"9999-12-31","fixedAmount":0,"itemCategoryCode":"","itemNo":"","lastModifiedDate":"2024-02-08","lastModifiedT
[2026-08-06 13:37:49] DEBUG - Records in this batch: 11060
[2026-08-06 13:37:49] SUCCESS - API data fetched, total rows: 11060
[2026-08-06 13:37:49] End getOdataApiRecords: koccacommissionrules
 + syncWebDelivery
[2026-08-06 13:37:52] Start getOdataApiRecords: webdeliverydates, filter: webActive eq 1 and startingDate le 2026-08-06T00:00:00Z and endingDate ge 2026-08-06T00:00:00Z, select:
[2026-08-06 13:37:52] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:37:52] DEBUG - Filter BEFORE encoding: webActive eq 1 and startingDate le 2026-08-06T00:00:00Z and endingDate ge 2026-08-06T00:00:00Z
[2026-08-06 13:37:52] DEBUG - Complete API endpoint: webdeliverydates?$filter=webActive+eq+1+and+startingDate+le+2026-08-06T00%3A00%3A00Z+and+endingDate+ge+2026-08-06T00%3A00%3A00Z
[2026-08-06 13:37:52] DEBUG - Full URL (attempt #1): https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/webdeliverydates?$filter=webActive+eq+1+and+startingDate+le+2026-08-06T00%3A00%3A00Z+and+endingDate+ge+2026-08-06T00%3A00%3A00Z
[2026-08-06 13:37:52] DEBUG - URL length: 236
[2026-08-06 13:37:52] DEBUG - HTTP Code: 200
[2026-08-06 13:37:52] DEBUG - Response length: 9290
[2026-08-06 13:37:52] DEBUG - Raw response (first 500 chars): {"@odata.context":"https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/$metadata#companies(ad5ffe68-486f-ee11-823f-00224881ec17)/webdeliverydates","value":[{"campaignNo":"AI24-25","code1PRS":"KOC","date1PRS":"2024-05-31T22:00:00Z","description":"A/I 2024-25","endingDate":"2026-12-30T23:00:00Z","opt1PRS":1,"opt2PRS":0,"requestedDeliveryDate":"2022-12-31T23:00:00Z","requestedDeliveryDateLimit":"2024-12-30T23:00:00Z","startingDate":"2022-12-31T23:00:00Z","webActive":1,"webDeliveryDateId":"
[2026-08-06 13:37:52] DEBUG - Records in this batch: 24
[2026-08-06 13:37:52] SUCCESS - API data fetched, total rows: 24
[2026-08-06 13:37:52] End getOdataApiRecords: webdeliverydates
 + postImportAna
Orders unlocked in finally.
END 2026-08-06 13:38:21

4.8 minute(s)
