Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 19 at 12:12 PM

    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

    Add comment
    10|10000 characters needed characters exceeded