Skip to main content

How many time can i use a featureset variable?

Comments

6 comments

  • Permanently deleted user
    Hi Yinghong Li

     

    what Activities are you performing in this loop? Are you using an Alert or some other activity that is a client Activity rather than a server Activity?

     

    That is usually when you get this sort of error.

     

    Would you like to post the content of your workflow for people to review?

     

    Regards

     

    Ralph Price
    0
  • Permanently deleted user
    my xaml is more than 32000 so i can not post even part of it.

     

    Here is the squence of it:

     

    1.  query task to create featureset.

     

    2.  temp= fsElevCert.features(0).attributes("STREET_ADDRESS").ToString()

     

    3.  foreach<feature> in featureset

     

            value="Lowest Adjacent Grade:    "+feature.attributes("LOWEST_ADJACENT").ToString()+ System.Environment.NewLine+"Finished Floor Elevation:    "+feature.attributes("FINISHED_FLOOR").ToString()+System.Environment.NewLine+ "Base Flood Elevation:     "+feature.attributes("BASE_FLOOD").ToString()+System.Environment.NewLine+System.Environment.NewLine+"Vertical Datum: "+feature.attributes("VERTICAL_DATUM").ToString()+System.Environment.NewLine+System.Environment.NewLine+"Date: "+feature.attributes("CERTIFICATE_DATE").ToString()

     

    Step 2 worked fine.  I got error on step3.  I tried to put query task after step2 and it did not work either.

     

    Thanks.
    0
  • Permanently deleted user
    Thanks Ralph.

     

    I found out what caused the problem.  I can not put alert inside of featureset loop.  
    0
  • Permanently deleted user
    i found out i can use the feature set variable many times, at least 2.
    0
  • Permanently deleted user
    I confirm: you cannot put an Alert() in a ForEach loop..  WHY!?      I've wasted a lot of time.

     

       
    0
  • Nico Burgerhart
    In the For Each loop in the example I see Foreach item in FeatureSet1 This should be Foreach item in FeatureSet1.Features

     

     
    0

Please sign in to leave a comment.