Retrieve GP Messages from Geoprocessor Activity
Does anyone have an example of how to return messages from a GP services with the 'Messages' output argument? I am looping through the messages argument as an object, but keep getting a serialization error.
Like:
There was a workflow error running activity: Exception has been thrown by the target of an invocation. Workflow 'CalculateAcresOnTheFly' failed Aborted exception: 'Type 'ESRI.ArcGIS.Client.Tasks.GPMessage' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.'. Type 'ESRI.ArcGIS.Client.Tasks.GPMessage' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
0
-
I am having the same issue. Did you figure this out?
Thanks!0 -
Hi Shana,
Yes, I did. Do you still need help? Sorry for the late reply... just getting back after the government shutdown.0 -
Hi Ryan,
could you explain me how you figured it out?
Maybe you can post an example...
Thank you.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer