|
POST
|
So working with ESRI they are able to replicate the behavior, and are encountering similar behavior when trying to use a proxy instead as I tried. I have 2 other 3.1 applications which I have not upgraded (good thing) and they contain GP services secured in the same location and with identical permissions as the one I'm trying to use in 3.2, and they work perfectly. This is starting to look like a 3.2 issue. I also tried to add the other 'working' GP service which is used in the 3.1 app to the 3.2 app and I'm prompted for credentials; every time I submit the credentials the sign-in just keeps popping up again. When both GP services are exposed in the viewer app, one prompts for credentials, the other says 'Could not determine geoprocessing execution type' (as it did before when I tried to use the proxy). So back to Bjorn's observation, I do believe that the other issue and this are indeed related. While for some reason the 2 GP services behave differently when executed, it appears that credentials are not being passed correctly.
... View more
04-23-2013
06:47 AM
|
0
|
0
|
999
|
|
POST
|
I have been, and they are able to produce this. My test shows that the same service works in a secured service in desktop, but not in flex. If I publish to an unsecured location, the flex app uploads and runs just fine. Waiting on ESRI to see about proxy.my guess is that viewer is not passing credentials to GP services.
... View more
04-22-2013
07:06 PM
|
0
|
0
|
999
|
|
POST
|
Since there appears to be an issue with the GP widget and security, could someone please tell me if my issue is related to this? http://forums.arcgis.com/threads/82625-Flex-Viewer-3.2-GP-Widget-upload-using-10.1.1-returns-token-required
... View more
04-22-2013
11:49 AM
|
0
|
0
|
560
|
|
POST
|
Upload is new at 10.1. Its a capability you can enabled on the GP Service itself. Doing this allows you to upload a file to the REST end point, and then the service can consume that file. Using this you dont have to write you own "uploader". Keep in mind if you're using this its for simple files: like a text file, or zip - it isn't meant for something like a shapefile or filegeodatabase (structures that are many files comprising 1 file) If you're using ArcMap as a client - upload doesn't really matter. ArcMap is a rich client which can send a file to gp service. If you're using a web client, see the code below (javascript) which shows how to leverage the upload capability. var gpUploadURL = "http://gizmo:6080/arcgis/rest/services/ConvertCSVKriging/GPServer/uploads/upload";
//upload the zip file and get back the itemID (via uploadSucceeded)
var requestHandle = esri.request({
url: gpUploadURL,
form: dojo.byId("uploadForm"),
content:content,
load: uploadSucceeded,
error: uploadFailed
});
function uploadSucceeded(response) {
var itemID = response["item"].itemID;
//submit the GP Task by passing the itemID info the input parameter
var params = {'Input_Rows': "{'itemID':" +itemID+ "}" };
gp.submitJob(params, gpJobComplete, gpJobStatus, function(error){
alert(error);
});
}
<form id="uploadForm" style='padding:4px;' method="post" enctype="multipart/form-data">
<!-- must use name="file" as Upload expects this -->
<input type="file" name="file" id="inFile" size="50" onchange="uploadFile();"/>
</form>
Yes thanks for that. I've been using this as the initial step to getting the file to the server. After that I have other plans for that file, so using python i'm able to copy it out of the server temp location. Flex is the application though, not desktop.
... View more
04-22-2013
11:27 AM
|
0
|
0
|
2786
|
|
POST
|
Yes, its just as simple as that! While I see that GP services support 'Upload' I've yet to see an example where the user input is data local to their system. I just want to create a simply tool which copies a table from the user's local system and places it in a known location on the server. The service will then run another batch file/executable which takes the table as an input for another function. Is there anyway to do this without needing to FTP the file up to the server? EDIT: Clients are web-based, not desktop. OK, a bump and a bit of other information: I see that that the REST API supports an upload operation, but I have no idea how to incorporate this into a GP Service, or if that's even possible.
... View more
04-22-2013
04:22 AM
|
0
|
0
|
2786
|
|
POST
|
Out of desperation, I tried to configure a proxy and specify that the GP use the proxy and the error returned this time is 'Could not determine geoprocessing execution type:'.
... View more
04-18-2013
12:31 PM
|
0
|
0
|
999
|
|
POST
|
If moved to an unsecured location; the upload will work. It appears that the user credentials are now not being passed to the GP service?
... View more
04-18-2013
10:41 AM
|
0
|
0
|
999
|
|
POST
|
Flex Viewer 3.2 installed on ArcGIS Server 10.1.1 Secured services; map services access fine, adding and configuring the GP service to the widget goes fine When attempting to navigate to a local file for upload, after file is selected, the error 'token required' is returned. GP service & map services secured with the same authentication credentials; no proxy used in the application; all other secured services are accessible as expected.
... View more
04-18-2013
10:31 AM
|
0
|
12
|
3352
|
|
POST
|
Yes, its just as simple as that! While I see that GP services support 'Upload' I've yet to see an example where the user input is data local to their system. I just want to create a simply tool which copies a table from the user's local system and places it in a known location on the server. The service will then run another batch file/executable which takes the table as an input for another function. Is there anyway to do this without needing to FTP the file up to the server? EDIT: Clients are web-based, not desktop.
... View more
04-18-2013
07:58 AM
|
0
|
4
|
12289
|
|
POST
|
Yes, your example is what I'd like to be able to create. Hey there, that was created with simple graphic elements. ESRI's north arrows could stand to have a bit more variety as well.
... View more
04-18-2013
05:08 AM
|
0
|
0
|
2424
|
|
POST
|
At what step do you want to modify your original shapefile with the updated information? At each interation step, or when the iterations are all complete? Will the dataset be replaced entirely? Or are you appending to the original with your outputs?
... View more
04-18-2013
04:56 AM
|
0
|
0
|
1194
|
|
POST
|
Did you get this solved? So what I'm hearing then is that we need to have 2 parameters exposed, correct?
... View more
04-18-2013
04:51 AM
|
0
|
0
|
562
|
|
POST
|
Now i'm confused. I thought the point was to have the user enter in a field that they wanted a predefined expression to be applied to?
... View more
04-09-2013
08:11 AM
|
0
|
0
|
2705
|
|
POST
|
In your 'field to be updated' parameter, are you also specifying %Field Name% ?
... View more
04-08-2013
04:10 AM
|
0
|
0
|
2705
|
|
POST
|
I dont think you have 'pagename' defined anywhere. I think you want to getPageIDFromName http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000030000000 I do something that's probably unconventional. I have an element in my MXD which is a dynamic text from DDP (the Page name), and then i define that element as a parameter in my model. I can then reference that parameter later when I go to name and export the PDF. Also, in the future, you may have better luck in the Map Automation forum.
... View more
04-05-2013
07:47 AM
|
0
|
0
|
795
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2024 06:58 AM | |
| 1 | 12-16-2022 07:01 AM | |
| 1 | 08-09-2024 06:55 AM | |
| 1 | 08-13-2024 05:58 PM | |
| 1 | 07-23-2024 08:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2025
05:12 AM
|