Select to view content in your preferred language

Passing empty feature set as parameter into service

2805
3
01-05-2011 09:32 PM
asdfasdf1
Emerging Contributor
Hello. When I pass an empty feature set as a required parameter (barriers) into a network analysis service, I get an error. There is no problem with this in ArcMap, but it throws an exception with Flex. The feature set is not null, but it is just empty. Is there a workaround for this? Thanks.
Tags (2)
0 Kudos
3 Replies
LewLadd
Deactivated User
I too see this problem from the JS API, passing to a geoprocessing service function. I'd love to hear from anyone successfully passing an empty featureset as a parameter to a GP method.
0 Kudos
SamitChakraborty
Emerging Contributor
Any luck with this, I am using Silverlight?
0 Kudos
LewLadd
Deactivated User
Hello Samit,
    Its been a while since I've tried using FeatureSets. Instead what I've done is stringify json and pass strings as parameters. On the server I use the python json module to convert the string parameters into python dictionaries.

    This works well but if I could be shown how to work with FeatureSets reliably that would still be preferred.

Lew.
0 Kudos