I'm adding them 1 by 1 ... Is there a possibility to add them all together ?
I did a debug now and it gives me this error
<error>
<code><![CDATA[97]]></code>
<message><![CDATA[[SQL Error] Duplicate entry '0-1602' for key 'PRIMARY'. From ProductCore->setWsCategories() Query was :
INSERT INTO `ps_category_product` (`id_category`, `id_product`, `position`)
VALUES (0, 1602, 0),(0, 1602, 1)]]></message>
</error>
<error>
<code><![CDATA[85]]></code>
<message><![CDATA[Error occurred while setting the categories value]]></message>
</error>
The thing is before this one that product was updated correctly and didnt gave me the error...