Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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: Auto-Increment ID not working
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Auto-Increment ID not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jun 07 9:19 AM
Using 7.0.1. I created a custom table and set the primary key field to auto increment. I am trying to do an insert from the Administrator but I am getting this error.

[6/29/2007 9:12:27 AM] The statement failed and returned the following error: "The statement has been terminated. : Cannot insert the value NULL into column 'C_OPPORTUNITY_HISTORYID', table 'SalesLogix.sysdba.C_OPPORTUNITY_HISTORY'; column does not allow nulls. INSERT fails"

I checked and double checked and auto-increment is checked for this field. I am not specifying the primary field in the INSERT statement.

Based on what I'm reading about the auto-increment ID checkbox, the provider should automatically generate the ID for me. What am I missing?

Thanks,
John G.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Auto-Increment ID not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 07 8:14 AM
How about posting the actual "insert" code/SQL".

I've had NO problem using Autoinc.
--
rjl
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: Auto-Increment ID not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jul 07 6:38 AM
Funny you should ask... This is related back to the whole adding a server role to the sysdba login. I was logged into admin already when the server role was added to sysdba. So it stayed logged in ... but when I tried running the SQL it didn't like it. also didn't like it when I created a DTS package and tried running it from there.

Since removing the server role all is working fine.

Thanks!
John G.
[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/26/2024 6:18:43 AM