Invalid Connection Points on Shapes

 This article is suitable for a Library Administrator

Ref: 201101191613 SS
Last Edited: May 10th, 2012

Symptoms
Version 10.1 and earlier
Object reference not set to an instance of an object.
An error occurred in the VisEventProc event
=== Begin For Triaster Support ===
The following content may be useful to the Triaster support team.
Please copy and paste it into an e-mail to
support@triaster.co.uk
and attach any referenced files if you would like help understanding
how to avoid this issue reoccurring.
Object reference not set to an instance of an object.
An error occurred in the VisEventProc event
System.NullReferenceException: Object reference not set to an instance of an object.
   at Triaster.ProcessNavigator.Common.ProcessObjects.Relationship.InitSecondaryProperties()
   at Triaster.ProcessNavigator.Common.ProcessObjects.Map.AddMapPage(Page pagObj, Boolean blnEnableUpgrade)
   at Triaster.ProcessNavigator.Common.ProcessObjects.Map..ctor(Document& docObj, Boolean blnEnableUpgrade)
   at Triaster.ProcessNavigator.Common.ProcessObjects.Maps.Add(Document docArg, Boolean blnEnableUpgrades, String strFullPathAndFileName)
   at Triaster.ProcessNavigator.Common.ProcessObjects.Maps.Add(Document docArg, Boolean blnEnableUpgrades)
   at Triaster.ProcessNavigator.Common.ProcessObjects.DocumentsBase.Add(Document docArg)
   at Triaster.ProcessNavigator.MappingEdition.Wrapper.clsAppEventSink.HookDocument(Document docObj)
   at Triaster.ProcessNavigator.MappingEdition.Wrapper.clsAppEventSink.VisEventProc(Int32& eventCode, Object& sourceObj, Int32& eventID, Int32& seqNum, Object& subjectObj, Object& moreInfo)
=== Finish For Triaster Support ===

Version 11.1 and onwards
There is a problem with one or more connection points on the shape ShapeName. Please see the following knowledgebase article for help.

Cause
One or more shapes have connection points (small blue crosses) in positions not expected by Process Navigator. Such a problem connection point is on the side of a shape to which a connector is joined. The error occurs when analysing the connections made to the relevant side of the shape.
Extra connection points can be added to Activities and Deliverables through their Properties dialogs. Through this mechanism, connection points are distributed evenly along the sides. However, connection points can also be added through Visio's own connection point tool, and in positions that Process Navigator doesn't handle properly, which can result in this error.

Solution
Connection points in such positions need to be removed, and perhaps replaced with others through Process Navigator shapes' Properties dialogs.

Version 10.1 and earlier
Managing connection points through the ShapeSheet, as described here, can be difficult, depending on the complexity of the formulae used. The following example is a relatively simple one, but if yours is more complex, or if you are not confident about this procedure, contact support@triaster.co.uk for help.
  1. Select a shape with multiple connection points on one or more of its sides, where there is at least one connection made to one of those same sides.
     
  2. From Visio's menu, Window > Show ShapeSheet.
     
  3. In the ShapeSheet window, find the 'Connection Points' section.
     
  4. If there are rows in addition to the first four that don't correspond to expected positions, then delete the whole row by right-clicking the row > Delete Row.

    Such rows are likely to be the last ones in the list. The first four should be those that are on the shape by default, and shouldn't be deleted.
     
  5. If there are X or Y positions in the first four rows that don't correspond to expected positions, then it would suggest that a default connection point has been deleted or moved. Their X and Y positions should be restored to their expected values.

    NOTE:
    Connection points are expected to be distributed evenly along a side. Using the above example, the first four rows suggest that there should be one connection point at the centre of each side. That suggests that the additional rows correspond to extra connection points added in a manner other than through a Process Navigator shape's Properties dialog, and that it's these connection points that need to be removed. It's also evident from their X and/or Y positions that they are not where they should be.
     
  6. Close the ShapeSheet window, maximise the drawing window (if required), and save the file.
     
  7. Re-open the map.
     
  8. If there's another error, check other shapes for spurious connection points. There may well be multiple shapes that are causing this error.
     
  9. When the map can be opened without error, restore the extra connection points through a Process Navigator shape's Properties dialog, if required. Connectors will need to be reconnected too.
Version 11.1 onwards
To resolve this problem follow these steps.
If you are not confident about this procedure, contact support@triaster.co.uk for help.
  1. Click the shape that is mentioned in the message.
     
  2. Select the Connection Point Tool from the toolbar.
     
  3. Delete all the connection points from that shape apart from one on each side.
     
  4. Right-click the shape and open the Properties dialog.
     
  5. Click on the Connections Points tab.
     
  6. Add the required number of connection points.
     
  7. Reconnect the connector to its new connection point.
     
  8. Save the map.
     
  9. Open the map and check it loads without any error message.

Applies to:
  • Process Navigator
Related articles:

 
 

Need further help? Contact the Triaster Support team by e-mailing support@triaster.co.uk or by calling us on + 44 (0)870 402 1234.
 
Do you have any feedback or suggestions that you would like to share with Triaster? We would love to hear from you! Please e-mail feedback@triaster.co.uk