Why do I sometimes get a "Relative URLs are not allowed" error?
Essentials 4.4.3 HTML5 2.5.2
Why does my workflow sometimes throw an error about relative URL's? I've configured dozens upon dozens of Query Tasks with relative URL's, but sometimes the workflow throws this error:
Unhandled exception: 'Relative URLs are not allowed' in activity '1.18.1.305: Query Segments'. Relative URLs are not allowed
What's up with that? How do I get the workflow to like the relative URL today that it liked just fine yesterday?
0
-
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.
--Ryan0 -
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 -
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 -
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,
Danny0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer