Invalid Data Action DataAction1 must set a value to the Movie output parameter.

Helllo, 


I see this messsage but as far as I know I have set it and still the error remains.

Solution

Hi Roelof,

In DataAction1 your output movie must be the type of  the structure GetMovieResponse, after you change this, you must do the assign, that assign Movie = GetMovie.Response.

[Edit] I attach the Filmdatabase.oml fixed.


I hope it helps.


Solution

Hi Roelof,

The error happens because the Data Action has an output parameter, but you are not setting its value.
You are just executing the API method that fetches the information from the external API, but as Nélio pointed out, you need to get this value and assign it to the Output Parameter, so that outside the action the data you fetched is available.

Cheers.

P.S. You don't need the output parameter to be the same type of the API method's output.
You can just set the values of the output parameters based on values you are fetching.