1b.app
Link copied -

We import into xml, gives an error: Specification mandates value for attribute ID

We use the one-hour automatic action: Integration of XML products (Export)

here ukrpromspec,com,ua

A link to the file is created:

https://ukrpromspec.com.ua/media/export/product/products_ukrpromspec.xml

The file exists, when checked in another system, it is detected as on screen 1295

BUT at the same time, an action setting ERROR is recorded with the message that:

xml/json file https://ukrpromspec.com.ua/media/export/product/products_ukrpromspec.xml is not available or is empty

When clicking on the link, we get an error:

error on line 1 at column 71: Specification mandates value for attribute ID

Please help to solve the problem.
Original question is available on version: ua Вячеслав Легеза

Answers:

The error tells you that according to the xml specification, there can't be spaces in the tags. In your case, this means that the "Product ID" tag must be replaced with, for example, "Product_ID" or something else without spaces. Perhaps there are still tags with spaces, they also need to be corrected.
02.03.2023, 22:37
Original comment available on version: ru


Legeza Vyacheslav Valerianovich
iCOLOR OneBox (FOP LEGEZA VYACHESLAV VALERIANOVICH) wrote:
error on line 1 at column 71:

71 here means that the problem is in the 71st character, i.e. you can simply open it in a text editor and see which character is in the 71st place, so sometimes it becomes clearer where the jamb is (usually text editors write the line and character number from the bottom right when navigating through the lines).
02.03.2023, 22:40
Original comment available on version: ru

Легеза Вячеслав iCOLOR OneBox
ФОП Легеза В.В.
Personal license
Leave a message in this thread and the user's contacts will be shown to you

.dev
OneBox production wrote:
In the error, they tell you that according to the xml specification, there cannot be spaces in the tags. In your case, this means that the "Product ID" tag should be replaced with, for example, "Product_ID" or something else without spaces. Perhaps there are still tags with spaces, they also need to be corrected.

Thank you
That's right, there were spaces.
Replaced it with an underscore and everything worked.
03.03.2023, 08:55
Вячеслав Легеза Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment