Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, May 16, 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!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: errors in slx_DBIDs
Loren Cronau
Posts: 2
 
errors in slx_DBIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 06 3:50 PM
fiogf49gjkf0d
We are getting the following error when trying to add an order in SLX. It seems to me that we have too many people competeing for unique table IDs. Is there some limit as to how many users there can be in Saleslogix at one time? We have over 150. Can I change the number of IDs to get at each time to say 100 or 1000 to increase performance. Our log files are full of table deadlocks and timeouts trying to add new records.

Source : odbcdrv_open_cursor
Description : Access violation.
SQL : slx_DBIDs('tablename', 10)

or

spGetNewSequenceNumber : Transaction (Process ID 216) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

thanks,
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: errors in slx_DBIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 06 4:01 PM
fiogf49gjkf0d
You certainly can generate many more ID's at once, in fact, if you're inserting in a large batch of data, I would recommend it.

The second parameter for slx_dbids is the number of ID's to create. The way that works is it grabs the last value from the sitekeys table (for the passed tablename and sitecode of the local system), increments it by the value passed as the second parameter and then writes it back and opens the data set of created ID values. So it does improve performance as you are reducing the trips to that table and also the locks placed on the table. Give that a try and your errors will likely go away. However, based on the error message you posted, it looks like you are pre-6.2 (ie: 6.0-6.1). The OLEDB provider was problematic in those versions and rewritten for 6.2 so you are likely to still see some weirdness like this from time to time, that is, until you upgrade to 6.2 or higher
[Reply][Quote]
Loren Cronau
Posts: 2
 
Re: errors in slx_DBIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 06 4:16 PM
fiogf49gjkf0d
Is 150 users at one time causing problems as well?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: errors in slx_DBIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 06 4:24 PM
fiogf49gjkf0d
No, I wouldn't think so. Locks to the sitekeys table occur when a new ID is created. It is not likely that all 150 users are creating a new record all at once to cause an issue (if this were the case you'd likely have users getting similar errors while using SLX, not just from your app)
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: errors in slx_DBIDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 06 4:32 PM
fiogf49gjkf0d

While I have not seen this error it does ring a bell. What is the version/servicepack/hotfix level of your SLX?

Is you backend Database Oracle or SQL?
[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): 5/16/2024 9:12:53 AM