Support Topics Documentation Slack YouTube Blog

Flutter: Error retrieving relation with geopoint attribute

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? :slight_smile:

Hi @Maksym_Khobotin

None.

I have done:

and the problem persists.

I have tried “flutter clean” too but not luck.

In your computer my project not have the exception???