Skip to main content

Workflow error: The calling thread cannot access this object because a different thread owns it

Comments

5 comments

  • Permanently deleted user

    I experienced something alike.

    Try creating a new variable and use the ASIGN activity to assign gpResult.FeatureSet.Features() to it.

    Then use this new variable as input into the AddTemporaryMarkupGeometry activity instead of directly using gpResult.FeatureSet.Features()

    0
  • Ryan Cooney

    Also be sure to pass the correct parameter type to the command. The AddTemporaryMarkupGeometry command takes a single Geometry object as its parameter. Where as gpResult.FeatureSet.Features() will give you an IEnumerable<Graphic>.

    --Ryan

    0
  • Permanently deleted user

    Hello thanks for tip Ryen and Sune

    I tried the Command Name AddFeatureSetsToSelection,  and then I got the result up in the table view. But I also want to present the same result in map. That command can I use then?

     

    Best regards

    Jan-Henrik Nilsen

    0
  • Permanently deleted user

    I am having similar issues ("The calling thread cannot access this object because a different thread owns it.") when I simply try to NEW() a SimpleMarkerSymbol (or any symbol for that matter), from within a workflow.

    [ Assign ]

     

    myLineSymbol = new Esri.ArcGIS.Client.Symbols.LineSymbol()   << crashes the Workflow

    .. and myLineSymbol is declared as an Esri.ArcGIS.Client.Symbols.LineSymbol , too.

     

     

    0
  • Permanently deleted user
    Frederic, 

     

    I'm getting the same error when trying to set the renderer.  Did you find a solution to this?

     

    Thanks,

     

    Stephanie

     

     
    0

Please sign in to leave a comment.