Skip to main content

Notifications

Microsoft Dynamics GP forum
Answered

eConnect Error

Posted on by 65

Hi,

I get the following error when voiding a cash receipt via eConnect:

Msg 2627, Level 14, State 1, Procedure taRMUnapplyTransaction, Line 1
Violation of PRIMARY KEY constraint 'PKCM20100'. Cannot insert duplicate key in object 'dbo.CM20100'. The duplicate key value is (52072.00000, 1).
The statement has been terminated.

I'm using GP2010 and I can void the transaction directly from the GP without any errors.  However the eConnect stored procedure is returning an error.  Has anyone else experienced this issue before?

Any help appreciated

 

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,252 on at
    RE: eConnect Error

    Hi There, 

    I am getting same error ! Are you able to resolve this issue? 

    Your earliest reply is highly appreciable.

    Thanks much
    Sandip

  • allbrown Profile Picture
    allbrown 65 on at
    Re: eConnect Error

    Good idea but the schema will not help me in this case.  I'm using a utility called SmartConnect that uses the eConnect stored procs so I have to get it working from the stored procs.

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,252 on at
    Re: eConnect Error

    Got it. Instead of directly using StoreProc did you try to use eConnect Sechma and see if you get error or not?Here is link : msdn.microsoft.com/.../bb625310.aspx

    Thanks

    Sandip

  • Verified answer
    allbrown Profile Picture
    allbrown 65 on at
    Re: eConnect Error

    Thanks for your quick response Sandip.

    I'm actually voiding a Cash Receipt so I'm not getting the Next Cash Receipt Number.  The system has to unapply cash receipt while voiding.  Error occurs when I try to pass the parameters directly for the stored proc (below)

    EXEC @SPReturnCode = dbo.taRMVoidTransaction

    @I_vCUSTNMBR = 'XXX'

    ,@I_vDOCNUMBR = 'PYMNT0000128922'

    ,@I_vVOIDSTTS = 1

    ,@I_vRMDTYPAL = 9

    ,@I_vVOIDDATE = '05/03/2012'

    ,@I_vGLPOSTDT = '05/03/2012'

    ,@O_iErrorState = @O_iErrorState OUTPUT

    ,@oErrString = @oErrString OUTPUT

  • Suggested answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,252 on at
    Re: eConnect Error

    How you provide your Next Cash Receipt Number? I think thats problem your supplying duplicate Receipt Number? Please check event viwer for more help.

    THanks

    Sandip

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans