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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Sql procedure error codes returned: Error Number = 1340

(0) ShareShare
ReportReport
Posted on by 174

Hi,

I am using smart connect to import 400 plus sales invoices in shot. I am adding few new AA codes and trying to test the import but I am getting this error.

"Sql procedure error codes returned: Error Number = 1340"

pastedimage1569361997468v1.png

Can somebody advise me how to get rid of this.

Thanks,

Ran

*This post is locked for comments

I have the same question (0)
  • Derek Albaugh Profile Picture
    on at

    Looking at the taRMDistribution procedure mentioned in the error screenshot, the error number of 1340 represents the following:

    if (@I_vACTNUMST <> '')
    begin
    select @I_vDSTINDX = 0
    select @I_vDSTINDX = ACTINDX from GL00105 (nolock) where ACTNUMST = @I_vACTNUMST
    if (@I_vDSTINDX = 0)
    begin
    select @O_iErrorState = 1340

    On the surface, it's looking at the account index (ACTINDX) value in the GL00105 table for the account number (ACTNUMST), then if the account index (ACTINDX) which is passed into the vDSTINDX variable is 0 (zero), then it throws error 1340.

    I looked for more information on this error and procedure but didn't find much more than this. I would look at the ACTINDX value in the GL00105 table for the account numbers (ACTNUMST) being used in the integration and/or for any ACTINDX values in the GL00105 that are 0 (zero) or not a valid account index number and if you find any, correct them to see if this resolves this eConnect error.

    You can also open a support case if you want a engineer to actively look at this error with you, otherwise I'll leave this forum open for anyone else that may've experienced this error message and have more information on it.

    Thank you,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans