Skip to main content

Routing Geoprocessing Task

Comments

7 comments

  • Permanently deleted user

    Sorry, I don't have a solution but I am having similar trouble.

    Captured geometry, created a new GPFeatureRecordSetLayer from the geometry by New GPFeatureRecordSetLayer("gpfrsl", geometry), and used it as the sole input

     

    GPFeatureRecordSetLayer parameter for a GP service. GP service fails to run without returning any workflow or ArcGIS Server errors.

    It runs fine by submitting a JSON GPFeatureRecordSetLayer representation via the REST endpoint, as does running the script directly with a hard-coded feature set, as well as substituting a string input parameter instead.

    Running 10.0 sp3

    0
  • Permanently deleted user

    Ok, I think I've figured out where I was going wrong. The name property of the GPFeatureRecordSetLayer must match the name of the input parameter in the GP service (not the display name).

    E.g. Parameter: Work_Area = New GPFeatureRecordSetLayer("Work_Area", featureSet) or New GPFeatureRecordSetLayer("Work_Area", geometry).

    Unless I've missed something, the documentation doesn't make this clear.

    I hope this helps

    0
  • Permanently deleted user

    It has been a best practice to always use the suggested input paramater by clicking the ? next to the input dialog in the workflow. This should prefill the required values for the geoprocessing task. Simply substitute your geometry variable.

    0
  • Permanently deleted user

    Dear Rob and Erik,

    Thank you in advance for your valuable input, I've totally changed my approach by using route task activity (which is a workflow avticity that takes the route URL) instead of a geoprocessing tool, and it worked well, I'll try your solution and compare between the two approaches.

    Thank you again!

    Hani

    0
  • Permanently deleted user

    Do you have any idea about displaying driving directions for the route  in Geocortex? This is documented with this (https://support.geocortex.com/SupportForums/Thread.aspx?thread=57469&mid=2&pageid=0&ItemID=20) thread .

    0
  • Permanently deleted user
    Hi Hani...did you ever find a solution to display driving direction for the route? We are trying to accomplish the same thing.
    0
  • Aaron Oxley
    Hi Lisa,

     

    It looks like you already found it, but for anyone else going down this path, please see the comment from Amanda in this article: 

     

    https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=9066000000007UcAAI

     

    Thanks,

     

    Aaron Oxley
    0

Please sign in to leave a comment.