Message 1 of 6
Internal Validation Error on documentReference.getLatesetVersion in subassembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
All,
I've encountered another case where I always hit an internal validation error, even on new data.
The simplest path to reproduce the problem is as follows:
Create a new design, with a single body in it, save it as A.
Create a new design, save it as B. In design B, create a new component called C. Add a reference instance of A into C. Save B.
Open document A, make a change, and save it.
Open document B, and run the following script:
app = adsk.core.Application.get() ui = app.userInterface curDoc = app.activeDocument docRef = curDoc.documentReferences.item(0) if docRef.isOutOfDate: docRef.getLatestVersion()
This always throws "RuntimeError: 2 :InternalValidationError : res" on getLatestVersion.
Note that it works as expected if A is in B directly. I only see the error if the XRef inside a sub-assembly of the main model.
I've attached a screenshot for clarity.
Thanks for any suggestions.