dorleta
13th September 2016, 16:30
Hi
I have a dll.
When I call this dll from LN the behaviour is diferents when I call it from a webservice
what the problem can be?
thanks
bhushanchanda
13th September 2016, 17:38
How is it behaving differently?
dorleta
13th September 2016, 18:21
dll launch outbound
when one error happen
if dll is called from LN returns error and no trouble the process make rollback and all is ok
if dll is called from webservices, return error but leave data corrupted, for example launched = no and launched quantity = 8 looks like rollback is not done complet
bhushanchanda
13th September 2016, 18:29
Hi,
Does the DLL have any commits between the transactions? How are your setting and returning the error? What version of LN are you using?
dorleta
14th September 2016, 18:28
the process is something like that
I call process outbound on error return (-1)
if not error I call confirm shipment on error return(-1)
When I call dll from one LN session on error no trouble return -1 and not data corrupted
When I Call dll from webservices on error ( not enought stock for example ) return -1 and data corrupted. For example launch quantity = 8 and launch = no
Error message are saved in LN tables
Version LN 10.3
ret = whinh.dll4200.process.outbound(
if ret then
return(-1)
....
if whinh.dll4275.confirm.freeze.shipment.line( whinh.afcs.confirm.all,
whinh431.shpm,
whinh431.pono,
whinh431.hupr
....
return(-1)
ikermarcos
22nd February 2018, 17:33
Hi Dorleta
Did you get any solution about it?
I have the same problem with webservices and rollbacks and I have no idea how to solve it.
Im using the same LN Versio, 10.3
Thanx in advance
dorleta
6th March 2018, 09:30
Yes, when dll is started by webservices, actions have to be called by a 3gl program. DLL is waiting until 3gl send end or error signal.
ikermarcos
7th March 2018, 16:18
Hi
Thanks! In fact, last week I discovered it, but I forgot to update this thread.
Anyway, thanks.