FIX: Cache "Error When Renaming Existing Relationship"

ID: q223322


The information in this article applies to:


SYMPTOMS

Renaming an existing relationship to a name that is 260 characters long and then trying to get the name of the target object results in the following error:

"The cached relationship collection does not match the repository database"
This error only occurs if the renamed relationship is part of a UNIQUENAMING relationship collection. In addition, the problem goes away if the new name is only 259 characters or less.


CAUSE

The engine was not taking into account the null character when setting its size for a relationship name.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new transaction.


  2. Rename the relationship to a name with 260 characters.


  3. Commit the transaction.


  4. Retrieve the name of the relationship's target object.


  5. RESULT: Step 4 results in the error:
    The cached relationship collection does not match the repository database.

Additional query words: repos


Keywords          : kbRepository kbVS600sp3fix 
Version           : WINDOWS:2.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: June 17, 1999