-
Notifications
You must be signed in to change notification settings - Fork 165
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 when trying to migrate IList data type with DynamicApi.GetList #3597
Comments
➤ PM Bot commented: Jira ticket: RNET-1143 |
Hi @Scorter, thanks for reporting this. |
Of course @papafe, first I will show you the old version.
New version where is the migration to be done, transforming the "Nominal" and "MeasuredValues" fields from float? for string:
Remembering that the error occurs specifically in the "MeasuredValues" field in the CalibrationTableRowExecutionEntity class. Thanks a lot for the help! |
I can reproduce this. Looking into it. |
Hi @nirinchev, thanks for your help and solving this. Can you tell me when this pull request will be reviewed and this fix will be available? |
We had a company-wide hackathon last week, which is why there's been no movement on that PR. I expect it'll get reviewed and released at some point this week. |
What happened?
I'm migrating data that was previously "float?" and IList<float?" to the type "string" and "IList". I am attaching the code that performs this migration, and everything goes well when I give a DynamicApi.GetList in an IEmbeddedObject, however, when I call a DynamicApi.GetList in a "float?" gives the error "KeyNotFoundException: The given key '' was not present in the dictionary". him being the "float?" type. The error only happens when I try to call a GetList in the "MeasuredValues" field, the rest of the code works fine and performs the correct conversion. Does anyone have an idea what I might be doing wrong? See the error that appears:
See how MeasuredValues is in the database, it appears in the scope as List but it is a List<float?>, I believe this is a bug in the realm, but I guarantee that in the code we are saving it as IList<float?>.
I'm attaching a drive with the old bank (the bank that tries to get "MeasuredValues") in case it helps with anything. Link drive :
LinkDrive
Repro steps
The error occurs exactly on this line:
Version
.NET Framework
What Atlas Services are you using?
Local Database only
What type of application is this?
Unity
Client OS and version
Unity
Code snippets
Stacktrace of the exception/crash you're getting
Relevant log output
No response
The text was updated successfully, but these errors were encountered: