Skip to Content
0

Inventory transfer posting error:Internal Error(-2038) occured

Feb 19 at 06:12 AM

22

avatar image
Former Member

Hi,

I am getting the below error frequently while making stock transfer by using add on posting inventory transfer in back end.

"Inventory transfer posting error:Internal Error(-2038) occurred".


kindly share the solution if any has the same

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

1 Answer

Johan Hakkesteegt Feb 19 at 12:12 PM
0

Hi Karthick,

This is a common time out error. In your addon code you should check for this error, and retry to add the document. You can try something like this:

_TryAgain:
If oDocument.Add() <> 0 Then
   Dim errCode As Integer = 0
   Dim errMsg As String = String.Empty
   oCompany.GetLastError(errCode, errMsg)
   If errCode = -2038 Then
      Threading.Thread.Sleep(333)
      GoTo _TryAgain
   End If
Else
   MsgBox(errCode.ToString & " - " & errMsg)
End If

Regards,

Johan

Share
10 |10000 characters needed characters left characters exceeded