I've got this error sometimes when I call AddDesignVisualizationFileAttachment. What does it means?
Solved! Go to Solution.
Solved by wayne.brill. Go to Solution.
Hi,
I am not finding any other documentation on that error. Can you tell me more about what you are doing when that error occurs? ( error 1125 )
Are you using AddDesignVisualizationFileAttachment()? If so is are you adding a DWF file to the design document *after* both the design document and the DWF file exist in Vault?
This blog post may be helpful.
http://justonesandzeros.typepad.com/blog/2010/11/attachments-and-dependencies-faq.html
Thanks,
Wayne
Yes I'm using AddDesignVisualizationFileAttachment to attach a DWF to an IDW. IDW and DWF exists in Vault. This works most of the time but sometimes it fails with this error.
Hi,
I asked a colleague in engineering about this. Here is an excerpt of their reply. (I believe it collaborates what you found).
>> >>
When using AddDesignVisualizationFileAttachment() to attach a DWF to an IDW this error may occur.
The error means the call is trying to create “out of order” DWFs
For example let’s say a file has 4 versions, where version 1, 2, & 4 have a DWF, and you want add a DWF to version 3.
Starting out, the data could look something like:
F(1) -> DWF(1)
F(2) -> DWF(2)
F(3)
F(4) -> DWF(3)
Vault does not allow DWF(4) to be an attachment to F(3) since that would be confusing so a AddDesignVisualizationAttachmentBadAttachmentOrder exception is thrown.
What Vault Explorer does in that situation is to download DWF(1), DWF(2) and DWF(3), delete the DWF entirely, and then re-create the versions so that the end result will look like:
F(1) -> DWF(1)
F(2) -> DWF(2)
F(3) -> DWF(3)
F(4) -> DWF(4)
<< <<
Thanks,
Wayne