Skip to main content

Display Capture Geometry Attributes inserted in Sql Non Query

Comments

4 comments

  • Permanently deleted user
    Hi Lisa,

     

    Looking at your workflow it looks like your providing the @objectid variable with a NULL value, nothing has been assigned the objectid in your variable list. I would have expected to see the OBJECTID returned from the Query Activity from earlier in the workflow.

     

    On that note, if you only need the OID returned from the query I would suppled the out fields of the activity to be "OBJECTID". Then use featureSetInitialSelection.Features(0).Attributes("OBJECTID") as the value that you assign to the @objectid parameter that you use in you SQL activity.

     

    Warren
    0
  • Permanently deleted user
    Ah upon, re-reading this you'll need to use a loop within your workflow as your selection polygon contains a number of street segements...
    0
  • Permanently deleted user
    Hi Warren, thank you for the suggestion. I 've added the featureSetInitialSelection.Features(0).Attributes("OBJECTID") to the parameters in the SQL Non-Query activity:

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000GsCQ&feoid=Body&refid=0EM60000000UkKp" _/_img_

     

    but I am now getting this error:

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000GsCQ&feoid=Body&refid=0EM60000000UkKk"_/_img_

     

    which I've discovered is because I am trying to enter an 'object' data type into an integer field in the SQL database:

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000GsCQ&feoid=Body&refid=0EM60000000UkKu"_/_img_

     

    Do you have any suggestions on how to convert the OBJECTID Object to an integer in order to insert it into the SQL table?

     

    And using a loop to process multiple line segements will be a whole other struggle! One problem at a time though!

     

    Thank you!
    0
  • Nico Burgerhart
    Use CInt(featureSetInitialSelection.Features(0).Attributes("OBJECTID"))

     

     
    0

Please sign in to leave a comment.