Invalid Master Shape reference

I updated from 4.5.0.0 to 5.4.0.0 in the hopes of fixing issues with connectors not sticking to the sides I told them to, but now I have different issues:
I have an arrow shape in my masters.
When I add it using "var conShapeId = pageObj.AddShape(1, 1, “RightArrowConnector”);"

I end up with a shape with this markup:




Which makes visio unhappy with:
[Warning] DataType:
Context: Line 28368 —
Description: The master reference is invalid. The object does not exist or is not a master, or the master is empty. Visio has substituted an appropriate value and the shape is no longer associated with a master.
Attribute: MasterShape
Old value: 5
New value: -1


The master for this shape has only one shape in it:









Please advise.

Thank You,
Andy Bay



Hi Andy,

Can you please share your complete code and input and output documents to reproduce the issue?

Best Regards,

I will need to ask permission from the customer.

Thank You,
Andy Bay

Hi Andy,

Sure, you can seek their permission. Input documents and code will be required to reproduce the issue and make sure correct issue is resolved.

Forum attachments are private and not accessible to anyone other than you and Aspose staff. We use your attachments to reproduce and resolve the issues and delete after that.

Best Regards,