POST
|
I am facing similar issue on 7 May 2014. I get the error :- Runtime error <type 'exceptions.AttributeError'>: UNKNOWN I get the above error when I try to run the GP commands like arcpy.MakeFeatureLayer_management or arcpy.Delete_management. The above python command works on 1 machine, but gives the above error on another machine, reasons unknown. The ArcGIS Desktop installed on both machines is 10.0 SP5 Build 4400. Please suggest urgently as it's blocking the deliveries. Regards, Kaushal Shah.
... View more
05-07-2014
02:41 AM
|
0
|
0
|
538
|
POST
|
Yes, Thanks for the quick reply and the workaround you mentioned but we have a case here. The defaults had been applied on different fields of a table. Multiple systems are updating this table. So all systems will have to update their process each time any change comes to default field values. Anyways it could be by design as you said and I thought of checking with ESRI support. Thanks. Kaushal.
... View more
01-29-2014
08:41 PM
|
0
|
0
|
633
|
POST
|
Even I am in a similar situation. I am using arc Gis 10.0. I have created a geoprocessing data model. I am using append tool in the model. While using append tool and inserting new records to the target table, I have mapped several fields of the target table with input table fields for the appropriate data transfer. Few fields I have not mapped. These fields were having default values, but when the append tool runs and the new records are created, the default values does not appear in the new records. When I insert a new record directly to the target table(feature class) using arc editor of arcmap 10.0, I can see the default values being inserted along with my manually entered field values. Any suggestion at the earliest will be highly appreciated. Is it an ESRI bug of the tool. Regards, Kaushal Shah.
... View more
01-29-2014
12:51 AM
|
0
|
0
|
633
|
POST
|
Had the same problem here and this .toJSON() fixed it. This helped me too. Thanks. Regards, Kaushal Shah.
... View more
09-30-2013
06:05 AM
|
0
|
0
|
654
|
POST
|
My issue was that the internet was not working on arcgis server machine. The code was fine. Fiddler installation helped in finding the issue by reading request and response parameter values. From Fiddler I found the map exportoptions json string generated by running my code in IE, and then ran it on print web map task service of my server. http://ms02291/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute The fiddler showed the error that about the online esri basemap. The error was that: Unable to complete operation. Error executing tool.: Layer "layer0": Unable to connect to map server at http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task). The below forum link had helped to resolve above error. http://forums.arcgis.com/threads/56702-Export-Web-Map-Task-Error-quot-Unable-to-connect-to-map-server...-quot The below was the solution link in the above link. The internet had to be configured and run with the "arcgis" user of arcgis server on the server machine to connect to online (internet) url services. http://resources.arcgis.com/en/help/main/10.1/index.html#//015400000309000000 Finally I was able to export my map with basemap. The graphics is still not exporting but that is a separate case. All the best. For any troubleshoot further I can be reached below. Regards, Kaushal Shah, India. +91 9891626907, kaushal.shah@tcs.com
... View more
09-27-2013
08:53 AM
|
0
|
0
|
283
|
POST
|
I have created the print task code but its not exporting the map. I need to export map and then download for the user. I have added basemap, my custom rest services, some esri live feed rest services, some graphics on the map. I have tried my local server geoprocessing printtask, and the esri online printtask, but none of them returns the exported map url.. I have also used the proxy page for this and have tried without enabling the proxy but none way works. I am pasting the javascript method for reference which is being called upon button click after the map loads. I have tried with the commented codes also. function exportMap() { // var map1 = new esri.Map("map", // { slider: true, basemap: "streets", logo: false }); // var url = 'http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task'; // var url = 'http://ms02291/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task'; // var printTask = new esri.tasks.PrintTask(url); // var printResult = function (result) { // console.log(result) // alert(result); // } var template = new esri.tasks.PrintTemplate(); template.exportOptions = { width: 500, height: 400, dpi: 96 }; //template.format = "PDF"; template.format = "JPG"; template.layout = "MAP_ONLY"; template.showAttribution = false; //template.preserveScale = false; var params = new esri.tasks.PrintParameters(); params.map = map; params.template = template; // printTask.on("complete", printComplete); // printTask.execute(params, printResult); //print task //var printTask = new esri.tasks.PrintTask("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task"); //var printTask = new esri.tasks.PrintTask("http://ms02291/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task"); var printTask = new esri.tasks.PrintTask("http://ms02291/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"); printTask.execute(params, function (result) { alert(result.url); window.open(result.url); }); } This is very urgent. Please help to rectify the issue. Regards, Kaushal Shah.
... View more
09-25-2013
08:00 AM
|
0
|
1
|
4863
|
POST
|
That would make sense, as we're at 10.1 for the moment. Thanks! I am using arcgis server 10.2 and working on arcgis javascript 3.6 API's. This is not working for me still. I also tried using my arcgis server printing geo-processing tool - "http://ms02291/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task", still this is not working. Is it important to include proxy path. Need urgent help. regards, Kaushal Shah.
... View more
09-25-2013
05:25 AM
|
0
|
2
|
954
|
POST
|
Thanks a ton for the help. This helped me overwrite the existing feature service without deleting it manually. I am saved. But here I believe that we had to add the new part of the code that you provided BEFORE the staging of the service definition and not after the line arcpy.StageService_server(outXml, sd). You mentioned otherwise. So the new code comes before the "outXml = workspace + 'HostedMSNew.sddraft' of the main code. Can you also help me provide an insight on the map service being overwritten. If we have already created the Map using the original feature service, and then overwrite the existing feature service, will the previous maps work with the same shared url. Hope I am clear in my requirement. Lots of Regards, Kaushal Shah.
... View more
04-22-2013
05:20 AM
|
0
|
0
|
1865
|
POST
|
Hi, I have manually created/published the ArcGIS online feature service from arcmap as a one time activity. The data in the mxd will keep on changing and I have updated the data in the mxd. Since the data is changing, each time I will have to update the already published feature service. Manually we can publishing the service and select overwrite existing service. The same I want to automatize through python script. As the script for creating new feature service and also sharing the feature service was provided in the thread, can you please urgently help me by providing the python script for updating the data of the existing feature service. We do not have to change service definition of the already published feature service. Urgent help would be appreciated. Thanks and regards, Kaushal Shah.
... View more
04-11-2013
06:36 AM
|
0
|
0
|
1865
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|