Hi, I have a Mendix 5.8.1 project in which I don want to retrieve sprint and stories using the StoriesAPI. For Sprints this works fine, however when tru to do this for Stories an soap error is returned. Request is like: Created soap envelope: <soapenv:envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi=""><soapenv:header><ns1:authentication xmlns:ns1=""><username>PlatformAPIUser</username><password>PlatformAPIPassword</password></ns1:authentication></soapenv:header><soapenv:body><ns1:getstories xmlns:ns1=""><apikey>a04f7450-fa11-40b4-9f49-43349e6f4060</apikey><sprintid>362281</sprintid><projectid>1382afdb-d4b9-4d28-8c07-bfa57223cf17</projectid></ns1:getstories></soapenv:body></soapenv:envelope> Response from the sprintr is always: Stub for ] Thread [ ]: <soap:envelope xmlns:xsd="" xmlns:xsi="" xmlns:soap=""> <soap:body> <soap:fault> <faultcode>Server</faultcode> <faultstring>Attribute 'Points' is not optional but mapped value 'PCPStoriesAPI.StoryTransient.PCPStoriesAPI.StoryTransient.Points' is null</faultstring> </soap:fault> </soap:body> </soap:envelope> Any suggestion?
3 answers

This is a known issue with the Stories API. If you have one or more stories in your sprint that do not have points assigned, the Stories API will generate this error instead of returning the stories.

The relevant team is aware of this issue and it will be fixed in a future release. But don't hesitate to file a support ticket if you think we should pick this up sooner rather than later.


Hello Cees,

You probably didn't set the Points attribute to a non-empty value in your app service call. Could you check that?

In the upcoming 5.10 release (not beta!) it will be possible to create and consume app services which allow you to set parameters and response types explicitly to empty.


Hi Reinout,

Nothing to set. I imported the StoriesAPI from the AppStore (version3) which creates a submodule with a domain model. constants and a number of standard actions one being Get Stories. I put that in a mf that supplies the input parameters including a sprintid. The is no reference to a points attribute anywhere that I can set. I would expect sprintr to return a list of stories (like a list of sprints when I do the same for spints) but instead it throws the soap error.