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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Document ID is invalid - eConnect Error

(0) ShareShare
ReportReport
Posted on by 60

Getting the following error when creating sales transaction through eConnect

Sql procedure error codes returned:

Error Number = 68 Stored Procedure= taSopHdrIvcInsert Error Description = Document ID is invalid
Node Identifier Parameters: taSopHdrIvcInsert
SOPNUMBE = STDINV2300
SOPTYPE = 3
Related Error Code Parameters for Node : taSopHdrIvcInsert
DOCID = 1007647
SOPTYPE = 3


<taSopHdrIvcInsert>
<SOPTYPE>3</SOPTYPE>
<DOCID>1007647</DOCID>
<SOPNUMBE>STDINV2300</SOPNUMBE>
<TAXSCHID>ALL DETAILS</TAXSCHID>
<TAXAMNT>10</TAXAMNT>
<DOCDATE>09/03/2020</DOCDATE>
<CUSTNMBR>BEIE</CUSTNMBR>
<SUBTOTAL>68.74</SUBTOTAL>
<BACHNUMB>IASALES26042011124</BACHNUMB>
<USINGHEADERLEVELTAXES>1</USINGHEADERLEVELTAXES>
<CREATECOMM>1</CREATECOMM>
<CURNCYID>Z-US$</CURNCYID>
<INVODATE>09/03/2020</INVODATE>
</taSopHdrIvcInsert>

Categories:
I have the same question (0)
  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    Do you really have a document ID of 1007647 setup under Tools->Setup->Sales->Sales Order Processing->Invoice? Doc IDs usually look like STDINV. Try typing an invoice into GP with the same values and see what you get.

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Richard,

    When you look at the XML code, the Document Number is indeed STDINV2300, which looks correct (though the 4 digits number seems a little short to me).

    The Document ID is something else and relates most of the time to the 'Vendor' document ID, and is expecting a 15 digit 'string' type of data.

    And there are possibly 2 problems that can happen here:

    1. Not sure if the Document ID needs to be unique, as it might be checked against SOP10100

    2. It's supposed to be a string, and this looks like a numerical data.. maybe eConnect has run into some issue with trying to convert it ?

    docs.microsoft.com/.../jj193404(v=msdn.10)

    The table taErrorCode may hold more details about the error #68 returned by the process...

    Here is a good blog post on how to deal with eConnect errors:

    timwappat.info/.../Gracefully-dealing-with-eConnect-errors

  • Alaa Ramadan Profile Picture
    4,130 on at

    I believe this is specific error is about the DOCID as Richard mentioned related to sales order processing setup. usually it used to classify invoices and it should be more descriptive ID such StndInv, DomsInv, ForenInvc.

    Please make sure this document id exist

  • Suggested answer
    Ibrahim N. Omran Profile Picture
    195 on at

    Hello Vaidh

    the Document ID filed is not a document number, please check the below snapshot 

    7028.Econnect.png

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Ibrahim is correct,

    (and I didn't check the exact source fields)..

    The setup for the DOC ID can be found here in GP : Sales >> Setup >> Sales Order Processing >> Sales Document Setup button >> select the Order option

    you can have multiple DOCID's setup with different setups to pre-populate your sales orders. The associated tables would be SOP40200 in the company DB.

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    As I said at the beginning of this thread go to Tools->Setup->Sales->Sales Order Processing->Invoice Doc IDs and see what document IDs you have setup. I would bet you do not have one called 1007647. This is a document number. You need to pass the document ID and the document number(SOPNUMBE) along with the SOPTYPE.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans