Difference in Coulmn length of Custom Foreign Key Columns and Destinations
We are adding a new tag “Siebel Best Practice” for our readers, which will cover Siebel best practice for all categories. Presenting first article in this series.
Custom Foreign Key Columns Differ in Length from Destinations
Custom Foreign Keys do not have the same length as the destination columns to which they are joined.
Impacted space
Data Integrity, Runtime Error
Significance
Assume that two columns used in a join are defined as follows:
• TABLE_A.COLUMN_A Varchar(15)
• TABLE_B.COLUMN_B Varchar(50)
If not used carefully, a value could be placed in COLUMN_B that was longer than 15 characters. When a join is performed between TABLE_A and TABLE_B, such a record will cause a run-time error in the mobile client indicating “Right truncation of string data”.
This can often occur when columns are used for more than one purpose, as in the case of _XM table, where a column might be used as a CFK in one entity type, but is made to represent some other type of data for a different entity type.
Suggestion
Ensure that both columns used in a custom join have the same underlying size defined on the column definition.
Let us know what is your opinion about this initaitve of Siebel Best Practice tag.Leave your comment below.
Related posts:
- Text Length Override User Property
- Why Do You Need To Run the EIM Import Twice To Set Certain Foreign Keys?
- Configure Join
- Denormalized Columns in Siebel
- Reusing Tables versus Creating a New Table Definition
- Account Data Load

















(No Ratings Yet)
Its good to see best practice tag in website. That will help to improve performance and other confilcts in implementation
Thanks,
Paul
Thanks Paul,
We will keep posting best practices in regular interval. happy reading
Regards,
Ashish
Leave your response!
Our Stats
hit counter
Author Spotlight
Ashish Kr. Bameta
Website: http://www.siebeloracle.com/Join us in Facebook !!!!
Donate
If you find this blog useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!
Hosted By
SIEBEL BOOKSHELF
Advertise With Us
Place your advertisement anywhere in the website.
[Nominal Rates/Genuine readers]
For details reach us at contact@siebeloracle.com
Training Partner
Advertisement
Advertisement