KB: Duplicate Database Libraries Displayed When Using Filtered Excel or CSV Sources

Altium Designer Altium Designer
Users may see duplicate or multiple Database Libraries for the same component type in the Components panel when using Excel or CSV files as the source for a Database Library in Altium Designer. This typically occurs when column filters are enabled in the Excel or CSV file. Through the database connection layer, Altium Designer interprets filtered Excel or CSV data as separate tables, which results in duplicate libraries being displayed. Removing the column filters from the source file or disabling filtered tables or columns in the Database Library configuration resolves the issue. This behavior is specific to Excel and CSV database sources and does not occur with MS Access databases or Altium 365 Managed Libraries.

Solution Details

Duplicate Libraries Appear During Component Selection

When browsing or selecting components from the Components panel, users may notice multiple Database Libraries listed for what should be the same component type. These libraries often appear identical and can cause confusion during component selection and placement. The duplication occurs before placement, at the time the Database Library is loaded and enumerated in the Components panel.

Filtered Data is Exposed as Separate Tables

When an Excel or CSV file is used as a Database Library source, Altium Designer accesses the data through the underlying OLE DB or ODBC connection layer. Each filtered view or filtered table in the Excel or CSV file is exposed by this connection as a separate database table. As a result, filtered columns or table filters create additional virtual tables, and each table is interpreted as a separate Component Type in Database Library.

Altium Designer Database Library panel connected to an Excel database, showing duplicate filter-column values listed as separate tables ("Example database$" and "Example database$Example_database"), illustrating a DBLib table-duplication issue.

Note: MS Access databases do not exhibit this behavior because applying filters does not create additional tables. Altium 365 Managed Libraries are also unaffected.

Available Methods to Prevent Library Duplication

  • Remove column filters from the Excel or CSV source file.
  • Disable filtered columns in the Database Library configuration.
  • Use an MS Access database as the Database Library source.
  • Migrate to an Altium 365 Managed Library.

Advisory: While Excel and CSV files are supported as Database Library sources, they are not recommended for long-term or multi-user library management due to formatting limitations and unintended behaviors such as table duplication.

Steps to Remove Filters and Disable Affected Fields

To remove filters from the Excel source file:

  1. Open the Excel file used as the Database Library source.
  2. Select any cell in the header row of the data table.
  3. Go to Data » Filter in the Excel ribbon.
  4. Ensure the Filter option is turned off and that no filter drop-down arrows remain on the column headers.
  5. If filter arrows are present, click each arrow and select Clear Filter.
  6. Save the Excel file.

Excel worksheet with parts database table, showing steps to access a column filter: Part Number header dropdown selected, Data tab open, and Filter command indicated for creating filtered views used by DBLib tables.

To disable affected fields in the Database Library:

  1. Open the Database Library (.DbLib) file in Altium Designer.
  2. Navigate to the Field Mappings section.
  3. Locate the affected field under the Database Field Name column.
  4. Right-click the required column header.
  5. Disable or remove the field from the mapping.
  6. Repeat for any additional fields created due to Excel filtering.
  7. Save the Database Library.

Additional Notes

This issue has been observed only with Excel and CSV database sources. Column filters in MS Access do not create duplicate libraries. Managed Libraries provide improved scalability, access control, and data consistency.

References

만약 문제가 있으시다면, 텍스트/이미지를 선택하신 상태에서 Ctrl + Enter를 누르셔서 저희에게 피드백을 보내주세요.