Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

CustomerKey does not exist

Posted on by 185

I am trying to insert a customer through GP Webservice, Iam receving the following exception

{System.Web.Services.Protocols.SoapException: A validation exception has occurred.

Validation Errors:

- CustomerKey does not exist.

 

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at DynamicsGP2.DynamicsGP.CreateCustomerAddress(CustomerAddress address, Context Context, Policy policy) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\067b3725\1b81e59a\App_WebReferences.8kqdjiyt.1.cs:line 5538

   at GPIntegrationTest.GPTransactionHelper.CreateGPCustomerAddress(AccountInfo account) in c:\GP integration\GPWS\App_Code\GPTransactionHelper.cs:line 556

   at GPIntegrationTest.GPTransactionHelper.CreateGPCustomer(AccountInfo account) in c:\GP integration\GPWS\App_Code\GPTransactionHelper.cs:line 490}

 

*This post is locked for comments

  • Suggested answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: CustomerKey does not exist

    Ahmed,

    It seems to be your not passing Customer Number to "CreateGPCustomerAddress" node, check your code or XML files for "Customer Address".

    Here is reference link "CreateCustomerAddress" for WebService

    msdn.microsoft.com/.../cc507896.aspx

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans