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

Error on Enumeration guessing where NULL values are present? #5

Closed
jamesrwelch opened this issue Nov 9, 2021 · 4 comments · Fixed by #7
Closed

Error on Enumeration guessing where NULL values are present? #5

jamesrwelch opened this issue Nov 9, 2021 · 4 comments · Fixed by #7
Assignees

Comments

@jamesrwelch
Copy link
Contributor

jamesrwelch commented Nov 9, 2021

A user reports that the enumeration guessing is causing an error:
"Error in Import Process"

"We put together a small dummy dataset without any NULL values, and the Mauro Data Mapper was able to load up enumeration values for that. So as far as we can tell, it is the NULLs that causing the issue"
image

@olliefreeman
Copy link
Contributor

olliefreeman commented Nov 9, 2021

That’s odd cos we tested this exact issue when we were developing it

@aaronforshaw
Copy link
Contributor

@jamesrwelch Please can we have the error log?

@jamesrwelch
Copy link
Contributor Author

Extract of logs:

2021-11-16 10:35:29,247 [080-exec-8] WARN  .s.p.GroupBasedUserSecurityPolicyManager : Checking for any access to secured resource class DataModel without providing an ID
2021-11-16 10:35:29,247 [080-exec-8] INFO  .s.p.GroupBasedUserSecurityPolicyManager : No id access for read rights for class uk.ac.ox.softeng.maurodatamapper.datamodel.DataModel, default response is false
2021-11-16 10:35:29,252 [080-exec-8] INFO  DatabaseDataModelImporterProviderService : Importing 1 DataModel(s)
2021-11-16 10:35:29,252 [080-exec-8] INFO  DatabaseDataModelImporterProviderService : Importing DataModel with from database Surgery with name Surgery Enumeration Test
2021-11-16 10:35:29,252 [080-exec-8] DEBUG taModelImporterProviderServiceParameters : DataSource connection using SQLServer
2021-11-16 10:35:29,309 [080-exec-8] DEBUG DatabaseDataModelImporterProviderService : Size of results from statement 107
2021-11-16 10:35:48,207 [080-exec-8] DEBUG u.a.o.s.m.datamodel.DataModelService     : Validating DataModel
2021-11-16 10:35:48,328 [080-exec-8] DEBUG u.a.o.s.m.datamodel.DataModelService     : Validated DataModel in 120 ms
2021-11-16 10:35:48,328 [080-exec-8] DEBUG u.a.o.s.m.c.controller.ModelController   : Errors found in imported models

@aaronforshaw
Copy link
Contributor

@jamesrwelch can you confirm what plugin versions are in use? I am a bit puzzled that the screenshot does not show a 'Calculate Summary Metadata' checkbox beneath the 'Detect Enumerations' checkbox.

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.

3 participants