Symptoms

The issue will occur when you moving a project from one environment to another. The project involved seems to be fine in it's original location, but when moved, accessing the requirement , test case, incident, release or test set details on the migrated project produces the error:

Offending URL: __Page
Source: System.Web
Message: Multiple controls with the same ID 'customFieldsDefault_Custom_01_Label' were found. FindControl requires that controls have unique IDs.
Stack trace: at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at APPLICATION.Web.ServerControls.TabControl.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

This is happening because the original project includes a deleted custom property as well as a replacement custom property with the same name. When they are being migrated, the migration tool is erroneously making both of them active, causing the error message.

Solution

To fix the issue, open up the TST_CUSTOM_PROPERTY table and check to see if you have multiple active custom properties with the same PROPERTY_NUMBER. If so, just make the correct one IS_DELETED = True and the error will go away.

If you are cloud-hosted by Inflectra, please raise a support ticket and provide the ID of the project and custom properties that should be active and we can fix it for you.