POST
|
yeah. that is kind of the crux of my issue with the way gp tools work in general. at 10.1 esri has forced us to run the gp tool in ArcMap and publish the result. Well, newsflash, many tools are not designed to run in arcmap, ever. is there an output directory that you specify when you create the tool? If so try to point that to your adapter machine. I'm not familiar with the setup you have so its hard for me to comment. I'm just saying that is one area to look into. Another area is that when ags publishes your gp tool it fundamentally alters it (in the name of 'improving' your code) Dig and try to find out where that py script is being published on your server and then edit that directly to get the print output where you want it.
... View more
08-09-2013
09:52 AM
|
0
|
0
|
1194
|
POST
|
when you say 'custom' export task - did you create this yourself using python, or within arcmap maybe? It sounds like you are close to a resolution in that the output directory stamping is incorrect. You do get an image generated, it is stamped to disk, its just that the response has an incorrect url. I work mostly in js not silverlight so this may not be as applicable to you. you have two approaches as i see it - you try to fix the output response or you workaround and rearrange that url when it is returned. For the fix, maybe you can recreate the custom print tool the way you did it originally but with a design for its external use. Part of the issues with gp tasks, publishing and ags is that esri has a single solution for desktop and server. But sometimes you are creating tools that have no desktop counterpart or are never intended for the desktop. yet you must go through arcmap. For the workaround - if the url is in a predictable format, and you have a chance at accessing it in code before it is resolved then maybe you could use regex or something similar to modify that url and correct it. With the js api there is a print task widget that makes it easy to call print jobs. But it also takes control away from the developer. In this instance you want the control back so you can recreate the print calls yourself and not rely on a widget so that you can access the response url and reorder it the way you want.
... View more
08-09-2013
07:55 AM
|
0
|
0
|
1194
|
POST
|
Couldn't agree more with the last two posts. You made some great points _Nik and thank you very, very much for those tips. between your method and Dave's that's two new ways around this issue. I have resorted to going back to the old tbx method and am not using the pyt python toolbox that i was so looking forward to. I could never get the calls out to resources to work the way i wanted. I have 45 gp tools that i need to publish and the pyt file would be enormous if i used it as anything other than just a placeholder for params and a pointer to py files. To publish those 45 tools took me over 5 days! That is cost to me and to my clients. Now i have a (precious) mxd with successful results for every one of them. However, i had to publish them all as separate services because i couldn't just publish a toolbox. This is clutter in my services directory. ESRI needs to undo this in my opinion. I think they were going for a level of handholding that will allow casual desktop users to start cranking out services. But that is not the way i use the software. And there is a marked difference between a gp script that is designed for desktop and one designed for ags publishing. they need to recognize that and split the workflows - not try to incorporate them.
... View more
06-26-2013
08:17 AM
|
0
|
0
|
539
|
POST
|
I'm seeing this issue too in IE8 -jsapi 3.3. slider slides, values get changed, setOpacity is called, nothing happens. The refresh call does not help. changing X-UA is not an option. any esri folks want to chime in??? it's disheartening to try to upgrade things when everything doesn't carry over as it should
... View more
06-20-2013
06:13 AM
|
0
|
0
|
93
|
POST
|
don't have an answer, just suggestions. have you tried Kevin's suggestion: Just a tip, which may or may not be useful in this situation: If you goto Task Manager, and under VIEW > Select Columns. Turn on "Command Line". In the processes tab you can then see in for each ArcSOC.exe process which service it is running. The name will be found at DService = "...." This might be useful in helping to identify which services require more memory than others and planning deployment. Also, have you tried ramping up the services one at a time to see how that affects things. and can you align 'heavy' map documents with 'server intense' services. i think there is also a way to set zero instances for a service, despite the fact that they are all pooled. not sure what zero instances means for a pooled service - i guess maybe it doesn't have an instance until the first call?
... View more
06-13-2013
07:46 AM
|
0
|
0
|
715
|
POST
|
very interesting. but how do you actually use that attribute when building the network? The docs say that One Way restrictions have to be attributes/expressions that evaluate to Boolean. I thought that meant a road was either one way or two way. Unless you are using this in some other way like Connectivity maybe?
... View more
06-05-2013
05:45 AM
|
0
|
0
|
272
|
POST
|
I'm seeing this also, while publishing a gp tool. I'm not trying to move any data.
... View more
05-30-2013
12:43 PM
|
0
|
0
|
240
|
POST
|
I'm getting this error now too. I'm publishing a gp tool with a py script. My data is an empty gdb that i'm only using to get a schema into one of my gp tools. I'm telling it not to move data. But it still busts with this error.
... View more
05-30-2013
12:42 PM
|
0
|
0
|
1455
|
POST
|
what does the 'sometimes' apply to? My main input param is typically Feature Set. In the old tbx style i needed to have a dummy schema setup on this so that in C# code i could get a reference to the recordset and then load it with features from a json representation. I don't see how this can be done without the schema in there. Also, something makes me think that esri may have some tool that they use to load features into the feature set from a json representation, as that is how they go over the wire to the ags rest endpoint. but is that method exposed or in the black box of ags?
... View more
05-30-2013
12:18 PM
|
0
|
0
|
319
|
POST
|
Does anyone know if it is possible to call a python script that uses the arcpy library directly from C#? I don't want to publish a gp service because it is a royal pain in the you know what. I just have a py script that does some geoprocessing and i want to call that from my C# code. I can call other py scripts from C# using a shell command. But what about complex input types like Feature Set? How would i represent those as parameters to the py call?
... View more
05-29-2013
07:37 AM
|
0
|
2
|
3292
|
POST
|
Does anyone know if it is possible to call a python script that uses the arcpy library directly from C#? I don't want to publish a gp service because it is a royal pain in the you know what. I just have a py script that does some geoprocessing and i want to call that from my C# code. I can call other py scripts from C# using a shell command. But what about complex input types like Feature Set? How would i represent those as parameters to the py call?
... View more
05-29-2013
07:36 AM
|
0
|
0
|
711
|
POST
|
I am in the same boat here. Horrible experience just trying to publish a simple toolbox with three tools in it. Analysis takes 30 minutes. Publish takes an hour. And that is for ANY change i make in ANY script in those 3 tools. How is this possibly a working solution? I could create separate services for each tool but that is overkill. These tools are related and should go in a toolbox. Sp1 didn't improve upon anything. The script solution adds many, many more steps into the process. I have to save out results, create an sddraft, turn that into and sd, take that and then publish it? Come on.
... View more
05-29-2013
05:44 AM
|
0
|
0
|
539
|
POST
|
what ever became of this issue? I'm seeing analyze and publish times over an hour each! The process of publishing a gp tool is deplorable. How could it have gotten so much worse in a new release?
... View more
05-29-2013
05:37 AM
|
1
|
0
|
438
|
POST
|
I'm confused about your question. Is your service a map service or a gp service? Doesn't NA run as a gp service? Are you coding your routing in python, C#, VB.NET?
... View more
05-17-2013
09:42 AM
|
0
|
0
|
554
|
Title | Kudos | Posted |
---|---|---|
1 | 05-29-2013 05:37 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|