|
POST
|
Hello, Could you please contact Esri Support? Someone needs to take a look at this... it should work. thanks.
... View more
06-23-2016
09:10 AM
|
0
|
1
|
4018
|
|
POST
|
Jason, did you open an incident with Esri Tech Support for your issue? we need to know why your single layer service (with no joins, not views...) not working for you? thanks
... View more
06-14-2016
01:50 PM
|
0
|
0
|
3919
|
|
POST
|
As of now, that is expected behavior - query operation always returns raw (unformatted) data while identify returns formatted results. Query results get used in many different ways -- data storing, drawing, sorting -- with formatted results, those usages get limited... in addition, it gives the client app to format data/time according to the client locale etc.
... View more
06-14-2016
09:58 AM
|
1
|
0
|
1312
|
|
POST
|
FYI: for those who want to use GeLayouttTemplatesInfo tool but haven't been able to move to 10.4, you can download the script from https://github.com/arcpy/sample-gp-tools/tree/master/GetLayoutTemplatesInfo once you copy it on your local machine, follow the steps from Tutorial: Publishing additional services for printing—Documentation | ArcGIS for Server --- only thing is that instead of using the GetLayoutTemplatesInfo from the system toolset, use the one you downloaded.
... View more
06-13-2016
09:19 AM
|
3
|
1
|
4018
|
|
POST
|
Thanks Thomas... i'm glad that in the end it worked for you though as you say it is not straight forward. My bad about option#1... i realized later that that wouldn't help in this case. for future reference, here is a boilerplate json to create a map service from the Admin site. update values for 'serviceName' and 'filePath' and you should be fine. { "serviceName": "<mapservice_name>", "type": "MapServer", "description": "", "capabilities": "Map,Query,Data", "provider": "ArcObjects", "clusterName": "default", "minInstancesPerNode": 1, "maxInstancesPerNode": 1, "instancesPerContainer": 1, "maxWaitTime": 60, "maxStartupTime": 300, "maxIdleTime": 180, "maxUsageTime": 600, "loadBalancing": "ROUND_ROBIN", "isolationLevel": "HIGH", "configuredState": "STARTED", "recycleInterval": 24, "recycleStartTime": "00:00", "keepAliveInterval": -1, "private": false, "isDefault": false, "maxUploadFileSize": 0, "allowedUploadFileTypes": "", "properties": { "useLocalCacheDir": "true", "outputDir": "C:\\arcgisserver\\directories\\arcgisoutput", "cacheDir": "C:\\arcgisserver\\directories\\arcgiscache", "filePath": "C:\\temp\\mymap.msd", "maxRecordCount": "1000", "supportedImageReturnTypes": "MIME+URL", "clientCachingAllowed": "true", "isCached": "false", "virtualOutputDir": "/rest/directories/arcgisoutput", "maxExportTilesCount": "100000", "ignoreCache": "false", "exportTilesAllowed": "false", "cacheOnDemand": "false" }, "extensions": [], "frameworkProperties": {}, "datasets": [] }
... View more
06-13-2016
09:11 AM
|
7
|
2
|
12066
|
|
POST
|
Thomas Puthusserry there are two options that i can think of: Option #1: Try what is mentioned as the alternate solution in the bug's description. Christian Wells put the link to the bug above. Basically try to publish from a previous version of ArcMap (10.3 or 10.3.1)... It is not always guaranteed to work though. Option #2: You can also try a manual process in case you feel adventurous Disclaimer: you need to have admin privileges on ArcGIS Server. Overall steps: Create an msd Use ArcGIS Server Admin site to create a map service using the msd Details: To create an msd: you can use arcpy.mapping.ConvertToMSD() function, OR in ArcMap, open 'Customize' window from 'Customize | Customize Mode... menu item' switch to 'Commands' tab select 'Map Service Publishing' from 'Categories' list box. from 'Commands' list box on the right, drag and drop 'Save Map Service Definition...' on to an existing toolbar Close use the newly added 'Save Map Service Definition' tool to create a msd and save it some place where ArcGIS Server Account has access to. Publish a map service from ArcGIS Server Admin site: Browse to http://yourServerMachine:6080/arcgis/admin/services/createService Read the API Reference help on 'createService' operation. There should be a json that you can use as a boilerplate. Make necessary changes in the boilerplate json. Most important ones are: name of the service, path to the msd etc. paste the json in the only textbox available on the 'createService' operation page click on 'Create' once that is done successfully, and if the service is not started yet, you can use Admin Site or Manager to start the newly created service.
... View more
06-10-2016
03:33 PM
|
4
|
5
|
3919
|
|
POST
|
hmm... so you are saying if you execute it from the REST service directory, it works fine. But the same service when used with the Printing widget, it times out!! how long does it take for it to finish when you execute it from the REST service directory? are you templates empty or they contain some layers? if it is all about timing out, I'm sorry I don't think i have much expertise in that area to help could you please contact Esri Support and have someone take a look at that?
... View more
06-06-2016
11:28 AM
|
0
|
0
|
7112
|
|
POST
|
Does it copy all the templates in the folder? I didn't know that. seems like you are publishing from your machine to a separate server machine, right? like any other gp or map service, if you don't have the folder registered on the server, you templates will be copied to the server in a managed folder inside \arcgiserver folder. for some reasons, if you don't want it to be auto-copied in the managed folder, you would need to register the folder from your local machine in ArcGIS Manager to point to a separate folder on the server. once you do that and publish a print service off ExportWebMap tool from your local machine, you should be just fine. please give it a try and let me know how it works.
... View more
06-06-2016
11:06 AM
|
0
|
0
|
4018
|
|
POST
|
Jon, My apologies, I'm afraid I'm not quite clear on your first issue... to publish a printing service with custom templates, steps are: - open the Export Web Map tool in Desktop, - choose the folder with your custom templates - execute the tool - publish the result the service will use templates from the folder you chose in step#2. is this not working for you? Or set up an equivalent path on the desktop machine so we can get a GP result that can be published. sorry, i can't follow this.. The script wrapper is needed anyway as a workaround to a bug where the export image filename is not returned. I've raised an issue with Esri UK support - CAS-17137-N6H0T4: Arcpy.ExportWebMap_server returns incorrect output file name. do you happen to have a NIM or BUG id for the above issue? can you pls share that with me. i'm not currently aware of any bug with output file name. Thanks.
... View more
06-03-2016
09:29 AM
|
1
|
2
|
4018
|
|
POST
|
Jon, we don't recommend using arcpy.ExportWebMap_server() in scripting environment to create your own arcpy based printing service... most of the cases you should be fine by creating your printing service from Export Web Map GP tool. In fact, these two approaches would be functionally equivalent. embedding it inside a script is not a good idea. for some advanced use cases, when you need to create an arcpy based printing service, you should use arcpy.mapping.ConvertWebMapToMapDocument() function... which gives you more control over the output.
... View more
06-02-2016
05:21 PM
|
1
|
4
|
4018
|
|
POST
|
My bad, I misunderstood. So, if I understand it correctly: you have published your own custom printing service. the service has two tasks in it (1) Export Web Map and (2) Get Layout Template Infos the layouts (or mxd) used in that printing service have custom text elements... I am pretty sure you have provided 'Name' for those custom text element in the mxd... otherwise they'd not have shown up when you used the template with the Out Of The Box Printing Service. now, the problem is that when you use your custom printing service with WAB Print Widget, those custom text elements are not showing up, right? if those are correct, i have few questions: Is your printing service public? if so, can you pls share the url for me to take a look at the service resource. if it is not public, can you pls share a screen-shot for the service's REST resource? if you go to the 'Get Layout Templates Info' task's REST resource end point and execute it, does it return correct response i.e the name of the templates are correct and the text elements etc.? when you ran Get Layout Template Info gp-script-tool in desktop, did you make sure that it pointed to the "same folder" that was specified in the Export Web Map GP tool? finally, when you use or setting up the WAB Print widget, can you pls use Firebug or any other web browser developer tool to monitor what are the requests being generated by the widget and are they failing or not getting expected result?
... View more
06-02-2016
05:14 PM
|
1
|
5
|
7112
|
|
POST
|
Thanks Michael Miller. I'm glad i was able to help. Helen Whiteley, it is step# 8 in "Preparing and publishing the service" section in that help that describe how to add that additional task to the printing service in 10.4. WAB printing widget (though i'm not sure which version) looks for that GetLayoutTemplateInfo task in the printing service; if it finds it, it uses metadata from each layout and show text boxes to allow you set values for your custom text elements. This is something new in 10.4. Hope this helps.
... View more
06-01-2016
12:35 PM
|
1
|
8
|
7112
|
|
POST
|
does any of your tables, that is participating in the query, have a field of 'geometry' type? or it is just x & y coordinates are stored in two separate fields?
... View more
04-11-2016
05:42 PM
|
0
|
0
|
3517
|
|
POST
|
Sean, Yes, you are right... the tutorial is using a map and data that similar to Esri topo base map. And the output is a vector output. But it does not matter whether it is a dynamic or cached map service. the logic is identical... (a) you need to have your data locally accessible as FeatureClasses to your print service, (b) the printing service is an arcpy based custom printing service, (c) the arcpy code replaces map service layer with FeatureLayers before exporting to any vector format. hope this helps clear your confusion. otherwise, pls let me know. thanks.
... View more
04-11-2016
05:37 PM
|
0
|
1
|
1494
|
|
POST
|
if your workflow requires you to come data into a feature class, then it is okay. otherwise, you can directly publish a map with query layers as a map service and skip the export.
... View more
04-11-2016
08:59 AM
|
0
|
3
|
3517
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 04-16-2026 01:37 PM | |
| 1 | 03-06-2026 04:33 PM | |
| 1 | 03-05-2026 03:22 PM | |
| 1 | 03-05-2026 03:25 PM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|