The FM works when I test it directly in the target system.
When the same FM is called from GetEntity I can see in debugging that the data is also coming back correctly.
It is strange though - that when I called the same FM from the Execute_Action then I get the mentioned error message. I have checked that the correct destination is given to the function call.