XTrkCAD User Guide Version 5.4.0.752f9693ff68
Cannot Join; Selected endpoints are on same track.

You are trying to Join a section of track with itself. Different tracks must selected when using the Join command.

Refer to Join Tracks and Lines for detail.