Skip to main content

UpdateFeatures: Object is Missing

Comments

4 comments

  • Nico Burgerhart

    Yes I've seen this also. In my opinion this is a bug.

    My workaround is to explicitly convert the ObjectID to an integer value (with CInt or a similar function).

    0
  • Mark Norbury

    Hi Nico

    Thanks for the confirmation.  I have tried changing the ObjectId to an integer by using the cint() function, but then the UpdateFeatures activity changes it back to a string.

    How did you manage to ensure that it remained an integer?

    Thanks

    Mark

    0
  • Nico Burgerhart

    Can you post the workflow here or send it to me, nico.burgerhart(at)grontmij.nl

    0
  • Mark Norbury

    Thanks, Nico, for your help with this and for emailing me the sample code.

    In my workflow I was creating a new graphic object from the featureset and setting its attributes.  I was doing this under the assumption that the UpdateFeatures activity needed a Features collection object (as it states in the Help for this activity, and if you get the workflow to create a new variable for you for this parameter this is the type of variable it creates).

    However I have found that by using a Featureset object in the UpdateFeatures activity instead that I can save directly back to the feature set.  It looks like this activity can take either a Featureset object or a Features collection object, even though this is not stated in the help.

    I have recommended to Latitude that they update the documentation accordingly to indicate the different data types this parameter can take.

    0

Please sign in to leave a comment.