Developer forum

Forum » Development » API bug?
Lars Hejgaard Sørensen
Reply
Hi there,

In a solution we're updating the values of a custom orderlinefield in Cart.Line.Added. We used call the save method of the orderline in that process, which is actually not needed. But since we did it an received a strange exception because of primary key violation, I'm writing you anyway.

We submit two lines from a BOM in the same process, but I discovered, there was a mix up with the orderline IDs. Using the profiler I could see that ecommerce loads the orderline with  one id(@p21 = 'OL12208'), but updates the orderline id with a different value, (@p1 = 'OL12207'). I've attached the output from SQL profiler for further study.

BR.
Lars

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Lars

Which version are you using? We've had a similar issue internally, but the affected version has--to the best of my knowledge--not been released.

- Jeppe

 
Lars Hejgaard Sørensen
Reply
 19.2.2.2

BTW I'm still not receiving mail notifications from the forum.

/Lars
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
BTW I'm still not receiving mail notifications from the forum.
You may need to subscribe to each category again. I had issues with subscriptions too, and they were fixed a few days ago...

Imar
 
Lars Hejgaard Sørensen
Reply
I'm just subscribing to individual threads, but will try your suggestion:)
 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
With regard to the issue at hand. Have you tried a newer version of DW? Like I said, this is something we've had internally but the code should not have been released. If it turns out that the version you are using is indeed affected; a newer version should do the trick.

- Jeppe

 

You must be logged in to post in the forum