To resolve this problem, follow these steps:
Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs.Note You may want to use a test company database that has a copy of live company data. When you do this, users will not have to log off from Microsoft Dynamics GP or from Microsoft Great Plains 8.0 while you test the steps to resolve these issues. After you have tested the steps, you can process these steps against the live company data after all the users have logged off at the end of the workday.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
871973 How to set up a test company that has a copy of live company data by using SQL Server 7.0, SQL Server 2000, or SQL Server 2005
Step 1: Back up the company database
Perform a backup of the company database in Microsoft Dynamics GP 10.0 or Microsoft Dynamics GP 2010
- Have all users exist Microsoft Dynamics GP.
- On the Microsoft Dynamics GP menu, point to Maintenance, and then click Backup.
- Select the company that you want to back up.
- Click
OK
to create the backup.
The Back Up Company window will close, and a message will appear when the backup is complete.
Perform a backup of the company database in Microsoft Dynamics GP 9.0 and in Microsoft Business Solutions - Great Plains 8.0
Make a backup of the live company database. To do this, use one of the following methods, as appropriate for your situation.
Method 1: Using SQL Server Enterprise Manager If you are using SQL Server Enterprise Manager, follow these steps:
- Click
Start, and then click
All Programs. - Point to
Microsoft SQL Server, and then click
Enterprise Manager. - Expand
Microsoft SQL Servers, expand
SQL Server Group, and then expand the instance of SQL Server. - Expand
Databases, right-click the live company database, click
All Tasks, and then click
Backup Database. - In the SQL Server Backup window, click
Add
in the
Destination
section. - In the Select Backup Destination window, click the ellipsis button next to the
File name
field. - In the Backup Device Location window, expand the folders, and then select the location for the backup file.
- Type a name for the backup file. For example, type
Live.bak.
- Click
OK
repeatedly until you return to the SQL Server Backup window. - Click
OK
to start the backup. - When the backup has completed successfully, click
OK.
Method 2: Using SQL Server Management Studio If you are using SQL Server Management Studio, follow these steps:
- Click
Start, and then click
Programs. - Point to
Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click
SQL Server Management Studio. The Connect to Server window opens.
- In the
Server name
box, type the name of the instance of SQL Server.
- In the
Authentication
list, click
SQL Authentication. - In the
User name
box, type
sa. - In the
Password
box, type the password for the sa user, and then click
Connect. - In the
Object Explorer
section, expand
Databases. - Right-click the live company database, point to
Tasks, and then click
Backup. - In the
Destination
area, click
Remove, and then click
Add. - In the
Destination on disk
area, click the ellipsis button. - Find the location where you want to create the backup file, type a name for the backup file, such as
LIVE.bak, and then click
OK. - Click
OK
repeatedly until you return to the Backup Database window. - Click
OK
to start the backup.
Step 2: Delete the contents of the FAINDEX table
To delete the contents of the FAINDEXtable, use one of the options below. Tohave us run scripts to delete the contents of the FAINDEX table for you, go to the Option #1: "
Fix it for me" section. To run scripts yourself to delete the contents of the FAINDEX table, go to the Option #2: "
Let me fix it myself" section.
Option #1: Fix it for me
To have us run scripts to delete the contents of the FAINDEX table automatically, have all users exit Microsoft Dynamics GP, and then click the
Fix this problem button or link. Click
Run in the
File Download dialog box, and then follow the steps in the Fix it wizard.
Note this wizard may be in English only; however, the automatic fix also works for other language versions of Windows.
Note if you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.
Option #2: Let me fix it myself
To run scripts yourself to delete the contents of the FAINDEX table, follow these steps:
- Have all users exit Microsoft Dynamics GP or Microsoft Great Plains 8.0.
- Start the Support Administrator Console, Microsoft SQL Query Analyzer, or SQL Server Management Studio. To do this, use one of the following methods depending on the program that you are using.
Method 1: For SQL Server Desktop Engine
If you are using SQL Server Desktop Engine (also known as MSDE 2000), start the Support Administrator Console. To do this, click Start, point to All Programs, point to Microsoft Administrator Console, and then click Support Administrator Console.
Method 2: For SQL Server 2000
If you are using SQL Server 2000, start SQL Query Analyzer. To do this, click Start, point to All Programs, point to Microsoft SQL Server, and then click Query Analyzer.
Method 3: For SQL Server 2005
If you are using SQL Server 2005, start SQL Server Management Studio. To do this, click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Management Studio.
Method 4: For SQL Server 2008
If you are using SQL Server 2008, start SQL Management Studio. to do this, click Start, point to All Programs, point to Microsoft SQL Server 2008, and then click SQL Server Management Studio.
- Run the following scripts.
DELETE DYNAMICS..ACTIVITY
DELETE DYNAMICS..SY00800
DELETE DYNAMICS..SY00801
DELETE TEMPDB..DEX_LOCK
DELETE TEMPDB..DEX_SESSION
DELETE <XXXXX>..FAINDEX
Note The <XXXXX> placeholder represents the actual company database. - Log on to Microsoft Dynamics GP or Microsoft Great Plains 8.0, and then try to depreciate your assets. If the error persists, proceed to 'Step 3'.
Step 3: Mark the DEX_ROW_ID column as an identity column, and mark the FINANCIALINDX field as the primary key
To do this, follow these steps:
- Mark the DEX_ROW_ID column as an identity column. If you are using SQL Server Enterprise Manager, follow these steps:
- Click Start, point to All Programs, point to Microsoft SQL Server, and then click Enterprise Manager.
- Expand the Microsoft SQL Server group in which the server is located.
- Expand the server, and then click Databases.
- Expand the company database that is experiencing the problem.
- Click Tables.
- Right-click the FA00902 table.
- Click Design Table.
- Under Column Name, click DEX_ROW_ID.
- Under Columns, change the identity to Yes.
If you are using SQL Server Management Studio, follow these steps: - Click Start, point to All Programs, point to Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click Microsoft SQL Server Management Studio.
- Expand the Microsoft SQL Server group in which the server is located.
- Expand the server, and then click Databases.
- Expand the company database that is experiencing the problem.
- Click Tables.
- Right-click the FA00902 table, and then click Modify.
- Click the DEX_ROW_ID column.
- Under Column Properties, expand Identity Specification.
- Change the identity to Yes.
- Set the Identity Seed value and the Identity Increment value to 1.
- Mark the FINANCIALINDX field as the primary key. If you are using SQL Server Enterprise Manager, follow these steps:
- Click Start, point to All Programs, point to Microsoft SQL Server, and then click Enterprise Manager.
- Expand the SQL Server group in which the server is located.
- Expand the server, and then click Databases.
- Expand the company database that is experiencing the problem.
- Click Tables.
- Right-click the FA00902 table.
- Click Design Table.
- Under Column Name, click FINANCIALINDX.
- Examine the FINANCIALINDX field. If the FINANCIALINDX field has a picture of a key next to it, this field is already set as the primary key. If the key does not appear next to the FINANCIALINDX field, click Set Primary Key on the menu bar.
Note This button has a picture of a key on it.
When you click Set Primary Key, a picture of a key appears next to the FINANCIALINDX field, and the FINANCIALINDX field becomes the primary key.
If you are using SQL Server Management Studio, follow these steps: - Click Start, point to All Programs, point to Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click Microsoft SQL Server Management Studio.
- Expand the SQL Server group in which the server is located.
- Expand the server, and then click Databases.
- Expand the company database that is experiencing the problem.
- Click Tables.
- Right-click the FA00902 table, and then click Modify.
- Click the FINANCIALINDX column.
- Under Column Name, click FINANCIALINDX.
- Examine the FINANCIALINDX field. If the FINANCIALINDX field has a picture of a key next to it, this field is already set as the primary key. If the key does not appear next to the FINANCIALINDX field, right-click the FINANCIALINDX field, and then click Set Primary Key.
Note This button has a picture of a key on it.
When you click Set Primary Key, a picture of a key appears next to the FINANCIALINDX field, and the FINANCIALINDX field becomes the primary key.