Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 151 forks source link

Link_rewrite is not valid at product update #304

Closed polaije closed 5 years ago

polaije commented 6 years ago

Hello, My first test with product creation was successfull but with an update I get the error Link_rewrite is not valid

Here is my code: ProductFactory ProductFact = new ProductFactory(BaseUrl, Account, Password); product ProductToUpdate=new product(); ProductToUpdate = ProductFact.Get(4551);

ProductToUpdate.active = 0;

ProductFact.Update(ProductToUpdate);

And the error : `

2 korres-kb-promo-11-amande-cerise-gel-douche-2x250ml
<language>
    <id>6</id>
    <Value>korres-kb-promo-11-amandel-kers-douchegel-2x250ml</Value>
</language>

...

link_rewrite is not valid\"]]>

HttpStatusCode: BadRequest"} `

Can you help me with this error.

Thanks, Jean-Marie

polaije commented 6 years ago

For info: I have the latest prestasharp update and last update Prestashop 1.6. Here is the request: `{text/xml=

4459 0 0 158 0 3 9 simple 1 3413119 0.000000 0.000000 0.000000 0.000000 0 0 0 0 0 0 0 0.000000 1 18.632075 0.000000 0.000000 0.00 0 0 0 0 0 1 0000-00-00 0 new 1 1 both 0 2016-04-04 10:42:03 2016-06-02 11:51:03 3 2 6 2 6 2 6 2 29-s-pau-d-arco-xxi-caps-30x690mg 6 29-s-pau-d-arco-xxi-caps-30x690mg ** 2 29-S Pau D'Arco Xxi Caps 30X690Mg 6 29-S PAU D'ARCO XXI CAPS 30X690MG-NL ** 2 6 2 6 2 6 2 6 158 4495 0

}`

polaije commented 6 years ago

Sorry closed by mistake

WilfredChong commented 5 years ago

anyone, I also facing this issue

mowcixo commented 5 years ago

Hello @polaije and @WilfredChong, what version of PrestaSharp are you using?

WilfredChong commented 5 years ago

I am using prestashop 1.6

mowcixo commented 5 years ago

I am using prestashop 1.6

Hello @WilfredChong, and what version of this library? How you download PrestaSharp? Using nuget?

WilfredChong commented 5 years ago

1.6.1.17

mowcixo commented 5 years ago

Hello @WilfredChong, I'm asking for this library version, not your PrestaShop version.

How you use this library in your .NET project? you download master directly? using NuGet?

WilfredChong commented 5 years ago

I dobwload it directly

mowcixo commented 5 years ago

Hello @WilfredChong, It should be fixed now with version 1.0.5. Could you test and let me know?

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.