Code 8044 error : "Cannot save entity with primitive collection property _private_geoRelations"

Hello,

I am trying to update one table fields with the relation in it. I am not updating the relation field, I am just updating the other fields of the table and I am getting this error:
“Cannot save entity with primitive collection property _private_geoRelations”.
FYI: I am trying to update this using Javascript API.

Hi vishal,

Please provide you APP_ID and example JS code what you are using for reproduce the problem.

Regards, Vlad

APP_ID : 2AB96166-7105-085B-FF4D-D41B83B38000.

JS Code attached.

Js.txt (1.2kB)

I’ve created a simple index.html file for reproduce the problem and everything is ok, no errors

index.html is attached

Could you please try again, looks like the problem is with another part of your code

index.txt (1.87kB)

Thanks and lot. The only changes you made is passing the “Table_Name” directly instead of “$root.Classes.Table_Name” and I see that it works fine. May I know the reason or difference between these two?Thanks…

I’ve replaced $root.Classes.EmployerProfiles by this “EmployerProfiles” because I don’t know what is $root.Classes.EmployerProfiles in your case, looks like you are using Angular framework, and I suggested that $root.Classes.EmployerProfiles is a string with TableName.

After quick look at JS SDK docs I noticed undocumented feature, instead FunctionConstructor you can pass TableName as string in Backendless.Persistence.of(“TableName”) as well

So, we have two variants:

  1. as string
 Backendless.Persistence.of("TableName")
  1. as function-contructor
function TableName(){ ... }
Backendless.Persistence.of(TableName)

Could you please show me what is $root.Classes.EmployerProfiles in your case, I mean how do you define the variable

It is defined under classes.js. And we get classes.js when we download SDK.