Closed johnnyontheweb closed 1 year ago
Hi @johnnyontheweb please contact support centre regarding this issue. https://www.ideastatica.com/support-center
Tested after #355 , still not working.
Hi Johny, thank you for the information and for submitting the support ticket to the Support Centre. We have analyzed it already and the reason for the Member application failure is that the member being imported has a zero length. This causes the Member application to fail to create a project.
We will fix the way we explain this situation to the customer into some of the next patches, but please try to check, if this could be the right reason for this failure. Thank you.
Hi Martin, thanks for replying, I've already forced any member written in IOM with a non-zero length, also by manually assigning the .Length property. This does not solve the error; I kindly ask how the member length is acquired, I'll continue testing on my end.
Hi @johnnyontheweb,
I will respond here. When creating a sub-structure or design member it is currently a requirement to have a connection at either end of the member.
We are currently not validating this requirement on import, hence why the import works correctly but when opening member there is an issue.
So to get it to work as it currently stands, you should also define a connection in the IOM and reference it as well as one of the imported items. I have attached an updated IOM.xml file which should work. Import_nl.zip
Cheers Nathan
Thanks @nathanlukeIDEA for the reply, actually I was expecting it on the opened User Portal issue.
As a consequence, I forced to have always connections defined in IOM for both ends of a member, even if the user did not select both end nodes of a beam.
It turned out that the "zero-length" error was referred to beams connected to end nodes of the member, so the portion of the structure I should write in IOM must include also these other beams with their nodes. I usually pass to IOM only the selected portion of the structure to avoid writing a huge amount of data, but I'm currently experiencing some syncing issues (i.e. overlapped elements on second run - if it happens again, I'll start another thread there). For future, I think a more verbose error would be of a great help.
Hi @johnnyontheweb,
We will also close the Portal issue. Are you using the BIMAPI and BIMAPILink interfaces now? https://developer.ideastatica.com/docs/bimapi/bimapi_checkbot_link.html
This will dramatically help with reducing syncing errors.
An addition to the error messages, we will try and validate the import to ensure any member requirements are automatically fixed. As you will notice if you delete the Member and then re-instate it in the Checkbot UI, the end connection automatically gets added so we will try and allow this for imported IOM structures as well.
Regards Nathan
Hello, no, I'm not using BIMAPI and BIMAPILink interfaces - is this a new (and different) method to communicate woth CheckBot? In any case, I expect the current code to work.
I amended my code by removing all the calls to GetMaxId, and this made stable the modelling data passed to CheckBot: this is to avoid passing the same element with different ID. On CheckBot opening all is working fine (connections and members are ok), but.... I still get different error when I press "Sync" in CheckBot, and I cannot syncing the model in any case due to the following errors. Please note that selection in fea is changed (different nodes and elements to import).
ERROR 1:
2023-11-10 09:04:26.978 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] SynchronizeCommand failed with error: System.IO.FileNotFoundException: Connection data contract file does not exist. 2023-11-10 09:04:26.978 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] HRESULT: 0x80070002 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] Source: IdeaStatiCa.ConnectionChecks 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] Stack trace: 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.ConnectionChecks.Service.ConnectionDataContractStorage.Load(String connWorkingDir, Boolean updateToLatestVersion) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Helpers.ConnectionDataContractUpdater.ReadConDataContract(IConnectionPoint cp) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Helpers.ConnectionPointTools.AddBeamsToDataContract(State state, ConnectionDataContractUpdater connectionUpdateService, SelfConnectionEditorContextProvider editorContextProvider, LibCommandFactory cmdWSFact, IConnectionPoint cp) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaCheckbot.BookmarkTableDriveResolver.ProcessFile(State lockMap, ConnectionDataContractUpdater captionSet, SelfConnectionEditorContextProvider handler, LibCommandFactory nodeAvailable, IConnectionPoint parentVersion) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Helpers.ConnectionAutomationClientGRPC.WriteEditedConToTemp(State currentState, IConnectionPoint cp) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.WriteEditedConPointToTemp(State state, ContainerStorageImmutable storage, ReducerState newState) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.StorageAction(State state, IConnControlService connClientServic, State previousState, IModuleService moduleService, ContainerStorageImmutable storage) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.Invoke(IAction action, State state, State previousState) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.Reducer.InvokeInternal(State newState, IAction action) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.Reducer.Invoke(State currentState, IAction action) 2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in Redux.Store
1.InnerDispatch(IAction action)
2023-11-10 09:04:26.979 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.ViewModels.ModelEntitiesViewModel.<>c__DisplayClass30_1.<<-ctor>b__25>d.MoveNext()`
ERROR 2:
2023-11-10 09:04:08.871 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] SynchronizeCommand failed with error: System.ArgumentNullException: Il valore non può essere null. 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] Nome parametro: path2 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] HRESULT: 0x80004003 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] Source: mscorlib 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] Stack trace: 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in System.IO.Path.Combine(String path1, String path2) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.ConnectionInProjectTools.GetConnectionTempData(ProjectLocationInfo projectLocationInfo, IConnectionPoint connectionPoint, Boolean useExistingTempData) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Helpers.ConnectionDataContractUpdater.ReadConDataContract(IConnectionPoint cp) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Helpers.ConnectionPointTools.AddBeamsToDataContract(State state, ConnectionDataContractUpdater connectionUpdateService, SelfConnectionEditorContextProvider editorContextProvider, LibCommandFactory cmdWSFact, IConnectionPoint cp) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaCheckbot.BookmarkTableDriveResolver.ProcessFile(State lockMap, ConnectionDataContractUpdater captionSet, SelfConnectionEditorContextProvider handler, LibCommandFactory nodeAvailable, IConnectionPoint parentVersion) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Helpers.ConnectionAutomationClientGRPC.WriteEditedConToTemp(State currentState, IConnectionPoint cp) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.WriteEditedConPointToTemp(State state, ContainerStorageImmutable storage, ReducerState newState) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.StorageAction(State state, IConnControlService connClientServic, State previousState, IModuleService moduleService, ContainerStorageImmutable storage) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.ConnectionReducer.Invoke(IAction action, State state, State previousState) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.Reducer.InvokeInternal(State newState, IAction action) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.Store.Reducers.Reducer.Invoke(State currentState, IAction action) 2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in Redux.Store
1.InnerDispatch(IAction action)
2023-11-10 09:04:08.872 +01:00 [Error] (11568-1) [ccm.app.gui.contentviewmodel] in IdeaStatiCa.ViewModels.ModelEntitiesViewModel.<>c__DisplayClass30_1.<<-ctor>b__25>d.MoveNext()`
**What does "path2" should contain?
Which file is the data contract? I just need to know what to look for.**
After pressing Sync two or more times, CheckBot asks me to update materials, even if they have no changes.
Describe the bug I cannot open Member from CheckBot - I kindly ask your help on the internal error reported by Member on opening.
followed by:
To Reproduce Click on "Open member" once a member is selected in CheckBot.
Expected behavior Member has to start normally.
Desktop (please complete the following information):
Additional context Please see IdeaMember.log excerpt attached: IdeaMemberLog.txt
IDEA StatiCa folder with CheckBot model: IDEAfolder.zip