Skip to main content

Assign Activity - Object reference error

Comments

2 comments

  • Permanently deleted user

    Hi Chad

    can you post your actual workflow?

    Without knowing more some possibilities are that:

    • there are no features getting selected to set the extent with?
    • you could also create the Envelope using Assign activity with New (myPoint.X-100, myPoint.Y-100, myPoint.X+100, myPoint.Y+100)

    that is assuming that myPoint is not nothing.

    Regards

    Ralph Price

    0
  • Permanently deleted user

    Likely a simple logic error and the new map service is not referencing the same thing, resulting in an empty object. The assign tries to manipulate it and fails because it isn't there. Check that your original map service layer IDs/names are identical to the new one, and trace the logic using the map service REST endpoint to see what would happen. You'll likely find the problem doing this. If not, as mentioned, post the full workflow to be reviewed.

    0

Please sign in to leave a comment.