When updating Revit from ISM repository, I am getting an "Operation Terminated Prematurely" error. Below is what the ismrevitlink.log file shows. Any advice on how to troubleshoot this one?
*** Start of Exception *********************************System.Exception: CommitChangeSet has fatally terminated before commiting all instances because of the following exception: Was not able to create the relatioship. The reason maybe that it already exists(Bentley.ECSystem.Operations.BatchExecutionTerminatedException: CommitChangeSet has fatally terminated before commiting all instances because of the following exception: Was not able to create the relatioship. The reason maybe that it already exists ---> Bentley.DgnPlatformNET.DgnPlatformNETException: Was not able to create the relatioship. The reason maybe that it already exists at Bentley.DgnPlatformNET.DgnEC.DgnECRelationshipEnabler.CreateRelationshipOnElement(IECRelationshipInstance relationshipInstance, IDgnECInstance instanceA, IDgnECInstance instanceB) at Bentley.DgnPlatformNET.DgnEC.DgnECRelationshipEnabler.CreateRelationshipOnElement(IECRelationshipInstance relationshipInstance, DgnModel dgnModel, Boolean useQualifiedPep) at Bentley.DgnECPlugin.DgnECPersistenceProvider.CommitChangeSet(RepositoryConnection connection, ChangeSet changeSet, String comments, WriteModifiers writeModifiers, IList`1 preCommitSequence, IList`1 postCommitSequence, BatchExecutionController`1 batchExecutionController, IExtendedParameters extendedParameters) at Bentley.EC.Persistence.PersistenceServiceInProcess.CommitChangeSet(RepositoryConnection connection, ChangeSet changeSet, String comments, WriteModifiers writeModifiers, IList`1 preCommitSequence, IList`1 postCommitSequence, BatchExecutionController`1 batchExecutionController, IExtendedParameters extendedParameters) --- End of inner exception stack trace --- at Bentley.EC.Persistence.PersistenceServiceInProcess.CommitChangeSet(RepositoryConnection connection, ChangeSet changeSet, String comments, WriteModifiers writeModifiers, IList`1 preCommitSequence, IList`1 postCommitSequence, BatchExecutionController`1 batchExecutionController, IExtendedParameters extendedParameters) at Bentley.DesignSync.DesignSyncConnection.CommitChangeSet(ChangeSet changeSet, String commitMessage, WriteModifiers writeModifiers, IList`1 preCommitSequence, IList`1 postCommitSequence, BatchExecutionController`1 batchExecutionController, IExtendedParameters extendedParameters) at Bentley.DesignSync.DGNDesignSyncConnection.UpdateRepository(ChangeSet changeSet, String commitMessage, WriteModifiers writeModifiers, IList`1 preCommitSequence, IList`1 postCommitSequence, BatchExecutionController`1 batchExecutionController, IExtendedParameters extendedParameters, ITransformHandler transformHandler, Boolean isMajorRevision) at Bentley.Structural.Ism.DgnRepository.IsmDgnRepository.InternalCommitChangeSet(ChangeSet changeSet, Boolean skipPostCommitModelUpdate, String commitMessage, Boolean isMajorRevision) at Bentley.Structural.Ism.EngineImp.Utilities.ExchangeUtilities.GetInstancesFromChangeSet(IsmDgnRepository workingRepository, ChangeSet changeSet, List`1& newInstances, List`1& modifiedInstances, List`1& deletedInstances) at Bentley.Structural.Ism.EngineImp.Utilities.ExchangeUtilities.UpdateApplicationParseChangeSet(IsmDgnRepository workingRepository, ChangeSet acceptedChangeSet, Dictionary`2 targetInstanceSyncIdToIsmId, String& updatedAppTxrPath, String& addedObjectsTxrPath, String& deletedObjectsTxrPath, String& modifiedObjectsTxrPath) at Bentley.Structural.Ism.EngineImp.RepositoryOperations.UpdateApplication.TxrFileECInstances.UpdateApplication(IsmDgnRepository workingRepository, ChangeSet acceptedChangeSet, Dictionary`2 targetInstanceSyncIdToIsmId) at Bentley.Structural.Ism.EngineImp.RepositoryOperations.UpdateApplicationWithUi.ExecuteInternal() at Bentley.Structural.Ism.EngineImp.IsmEngineTask.SafeExecute()) at Bentley.Structural.Ism.ApiImp.IsmExceptionHelper.Throw(Exception exception) at Bentley.Structural.Ism.ApiImp.IsmApi.InternalUpdateApplication(String repositoryPath, IsmModel appModel, String filterDllPath, String filterClassName, String filterInitializer, Boolean useUi) at Bentley.Structural.Ism.ApiImp.IsmApi.Bentley.Structural.Ism.Api_7_0.IIsmApi.UpdateApplicationWithUi(String repositoryPath, IIsmModel appModel, String filterDllPath, String filterClassName, String filterInitializer, String applicationModelId) at Bentley.IsmRevitLink.WorkflowContext.UpdateApplicationImpl(String repositoryPath, IIsmModel appModel, Boolean showUI, String selectionFilePath, String substructureId) at Bentley.IsmRevitLink.WorkflowContext.UpdateFromRepository() at Bentley.IsmRevitLink.WorkflowContext.ExecuteWithUI()*** End of Exception *********************************
What is your version of iTwin Analytical Synchronizer? (latest is 12.00.00.08)
What is your version of the ISM Revit plugin? (latest is 11.02.01.07
Do you also get an error if you import that ism.dgn repository into a new Revit project/file?
If you need to include files, use:
Answer Verified By: Elena Good
Seth,
I am using Structural Synchronizer CONNECT Edition v11.01.01.04. This is what pops up when I make updates to or from the ISM repository. Is the iTwin Analytical Synchronizer a separate thing running in the background?
I am using version 11.02.01.007 of the ISM Revit plugin (for Revit 2021)
When I import the same ism.dgn repository into a new Revit project, the same error didn't appear, but many of the elements did not come over to Revit.
iTwin Analytical Synchronizer is just the new name for Structural Synchronizer, they are the same thing. Updating that is not a bad idea.
The next step would be to test something another repository, maybe a simple file or one of the Synchronizer samples with a minor change to see if Updating generally works. If not, then we would be looking at reinstalling. If it's just your file, then we would need to examine that more closely.
Thanks for the clarification. I updated to the latest version of the Synchronizer, and that seems to have solved this particular issue. Thanks!