Skip to Content

Set value by Document_Lines.SerialNumbers.Quantity got System.AccessViolationException error

Jan 31 at 09:10 AM


avatar image

Hi Experts,

We have a .net program developed by DIAPI 8.8. It works well normally. But there was a customer said when they create Good Receipt PO they encountered System.AccessViolationException error. We check the error raised when set serial number quantity as below screen shot show.

Framework version:v4.0.30319

Description: The process was terminated due to an unhanded exception.

Exception Info: System.AccessViolationException

at SAPBobsCOM.SerialNumbersClass.set_Quantity(Double)

at Tc.Int.Platform.BSPSAPB1.BSPSAPB1.SetSerialNumber(System.String,SystemString.SAPbobsCOM.Document_Lines.Double)


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edy Simon Jan 31 at 01:56 PM

Hi Sinon.

I would get this kind of error when I reference incompatible DI API version to the installed client version.
Also, re-installing the DI API in client PC might help, just to make sure the DI API is not corrupted.



10 |10000 characters needed characters left characters exceeded