Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: SData - creating contact via SData - error message always returned
Andy Openshaw
Posts: 2
 
SData - creating contact via SData - error message always returnedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jul 11 10:19 AM
fiogf49gjkf0d

When creating a contact using the SData Client DLL, receive the following message


Message = An exception occurred executing the dynamic method Contact.OnBeforeInsert.


Src = Sage.SData.Client


Stack =    at Sage.SData.Client.Cor
e.SDataService.CreateEntry(String url, AtomEntry entry)
   at Sage.SData.Client.Core.SDataService.CreateEntry(SDataBaseRequest request,
AtomEntry entry)
   at Sage.SData.Client.Core.SDataSingleResourceRequest.Create()
   at SalesLogix.GenericAdapter.CreateEmployeeSData(Hashtable htArguments) in C:
\Users\andy.openshaw\Documents\Visual Studio 2010\Projects\SalesLogix\SalesLogix
\SalesLogix Contact SData.cs:line 381


Have been unable to locate any reference to Contact.OnBeforeInsert on the web or in documents.


Please note that I can successfully retrieve a contact record using the SData Client and therefore are connecting to the web service correctly

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: SData - creating contact via SData - error message always returnedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jul 11 1:26 PM
fiogf49gjkf0d

Have you populated an Address for the Contact? Account?

[Reply][Quote]
Andy Openshaw
Posts: 2
 
Re: SData - creating contact via SData - error message always returnedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Aug 11 4:40 AM
fiogf49gjkf0d

Thanks for the info


I found that in order to create a contact the following payload details are required


FirstName, LastName, Account, AccountName,  Address


e.g.


payload.Values["FirstName"] = "Test";
payload.Values["LastName"] = "User";
payload.Values["Account"] = new SDataPayload { Key = "AA2EK0013502" };
payload.Values["AccountName"] = "Flow Matic";
payload.Values["Address"] = new SDataPayload { Key = "AA2EK0013502" };


Found that the eventvwr application log was far more beneficial that an exception or inner exception messages.

[Reply][Quote]
Nick
Posts: 5
 
Re: SData - creating contact via SData - error message always returnedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Nov 15 3:24 AM

Hi Andy,


 


Can you post your full code on inserting data using sdata? I am also having problem with my code.


 


 


Thanks

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:57:32 AM