Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load a spatial structures or a reactions BB #1376

Closed
PavelBal opened this issue Jun 17, 2024 · 1 comment · Fixed by #1379
Closed

Cannot load a spatial structures or a reactions BB #1376

PavelBal opened this issue Jun 17, 2024 · 1 comment · Fixed by #1379

Comments

@PavelBal
Copy link
Member

From the same project as in #1354

  1. Save the spatial structure as PKML
  2. Create a new module and try to load it as PKML:

Application:
MoBi® 12.0.263

Unable to find a serializer for 'OSPSuite.Core.Domain.Builder.SpatialStructure'

Stack trace:

at OSPSuite.Serializer.Xml.XmlSerializerRepository`1.SerializerFor(Type typeOfObjectToSerialize)
   at MoBi.Core.Serialization.Xml.Services.XmlSerializationService.serializeFor(Type type)
   at MoBi.Core.Serialization.Xml.Services.XmlSerializationService.ElementNameFor(Type type)
   at MoBi.Presentation.Tasks.SerializationTask.retrieveElementsToDeserializeFromFile[T](XElement xelRoot, String fileName)
   at MoBi.Presentation.Tasks.SerializationTask.LoadMany[T](String fileName, Boolean resetIds)
   at MoBi.Presentation.Tasks.Interaction.InteractionTask.LoadItems[T](String filename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.loadBuildingBlock(BuildingBlockType buildingBlockType, String filename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.loadBuildingBlocksToModule(Module module, Func`1 getFilename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.LoadBuildingBlocksToModule(Module module)
   at MoBi.Presentation.UICommand.LoadBuildingBlocksToModuleUICommand.PerformExecute()
   at OSPSuite.Presentation.UICommands.ObjectUICommand`1.Execute()
   at OSPSuite.Presentation.UICommands.UICommandExtensions.ExecuteWithinExceptionHandler(IUICommand uiCommand, IEventPublisher eventPublisher, IChangePropagator changePropagator)
@PavelBal
Copy link
Member Author

Also reactions:

Application:
MoBi® 12.0.263

Unable to find a serializer for 'OSPSuite.Core.Domain.Builder.ReactionBuildingBlock'

Stack trace:

at OSPSuite.Serializer.Xml.XmlSerializerRepository`1.SerializerFor(Type typeOfObjectToSerialize)
   at MoBi.Core.Serialization.Xml.Services.XmlSerializationService.serializeFor(Type type)
   at MoBi.Core.Serialization.Xml.Services.XmlSerializationService.ElementNameFor(Type type)
   at MoBi.Presentation.Tasks.SerializationTask.retrieveElementsToDeserializeFromFile[T](XElement xelRoot, String fileName)
   at MoBi.Presentation.Tasks.SerializationTask.LoadMany[T](String fileName, Boolean resetIds)
   at MoBi.Presentation.Tasks.Interaction.InteractionTask.LoadItems[T](String filename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.loadBuildingBlock(BuildingBlockType buildingBlockType, String filename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.loadBuildingBlocksToModule(Module module, Func`1 getFilename)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForModule.LoadBuildingBlocksToModule(Module module)
   at MoBi.Presentation.UICommand.LoadBuildingBlocksToModuleUICommand.PerformExecute()
   at OSPSuite.Presentation.UICommands.ObjectUICommand`1.Execute()
   at OSPSuite.Presentation.UICommands.UICommandExtensions.ExecuteWithinExceptionHandler(IUICommand uiCommand, IEventPublisher eventPublisher, IChangePropagator changePropagator)

@PavelBal PavelBal changed the title Cannot load a spatial structures BB Cannot load a spatial structures or a reactions BB Jun 17, 2024
@rwmcintosh rwmcintosh self-assigned this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Fixed
Development

Successfully merging a pull request may close this issue.

2 participants