Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 945389 - Last Review: September 18, 2011 - Revision: 4.0
Error message when you import project details from Project Server 2007 to Project Portfolio Server 2007: "The statement has been terminated. String or binary data would be truncated"
When you use the Microsoft Office Project Server 2007 gateway to import project details from Project Server 2007 to Microsoft Office Project Portfolio Server 2007, the import process is not successful. Additionally, you receive the following error message:
The statement has been terminated. String or binary data would be truncated.
This issue occurs when the project plan that you try to import contains three or more predecessor or successor relationships in a single task. In this case, the data length for the column is exceeded, and Project Portfolio Server 2007 cannot save the details successfully.
To resolve this issue, you must update the PPSAccountData database. ("PPSAccountData" is the default name of this database.)
To do this, follow these steps.
Important Make sure that you create a backup of your database before you follow these steps.
- Start the Microsoft SQL Server Management Console, and then connect to the database instance that is hosting the Project Portfolio Server 2007 database.
- Click New Query.
- In the database list, select the PPSAccountData database.
- Copy and then paste the following text into the query window:
ALTER TABLE sftasks ALTER COLUMN PredAndSucc nvarchar(512)
GO
ALTER TABLE sftasks ALTER COLUMN SummaryTaskUID varchar(100)
GO
ALTER TABLE sfENTRY_ITEMS ALTER COLUMN Name nvarchar(255) NOT NULL
GO
ALTER TABLE sfTASKS ALTER COLUMN Name nvarchar(255) NOT NULL
GO
- On the Query menu, click Execute.
- When the process is complete, click File, and then click Exit.
APPLIES TO
- Microsoft Office Project Portfolio Server 2007
| kbtshoot kbexpertiseinter kbprb KB945389 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate