Zum Hauptinhalt gehen

Why do I sometimes get a "Relative URLs are not allowed" error?

Kommentare

4 Kommentare

  • Ryan Cooney
    Hi Sean,

     

    Relative URLs are never allowed by the Query Task activity. The specific 'Relative URLs are not allowed' message comes from the Esri WPF API when it tries to make the request to ArcGIS Server.

     

    Query Tasks that run in JavaScript in the viewer are a little more forgiving. Relative URLs make sense here because the browser knows the URL of the current page and relative URLs can be relative to it or the root of the domain.

     

    --Ryan
    0
  • Sean McClurkan
    Thanks, Ryan.

     

    The issue was my Get Map Service Info activity was not set up correctly and was not returning a valid value, so the URL was incomplete.  I fixed my activity and the URL was made valid again.  The old "Copy and Paste" villain . . . .I-D-10-T error . . .
    0
  • Permanently deleted user
    Hi Sean and Ryan,

     

      I'm new to workflows and still muddling my way through. I am working on a workflow that allows a user to enter a range of dates, and only displays the features within that range. I am getting the 'relative URL' error at my Query task. Any ideas what I'm doing wrong? The workflow is too long to post here unfortunately.

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000Xcq7&feoid=Body&refid=0EM60000000XwKo"_/_img_

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000Xcq7&feoid=Body&refid=0EM60000000XwKt"_/_img_
    0
  • Permanently deleted user
    Hi Lisa,

     

    If you drop the QueryURL variable into an alert box just before the query task, what does it return?  Is it a valid URL?  If not, I would look at where you are assigning the variable and see why it is not correct.

     

    I hope that helps!

     

    Thanks,

     

    Danny
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.