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

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

START 2026-08-06 13:55:18
ANAGRA 2026-08-06 13:55:21
 + syncAnanaz
[2026-08-06 13:55:21] Start getOdataApiRecords: Countries, filter: , select:
[2026-08-06 13:55:21] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/DYN/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:55:21] DEBUG - Complete API endpoint: Countries
[2026-08-06 13:55:21] 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:55:21] DEBUG - URL length: 118
[2026-08-06 13:55:21] DEBUG - HTTP Code: 200
[2026-08-06 13:55:21] DEBUG - Response length: 29303
[2026-08-06 13:55:21] 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:55:21] DEBUG - Records in this batch: 139
[2026-08-06 13:55:21] SUCCESS - API data fetched, total rows: 139
[2026-08-06 13:55:21] End getOdataApiRecords: Countries
 + syncAnagra
[2026-08-06 13:55:21] Start getOdataApiRecords: Customers, filter: useBlocked eq ' ' or useBlocked eq 'BSP01' or useBlocked eq 'BSP02S' or useBlocked eq 'BINS', select:
[2026-08-06 13:55:21] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:55:21] DEBUG - Filter BEFORE encoding: useBlocked eq ' ' or useBlocked eq 'BSP01' or useBlocked eq 'BSP02S' or useBlocked eq 'BINS'
[2026-08-06 13:55:21] 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:55:21] 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:55:21] DEBUG - URL length: 235
[2026-08-06 13:55:30] DEBUG - HTTP Code: 200
[2026-08-06 13:55:30] DEBUG - Response length: 14163443
[2026-08-06 13:55:30] 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:55:31] DEBUG - Records in this batch: 18585
[2026-08-06 13:55:31] SUCCESS - API data fetched, total rows: 18585
[2026-08-06 13:55:31] End getOdataApiRecords: Customers
 + syncDesmer
[2026-08-06 13:56:34] Start getOdataApiRecords: ShiptoAddresses, filter: , select:
[2026-08-06 13:56:34] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:56:34] DEBUG - Complete API endpoint: ShiptoAddresses
[2026-08-06 13:56:34] 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:56:34] DEBUG - URL length: 124
[2026-08-06 13:56:39] DEBUG - HTTP Code: 200
[2026-08-06 13:56:39] DEBUG - Response length: 9150528
[2026-08-06 13:56:39] 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:56:40] DEBUG - Records in this batch: 14921
[2026-08-06 13:56:40] SUCCESS - API data fetched, total rows: 14921
[2026-08-06 13:56:40] End getOdataApiRecords: ShiptoAddresses
 + syncAnaage
[2026-08-06 13:57:03] Start getOdataApiRecords: SalespersonCustomers, filter: , select:
[2026-08-06 13:57:03] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:57:03] DEBUG - Complete API endpoint: SalespersonCustomers
[2026-08-06 13:57:03] 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:57:03] DEBUG - URL length: 129
[2026-08-06 13:57:08] DEBUG - HTTP Code: 200
[2026-08-06 13:57:08] DEBUG - Response length: 3881847
[2026-08-06 13:57:08] 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:57:08] 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:57:08] DEBUG - Skiptoken extracted: '0020746','AI26-27','IT-ABR-1','KOCK','C0025115'
[2026-08-06 13:57:08] DEBUG - Records in this batch: 20000
[2026-08-06 13:57:08] 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:57:08] DEBUG - URL length: 217
[2026-08-06 13:57:13] DEBUG - HTTP Code: 200
[2026-08-06 13:57:13] DEBUG - Response length: 3905427
[2026-08-06 13:57:13] 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:57:13] 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:57:13] DEBUG - Skiptoken extracted: '0022221','PE25','IT-PUG-1','SOGOLD','C0015942'
[2026-08-06 13:57:13] DEBUG - Records in this batch: 20000
[2026-08-06 13:57:13] 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:57:13] DEBUG - URL length: 216
[2026-08-06 13:57:17] DEBUG - HTTP Code: 200
[2026-08-06 13:57:17] DEBUG - Response length: 3888804
[2026-08-06 13:57: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":"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:57:18] 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:57:18] DEBUG - Skiptoken extracted: '0024787','AI25-26','IT-CAL-1','KOC','C0023661'
[2026-08-06 13:57:18] DEBUG - Records in this batch: 20000
[2026-08-06 13:57:18] 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:57:18] DEBUG - URL length: 216
[2026-08-06 13:57:22] DEBUG - HTTP Code: 200
[2026-08-06 13:57:22] DEBUG - Response length: 3883923
[2026-08-06 13:57:22] 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:57:22] 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:57:22] DEBUG - Skiptoken extracted: '0025559','PE24','IT-SIC-2','SOGOLD','C0012030'
[2026-08-06 13:57:22] DEBUG - Records in this batch: 20000
[2026-08-06 13:57:22] 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:57:22] DEBUG - URL length: 216
[2026-08-06 13:57:24] DEBUG - HTTP Code: 200
[2026-08-06 13:57:24] DEBUG - Response length: 2092914
[2026-08-06 13:57:24] 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:57:25] DEBUG - Records in this batch: 10782
[2026-08-06 13:57:25] SUCCESS - API data fetched, total rows: 90782
[2026-08-06 13:57:25] End getOdataApiRecords: SalespersonCustomers
 + syncUtenti
[2026-08-06 13:59:11] Start getOdataApiRecords: ApiUsers_Web, filter: UserEnabled eq true, select:
[2026-08-06 13:59:11] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:59:11] DEBUG - Filter BEFORE encoding: UserEnabled eq true
[2026-08-06 13:59:11] DEBUG - Complete API endpoint: ApiUsers_Web?$filter=UserEnabled+eq+true
[2026-08-06 13:59:11] 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:59:11] DEBUG - URL length: 149
[2026-08-06 13:59:13] DEBUG - HTTP Code: 200
[2026-08-06 13:59:13] DEBUG - Response length: 2249918
[2026-08-06 13:59:13] 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:59:13] DEBUG - Records in this batch: 2034
[2026-08-06 13:59:13] SUCCESS - API data fetched, total rows: 2034
[2026-08-06 13:59:13] End getOdataApiRecords: ApiUsers_Web
 + syncAnareg
[2026-08-06 13:59:14] Start getOdataApiRecords: koccatradeagreements, filter: startingDate le 2026-08-06 and endingDate ge 2026-08-06, select:
[2026-08-06 13:59: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:59:14] DEBUG - Filter BEFORE encoding: startingDate le 2026-08-06 and endingDate ge 2026-08-06
[2026-08-06 13:59:14] DEBUG - Complete API endpoint: koccatradeagreements?$filter=startingDate+le+2026-08-06+and+endingDate+ge+2026-08-06
[2026-08-06 13:59:14] 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:59:14] DEBUG - URL length: 193
[2026-08-06 13:59:16] DEBUG - HTTP Code: 200
[2026-08-06 13:59:16] DEBUG - Response length: 1568785
[2026-08-06 13:59:16] 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:59:16] DEBUG - Records in this batch: 2962
[2026-08-06 13:59:16] SUCCESS - API data fetched, total rows: 2962
[2026-08-06 13:59:16] End getOdataApiRecords: koccatradeagreements
 + syncAgeanaCustomer
[2026-08-06 13:59:18] Start getOdataApiRecords: SalespersonShipToAddresses, filter: , select:
[2026-08-06 13:59:18] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:59:18] DEBUG - Complete API endpoint: SalespersonShipToAddresses
[2026-08-06 13:59:18] 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:59:18] DEBUG - URL length: 135
[2026-08-06 13:59:41] DEBUG - HTTP Code: 200
[2026-08-06 13:59:41] DEBUG - Response length: 13424753
[2026-08-06 13:59:41] 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:59:41] 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:59:41] DEBUG - Skiptoken extracted: '0023597','C0021897','000','C0021897'
[2026-08-06 13:59:41] DEBUG - Records in this batch: 20000
[2026-08-06 13:59:41] 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:59:41] DEBUG - URL length: 206
[2026-08-06 13:59:45] DEBUG - HTTP Code: 200
[2026-08-06 13:59:45] DEBUG - Response length: 4736331
[2026-08-06 13:59:45] 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:59:45] DEBUG - Records in this batch: 7100
[2026-08-06 13:59:45] SUCCESS - API data fetched, total rows: 27100
[2026-08-06 13:59:45] End getOdataApiRecords: SalespersonShipToAddresses
 + syncCommissionRules
[2026-08-06 13:59:53] Start getOdataApiRecords: koccacommissionrules, filter: , select:
[2026-08-06 13:59:53] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 13:59:53] DEBUG - Complete API endpoint: koccacommissionrules
[2026-08-06 13:59:53] 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:59:53] DEBUG - URL length: 129
[2026-08-06 13:59:57] DEBUG - HTTP Code: 200
[2026-08-06 13:59:57] DEBUG - Response length: 5564500
[2026-08-06 13:59:57] 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:59:57] DEBUG - Records in this batch: 11060
[2026-08-06 13:59:57] SUCCESS - API data fetched, total rows: 11060
[2026-08-06 13:59:57] End getOdataApiRecords: koccacommissionrules
 + syncWebDelivery
[2026-08-06 14:00:00] 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 14:00:00] DEBUG - Base URL: https://odata.kocca.it:7068/ProdNUP/api/NBL/PRIME365API/v2.0/companies(ad5ffe68-486f-ee11-823f-00224881ec17)/
[2026-08-06 14:00:00] 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 14:00:00] 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 14:00:00] 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 14:00:00] DEBUG - URL length: 236
[2026-08-06 14:00:01] DEBUG - HTTP Code: 200
[2026-08-06 14:00:01] DEBUG - Response length: 9290
[2026-08-06 14:00:01] 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 14:00:01] DEBUG - Records in this batch: 24
[2026-08-06 14:00:01] SUCCESS - API data fetched, total rows: 24
[2026-08-06 14:00:01] End getOdataApiRecords: webdeliverydates
 + postImportAna
Orders unlocked in finally.
END 2026-08-06 14:00:49

5.52 minute(s)
