I’m experiencing the same issue.Previously, I was using version 10.18.4, but after upgrading to version 10.24.2, I’m getting a message saying that the non-persistent entity "is not remote."Have you found a solution to this issue?
Hello everyone,
Adding my experience here as I'm facing the exact same problem.
I'm working on a fresh project built with Mendix Studio Pro 10.24.2. Just like others have reported, exposing a Non-Persistent Entity through a published OData v4 service results in the "is not remote"
error. The setup is very straightforward, with no complex logic involved.
Given that this seems to be happening on recent Mendix versions, I wanted to check if anyone has managed to find a solution or a viable workaround. Any help would be greatly appreciated.
Thank you.
This sounds like a bug. I believe there is a new version 10.24.5 which does fix something like this:
Maybe try that?
The issue is definitely a bug in the standard "Create Object" microflow activity when dealing with an NPE for a Consumed OData service in Mendix 10.24.x.
The workaround is to create a custom Java Action that instantiates the object directly. A simple Java Action that takes the entity name as a String parameter and uses Core.instantiate(getContext(), entityName)
in its body works perfectly.
By replacing the "Create Object" activity with a call to this Java Action, we completely bypassed the bug. Hope this helps!
It seems that when you assign a value to an 'Attribute' while performing 'Create Object', an 'is not remote' error occurs. We solved this problem by using 'Create Object' and 'Change Object' separately.