Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Econnect Errors

Posted on by 260

Hi,

I am updating CUSTNAME,CNTCPRSN,PHONE1,SLPRSNID,USERDEF1,USERDEF2 in RM00101. I am getting the below given two error's :

1) Error 1 : Sql

 

procedure error codes returned: Error Number = 5518 Stored Procedure taUpdateCreateCustomerRcd Error Description = The Primary Address Code is required when other address information is filled in Node Identifier Parameters:

2) Error 2 : Violation of PRIMARY KEY constraint 'PKRM00103'. Cannot insert duplicate key in object 'dbo.RM00103'. The statement has been terminated. i believe RM00103 is the Customer Master Summary table. tried looking whether there is any trigger which is fired while updating in RM00101 and its trying to insert a duplicate Primary key in RM00103 but was unable to find. 

I had posted earlier on this but was able to find solution for these errors.

 

 

 

taUpdateCreateCustomerRcd. I am not updating ADRSCODE still its giving me this error. And if i am passing the ADRSCODE then i am getting the Error 2, but as per my requirement i dont want to pass ADRSCODE through the Econnect Service. The Storeed Procedure taUpdateCreateCustomerRcd is encrypted but i am not sure why its throwing the error. I tried looking in the SQL Server Profiler and EventViewer too, but was unable to figure out.Also tried to look into another master table RM00102 which i believe is the Customer Master Address File which has the ADRSCODE but while analyzing i found there some records were updated WITH ADRSCODE as Primary but some failed for the same ADRSCODE. Is there any way by which i can debug the Stored Procedure taUpdateCreateCustomerRcd.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Econnect Errors

    Hi Joshi,

    what mohammed said is correct if you pass a parameter "1=Update if record exists;" 


    e-connect will take care weather it's update or create no need to pass again all fields

    Thanks,

    Naresh.Sangana

  • dhawal Profile Picture
    dhawal 260 on at
    Re: Econnect Errors

    Thanks mohammed but my question here is if i am updating these fields CUSTNAME,CNTCPRSN,PHONE1,SLPRSNID,USERDEF1,USERDEF2 only still i have to pass all the fields which i am not updating?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Econnect Errors

    Two things to consider:

    1. For update, you must pass the "UpdateIfExists" Flag to allow customer data to be updated if it exists:

    0=Do not update;

    1=Update if record exists;

    2=Create if record does not exist and exits without error if record does exist

    2. Second you need to make sure that you pass all fields not only the updated fields!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans