Skip to main content

Workflow Error When Clearing Table Results From Default Collection

Comments

4 comments

  • Permanently deleted user

    Does it work if instead of the "Clear Collection First", you add a RunExternalCommand activity and use "ClearSelection" as the Command Name?  I throw that in at the top of my workflow.  I think in all cases I am clearing spatial data but thought I'd mention it in case it helps.

    0
  • Permanently deleted user

    Hi Matt,

     while I'm not sure exactly what's going on with your workflow, i can say that it sounds like you are passing an undefined object to the select features activity. This activity does have a debug property which you can turn on and see what's being passed in the viewer. That would be my first step to debug the issue.

    The simulator tries to emulate the client as closely as possible, but there are times where an activity's ececution will be different. For example, the Get Map Service Info doesn't simulate well since the simulator has no concept of a site at all.

    If the debug property on client side activites fail, I'd move onward to using Fiddler to examine what's being sent back and forth.

     

    regards,

    Edmond

    0
  • Permanently deleted user

    Edmond, Using the debug it looks to be correct then after I click ok it proceeds to give me that error. Note that it isn't what I'm passing to the workflow activity which is causing the error since I can see every single entry in the collection and the data associated with it. It is definitely something going wrong when there is no spatial data on an entry in the default collection and "Clear Collection First" is True...if it is false then I don't get an error and the next feature set is appended to the collection. What ever function is called by "Clear Collection First" on the default collection is definitely the problem point here. I'm going to call bug on this one since it looks like the method is trying to clear a property on an object without checking if it is null or not first.

    Steph, I tried your suggestion (although the external command to call was "RemoveCollectionById") and it works in the case that I use a named collection and not the default collection. So now my spatial and non-spatial data is added to the collection and displayed. I can view it and then when I run the workflow again it works as I would expect it to work.  Thanks for the help.

     

    0
  • Permanently deleted user

    I can verify this is a defect on GVS 1.10, and will file up to resolve, and will add your name as the stakeholder so that you will be notified when it is resolved.

    When an error happens, check the GVS logging file  (SHIFT -ESC-ESC), there is an null reference error on FeatureSetManager - FeaturSetCollectionChanged(), and I am verifying it is from a line 'if (fs.ID.Equals(this._activeFeatureSetId))'

     

    0

Please sign in to leave a comment.