How to correct missing primary keys in the SellerDeck database (version 9 only).
Missing primary keys in the SellerDeck database can cause performance issues such as slow deletion of products, switching between sections in the content tree and copy and pasting duplicates in the content tree with Business plus. If you are suffering similar issues to these you should check that the primary keys in your database are ok.
These instructions must be performed with great care. Do not make any changes to the database other than what is specified below. You will need Microsoft office Access to make these checks*.
Instructions to check your databases primary keys are present:
1. First make a backup of your site. (File | Snapshot | Export site)
2. CLOSE SELLERDECK DOWN on all PC’s
3. Browse to your Site** folder (If there is only one site within the software it will be called 'Site1', if there are multiple sites within the software you will need to browse to the site folder name corresponding to the current site you are using)
4. Right click on 'ActinicCatalog.mdb', and select 'Open with | Microsoft Office Access'
5. Go to View | Database Objects | Tables
6. Click on the first table in the list, which should be “Additional Files”, then click the icon “Design”.
7. Make sure the table has a primary key against “nID”. The primary key will appear as a small key in the first column of the table.
8. Close the table
9. Repeat this process of checking the database for a primary key in each of 32+ tables in the database. Make a note of all the tables which do not have a primary key. All tables in the database should have a primary key except “PreprocessedTaxTable” and “tempOrphanDuplicateQuery” or any tables with do not appear in the default SellerDeck database (List of tables below). If there are no missing primary keys, close the database down. There is no need to follow the steps below.
Instructions to reinstate missing primary keys:
10. In 9. you made a note of all the tables that are missing primary keys. Look at the list of tables and primary keys below; you will be able to see what the missing keys should be.
11. To reinstate a missing primary key, for example the “Additional Files” table, click on the table then click the icon “Design”.
12. Right click on the field which should be the primary key and select “Primary Key”, in this example it is “nID”. (Remember to check what the primary key should be in the “Original” database)
13. Click the save icon, then close the table. (If an error occurs when you try to save the primary key, make sure you are trying to assign the primary key to the correct field. If you are trying to assign the primary key to the correct field, you may need to contact SellerDeck support to have these tables corrected.)
14. Repeat this process for all the tables which are missing primary keys.
15. Close the database down and continue as normal. Revert to your backup if you experience any problems as a result of this.
List of tables and primary keys:
* Microsoft Access is supplied as part of the 'Microsoft Office Professional' program suite; it is not supplied by SellerDeck.
** Depending on the installation option chosen or operating system used, the 'Site' folder can be found in either 'My Documents', 'Documents', 'Shared Documents' or 'Program Files' in the folder 'SellerDeck vX\Sites\' (with X replacing the version number).
This is a legacy article and intended for use with version 9 of the software. It is not relevant for version 10 software and later
|Thread Tools||Search this Thread|
|Display Modes||Rate This Thread|