TSM_E_MISMATCHINGITEMS

Mismatching Items for Operation

Beckhoff · TwinCAT 2 Automation Interface

What does TSM_E_MISMATCHINGITEMS mean?

The items involved in the operation are incompatible (0x98510004). For LinkVariables(), this occurs when two variables cannot be linked due to incompatible data types, attempting to link two outputs, linking an output of a task to an input of a device, or linking variables of the same owner. For ImportChild(), this means the tree item contained within the import file is not a valid child item for the current parent, or its structure is incompatible.

Common Causes

  • Mismatched hardware or software versions between connected devices.
  • An attempt to link variables of incompatible data types in the TwinCAT configuration.
  • A mismatch between the expected device profile and the detected device type.

Repair Steps & Checklist

Click steps to track your progress.

  1. 1

    For LinkVariables(): Review the data types, I/O directions, and ownership of the variables specified by bstrV1 and bstrV2.

  2. 2

    For LinkVariables(): Ensure you are not attempting to link two outputs or an output of a task to an input of a device.

  3. 3

    For ImportChild(): Verify that the exported child item is compatible with the target parent item type in the TwinCAT configuration.

  4. 4

    For ImportChild(): Check the XML structure of the exported file for any discrepancies that would make it an invalid child.

Browse all codes in this manual (12)
Verified technical data. Last updated: March 2026

Related Faults

Source: Beckhoff TwinCAT 2 Automation Interface