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

DataImporter: NullPointer when trying to use a configuration without namingConventions #1280

Closed
PavelBal opened this issue Aug 30, 2021 · 0 comments · Fixed by #1281
Closed
Assignees

Comments

@PavelBal
Copy link
Member

When trying to load data using a configuration without a namingConventions (e.g. creating a configuration in PK-Sim and saving it prior to importing any sheet) from R, a nullpointer is produced:

Error in rClr::clrCall(dataImporterTask, "ImportExcelFromConfiguration",  : 
  Type:    System.NullReferenceException
Message: Object reference not set to an instance of an object.
Method:  System.String NameFromConvention(System.Collections.Generic.IEnumerable`1[OSPSuite.Infrastructure.Import.Core.MetaDataMappingConverter], System.String, System.String, System.String)
Stack trace:
   at OSPSuite.Infrastructure.Import.Core.ParsedDataSet.NameFromConvention(IEnumerable`1 mappings, String convention, String fileName, String sheetName) in D:\Work\OSPS\Repos\OSPSuite.Core\src\OSPSuite.Infrastructure.Import\Core\IParsedDataSet.cs:line 36
   at OSPSuite.Infrastructure.Import.Services.Importer.<>c__DisplayClass8_1.<NamesFromConvention>b__1(ParsedDataSet s) in D:\Work\OSPS\Repos\OSPSuite.Core\src\OSPSuite.Infrastructure.Import\Services\Importer.cs:line 134
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

CompiledDataSet_oneSheet.xlsx
dataImporterConfiguration_noSheets.zip

benjaperez1983 added a commit that referenced this issue Jun 6, 2024
benjaperez1983 added a commit that referenced this issue Jun 6, 2024
benjaperez1983 added a commit that referenced this issue Jun 6, 2024
benjaperez1983 added a commit that referenced this issue Jun 7, 2024
benjaperez1983 added a commit that referenced this issue Jun 13, 2024
msevestre pushed a commit that referenced this issue Jun 14, 2024
* #1280 Add new Exception and chang message to show Module

* #1280 Add new Exception and chang message to show Module

* #1280 Fix Tabs

* #1280 tabs on select statement

* #1280 Fixes on Code Review

* #1280 Changes on Exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants