H
H
Hfnas2019-09-30 23:59:37
1C-Bitrix
Hfnas, 2019-09-30 23:59:37

How to test the unloading of counterparties from 1s?

I type in the browser:
bitrix/admin/1c_exchange.php?type=catalog&mode=import&filename=contragents.xml&sessid=0750aff1e997fb3b62fbbfd406904d9d
It doesn't work, there is no import of counterparties to users and buyers.
Which file is responsible for processing contragents.xml, and where should the file be located?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-10-01
@Hfnas

How how? How does debugging usually happen in php?
There are no tools for debugging the exchange from 1c built into Bitrix (apart from the well-known script bx_1c_import.php, it is outdated and with a serious vulnerability)
Therefore, we enable XDebug and code breakpoints, namely, we look at the sale.export.1c component, we find there the section responsible for importing counterparties and go deep into the import classes placing breakpoints.
If it is not possible to enable the debugger, then we use the entry in the AddMessage2Log log. In order not to violate the integrity of the kernel, we use a technique for modifying the exchange. Namely, we inherit or completely copy the used regular class for processing counterparties, arrange logging in the necessary methods, copy the component to our space and replace the regular class with our own. As a result, the core is intact and all stages are logged.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question