Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, July 10, 2025 
 
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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: A one-to-one table attached to the Account table has more than one
Marc Johnson
Posts: 252
 
A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 11:33 AM
We have a custom table that is one-to-one, that has more than one account linkage. We are running v6.2.6 so we don't have the new integrity checker that could fix this. Any thoughts or recommendations?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 07 6:07 PM
What you are saying sounds impossible to me.

If the table has been set up in SLX as a 1:1, it has as its primary key the same ID as Account table (ie AccountID).

Multiple occurrences of the same AccountID are prohibited by your RDBMS, where AccountID is the PK of your table.

Phil
[Reply][Quote]
Michael Rogers
Posts: 70
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Dec 07 1:13 PM
Marc,

Are you seeing multiple records in the Query Analyzer or in groups within SLX? I have had groups return impossible records before based on one or more bad joins.

Michael
[Reply][Quote]
Marc Johnson
Posts: 252
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Dec 07 1:23 PM
I discovered the problem with a CrystalReport but this is what I ran to confirm the problem (or similar)

select count(opportunityid),opportunityid
from opportunityCustomAddonTable
group by opportunityid
having count(opportunityid) > 1

I've been manually removing the bad rows because that which makes one row better than another is subjective and needs a human eye. I've also had to copy some data from specific fields from one row to the other before removing the bad on. Luckily there have been only a few of them.

I've confirmed that the table is 1-to-1 and the joins are correct. I even had SLX Support take a look. Nothing stands out.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Dec 07 4:20 PM
Marc, if you check the OpportunityCustomAddonTable table in SQL Server, can you confirm that it has OpportunityID as the primary key?

If this is the case and you have multiple rows with the same PK, you have a serious db integrity issue that the SLX integrity checker will not resolve - you need SQL tools to fix this one. I have never come across this in all the time I've spent with SQL Server, though I know that there's a first time for everything (except maybe sushi).

Phil
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Dec 07 4:23 PM
I just re-read this thread and noticed that you were talking about accounts initially - whereas your last post was about opportunities. Please clarify.
[Reply][Quote]
Marc Johnson
Posts: 252
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Dec 07 7:17 AM
We have an Account add-on table and Opportunity Add-on table both displaying the same issue. We use Oracle for our database. Unfortunately our DBA recently quit so we are still looking for a new Oracle DBA. Once we get one s/he can help me go over things. I've gone over the tables as closely as I can without digging into the db structure in Oracle and everything looks ok.

[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: A one-to-one table attached to the Account table has more than oneYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Dec 07 1:27 PM
OK Marc, good luck on that & sorry that I couldn't help you resolve this yet.
[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 © 2025 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): 7/10/2025 8:30:19 AM