web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Unable to sync the Order from Ecommerce to GP

(0) ShareShare
ReportReport
Posted on by 50

Hi All,

I am unable to send the Order from Ecommerce to GP and it ithrows an error as Unable to get Payment Number like below.

Sql procedure error codes returned: Error Number = 38 Stored Procedure= taCreateSopPaymentInsertRecord Error Description = Unable to get payment number Node Identifier Parameters: taCreateSopPaymentInsertRecord SOPNUMBE = SOD00079892 SOPTYPE = 2 PYMTTYPE = 3 2 SOD00079892 FRIASJO79902 11/24/2021 129.23 VISA & MC VISA XXXXXXXXXXXX0062 05/01/2026 3

I am wandering for this solution.Can any one suggest me on this.

Thanks,

Pavan

Categories:
I have the same question (0)
  • Suggested answer
    Derek Albaugh Profile Picture
    Microsoft Employee on at

    Looking at this taCreateSOPPaymentInsertRecord procedure for eConnect, specifically at error 38, the code for this error is here:

    if (@I_vSOPTYPE in(2,3,5,6))

    begin

    if (((@I_vDOCNUMBR = '') and (@I_vAction = 1) and (@I_vSOPTYPE in(3,6))) or

    ((@I_vDOCNUMBR = '') and (@I_vAction = 1) and (@I_vSOPTYPE in(2,5)) and (@I_vPYMTTYPE <> 6)) or

    (@NewReceipt = 1))

    begin

    exec @iStatus = taGetPaymentNumber

    9,

    1,

    @I_vDOCNUMBR output,

    @iNxtPymntErrState output

    select @iError = @@error

    if ((@iStatus <> 0) or (@iNxtPymntErrState <> 0) or (@I_vDOCNUMBR = '') or (@I_vDOCNUMBR is NULL) or (@iError <> 0))

    begin

    select @O_iErrorState = 38  

    It first looks at the SOPTYPE value and if it is 2,3,5 or 6, will then go through the script showing here, ending with it looking at, if the Status is not 0 or the NxtPymntErrState is not 0 or the DOCNUMBR is blank or NULL, it'll return this error message.

    Hopefully this will help resolve this error message.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 393 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 385

#3
Martin Dráb Profile Picture

Martin Dráb 252 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans