I have an entity A with 1:N relation to other entity B with a field of type POINT.
In Flutter I have defined two custom classes (A and B classes) and B Class has an attribute type Point:
Point geopos;
The file main.refectable.dart has been generated, but when I fetch the data from the database I have this exception in main.refectable.dart file:
Exception has occurred.
_TypeError (type ‘String’ is not a subtype of type ‘Point’ of ‘value’)
The value variable contains an identifier:
5hAAAAEBAAAA8Gvi7G96XsB2skjRUqtCQA
My AppID is EF16A871-80DD-437B-FF13-FAF3968E1D00
Thanks in advance.
Regards,
Dani
Hi, Dani!
Did you encountered this exception when tried to load entities of class A with relations?
Regards, Andriy
Hi Andriy,
The exception occurs when I fetch Entity A that has 1:N relation with autoload to entities of class B.
Class B has an attribute of type POINT.
I’dont try to do direct fetch to entity of class B.
Let me know if you need more information…
Regards,
Dani
Hi, Dani!
Thank you for the answer. We know about this problem. Internal ticket BKNDLSS-20415 is already created and will be fixed in next release. We will notify you when fix will be released.
Regards, Andriy
Hi, Andriy!
Ok, thank you. I’ll be wait the next release…
Hi!
Any news about when the next version of the Flutter SDK will be ready with this problem fixed?
Regards,
Dani
Hi @Dani_Sevilla
This issue has been fixed. Please check out the new Flutter SDK version 1.1.2!
Best Regards,
Maksym
Hi @Maksym_Khobotin
Sorry but I have updated the project to Flutter SDK version 1.1.2 and the problem persists in iOS.
Here you have a test project with de SDK updated and the exception persists:
i
Hi @Dani_Sevilla
I think the problem is that your Flutter SDK is using the old, cached version of Swift SDK underneath.
You should update it to the version 5.7.5 by running the following commands:
cd ios
pod update
Best Regards,
Maksym
Hi @Maksym_Khobotin
Ok, let me try it and I’ll tell you …
Regards!
Dani
Does it work for you @Dani_Sevilla ?
Hi @Maksym_Khobotin
None.
I have done:
Maksym_Khobotin:
cd ios
pod update
and the problem persists.
I have tried “flutter clean” too but not luck.
In your computer my project not have the exception???
Hi @Dani_Sevilla
I’ve reproduced your issue. The root cause is not proper handling of nested relations (in your example Tour contains Visit class that contains system class Point). I created the internal ticket BKNDLSS-20589 to fix it.
Sorry for this inconvenience.
Best Regards,
Maksym
Hi, @Maksym_Khobotin
Ok, thank you. I’ll be wait for the next release…
Hi!
Any news about when the next version of the Flutter SDK will be ready with this problem fixed?
I have some developments pending this issue
Regards,
Dani
Hi @Dani_Sevilla
This issue is caused by the Backendless server problem. So we are waiting for the new release that should come today or tomorrow.
Best Regards,
Maksym
Ok, Thanks for the info!!
Hello @Dani_Sevilla
We’ve released the new version of Backendless.
Please, could you confirm that this issue doesn’t appear?
Regards, Inna
Hi @Inna_Shkolnaya , @Maksym_Khobotin
No…The issue persists…
Now, I don’t get an exception but the Point is null in the nested relation (in my example Tour contains Visit class that contains system class Point). In the Visits Database table I have values in the geopos field.
Hi @Inna_Shkolnaya , @Maksym_Khobotin
I have tested this issue in another project and as you can see in attached screenshoot now is working:
It seems that the issue is resolved!! I don’t know what is happening in the test project.
Good Job!
Thanks for the support…