|
POST
|
ArcGIS Pro Visualize temporal data using the time slider—ArcGIS Pro | ArcGIS Desktop Web TimeSlider | ArcGIS API for JavaScript 4.12 Time Stuff Best practices for storing temporal data—Help | ArcGIS Desktop
... View more
09-19-2019
09:39 AM
|
0
|
0
|
680
|
|
POST
|
Thanks for pointing that out, Jill. Does the bug include the issue with doing it through the Python API? Or any thoughts on why the code won't work with valid SDE and AGS files?
... View more
09-19-2019
09:37 AM
|
0
|
1
|
3814
|
|
POST
|
import arcpy
fields = arcpy.ListFields(<your_feature_class_or_table>)
fieldnames = [field.name for field in fields]
lazyman_string = "!" + "+!".join(fieldnames) + "!"
... View more
09-17-2019
02:28 PM
|
1
|
0
|
6884
|
|
POST
|
Folks, I was reminded of this thread when stumbling across a similar one - here. Turns out that while I would've preferred to be able to update references from one SDE connection file (with embedded credentials) to another and do so programmatically, simply running an update on [user] and [password] was the quickest. conProp = layer.connectionProperties
#depending on what all you're updating, you may have additional
#keys you need to address
#Examples: https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm
conProp['connection_info']['user'] = newuser
conProp['connection_info']['password'] = newpassword
layer.updateConnectionProperties(layer.connectionProperties, conProp)
... View more
09-17-2019
01:21 PM
|
1
|
10
|
6258
|
|
POST
|
Hey Clint, thanks for posting. I had virtually the same issue and started this thread a while back. In the end, I settled for your approach as well. That's so ESRI though! Instead of letting you replace one reference to an SDE file with a reference to another SDE file, they tell you to hardcode a password into the script. I guess you could just prompt for a password during execution. Somewhere I also have a snipped for reading in a password without showing it. Could be that it only works with arcgis module though. - Thanks again.
... View more
09-17-2019
01:14 PM
|
1
|
1
|
2721
|
|
POST
|
Background I'm in the process of moving to new SQL Servers and migrating a bunch of SDE databases. So I'm having to update lots of SDE references for map services, FME workbenches, projects. I'm noticing some confusing behavior when trying to register datastores (SQL Server databases) with a Federated ArcGIS Server (10.6). Wondering if it has to do with the way Portal/Enterprise handles Integrated Windows Authentication (IWA). Steps taken Tried running ArcGIS Server Manager on my local machine - https://webadaptor.domain.com:6443/arcgis/manager - and registering a new Managed Database by importing an existing .sde file that works everywhere else. As soon as I click 'Import', I'm bounced back to the login screen where no set of credentials will log me back in. Refreshing the page in the browser shows me as logged in. If I try https://gisserver.domain.com:6443/arcgis/manager, I get the following notification: When I tried the same on the actual ArcGIS Server machine, strangely, I was able to register one (1) new datastore in this manner. As soon as I tried to register another, I got bounced back to the login screen as above. When I try it in ArcCatalog - make an admin server connection to the federated server, then go to ArcGIS Server Properties - I can register new datastore without any issues by importing my .sde files. So for now, this is the only way to make this work. I imagine it can be done through Pro as well. I've also tried it using arcpy, but when I try the code below: import arcpy
serverConn = <path_to_my_current_DOT_AGS_file>
sdeConn = <path_to_my_DOT_sde_file>
#AddDataStoreItem (connection_file, datastore_type, connection_name, server_path, {client_path}, {hostname})
arcpy.AddDataStoreItem(serverConn, "DATABASE", "what_i_want_my_connection_to_be-called", sdeConn) all I get is this error: RuntimeError: Cannot open AGS server connection. QUESTION: Is any of this expected behavior? Is IWA not working right? Why do I have to have privileges or am able to do it through the application but not in the browser?
... View more
09-17-2019
10:45 AM
|
0
|
3
|
4198
|
|
POST
|
This post is related to an earlier question. I'm spawning a new thread since this is a more specific question. When you're publishing a map service to ArcGIS Enterprise from ArcGIS Pro, you get to choose what server to publish to, e.g. your federated ArcGIS Server or a Hosting Server. You also get to select whether to "Reference Registered Data" or "Copy all data". There are no similar preferences or parameters when using (documentation😞 arcpy.UploadServiceDefinition_server(inSdFile, inServer,
inServiceName,inCluster, inFolderType, inFolder, inStartup,
inOverride, inMyContents, inPublic, inOrganization, inGroups) You just provide a server URL via inServer. There is also the attribute sharing_draft = m.getWebLayerSharingDraft( ... )
sharing_draft.federatedServerUrl = when creating your sddraft file. I've run into a conundrum where the published service shows up in my federated server REST endpoint but the underlying SDE data that the map in PRO was referencing is not referenced by the map service, instead a GDB shows up at: arcgisserver\directories\arcgissystem\arcgisinput\mymap.MapServer\extracted\p20 To confirm, if I wipe out the GDB (have to stop Server), sure enough, the associated Portal item comes up blank. I haven't run into this before. All my other scripted publishing has worked like a charm. Since there is no "Reference Registered Data" option in arcpy, is this possibly default behavior when a specific datastore is not registered in ArcGIS Server Manager?
... View more
08-26-2019
03:39 PM
|
0
|
1
|
1207
|
|
POST
|
Well, thanks for confirming. The link didn't work for me, I think because it's your "myesri". But that's ok. At least, I can focus on finding a usable workaround.
... View more
08-21-2019
08:54 AM
|
1
|
0
|
5067
|
|
POST
|
Glad to hear I'm not the only one. Thought I might be doing something wrong. Same behavior. I wanted to publish to a folder besides root and tried. inSdFile = sd_output_filename
inServer = myserver
inFolderType = 'EXISTING'
inFolder = 'Test'
arcpy.UploadServiceDefinition_server(inSdFile, inServer, inFolderType, inFolder) Well that fails miserably... ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of default.
Failed to execute (UploadServiceDefinition).
Leaving out all the parameters except for sdfile and server, works fine. So connection is working. Similarly, trying to create a new folder bombs with the same error. inSdFile = sd_output_filename
inServer = myserver
inFolderType = 'NEW'
inFolder = 'Test2'
This is from arcpy.UploadServiceDefinition_server.__doc__ in_folder_type {String}: The folder type used to determine the source for the folder. The default is to get a folder from the service definition. You can also choose to get a list of folders already existing on the specified online server, or you can specify a new folder to be created once you share this web layer. * NEW-Creates a new folder. * EXISTING-Specifies a folder that exists on the server. * FROM_SERVICE_DEFINITION-The folder already specified in the service definition. This is the default. in_folder {String}: Use this option to specify the folder for the web layer. The default is to use the folder specified in the service definition. If you chose New folder type, use this parameter to enter a new folder name. If you chose Existing folder type, you can choose from the existing folders on the server. There are some references to Error 00800, but nothing that helped with this: Description The keyword used is not a member of the list of acceptable keywords. Solution Change the keyword to a member of the list provided. For more information on what each keyword signifies, review the tool's help. I'm thinking this somehow is a bug. Interestingly the ESRI online documentation even's got the name of the method wrong, which mirrors the Error message above. Maybe the used the wrong keywords in there somewhere. Upload Service Definition—Help | ArcGIS Desktop UploadServiceDefinition(in_sd_file, in_server, {in_service_name}, {in_cluster},
{in_folder_type}, {in_folder}, {in_startupType}, {in_override}, {in_my_contents},
{in_public}, {in_organization}, {in_groups})
... View more
08-21-2019
08:40 AM
|
2
|
2
|
5067
|
|
POST
|
Thanks for the clarifications. I had read the BLOB bit somewhere but I guess my own screenshot should've alerted me that the files go in the directory and only meta data goes in DB. Yes, exactly. I was wondering how 100K's or 1M's of items would perform. Thinking now about all the necessary directory under the Content folder, that makes me even more curious. Say you have a 100K features, and each one has 10-100 documents... In the past, I've been told that if you want to link from spatial feature to related documents via href in the attributes, the associated files would have to live on the ArcGIS server ... so wondering if linking to Portal items would work better. Anyway, it's not something I'm about to implement. more brainstorming.
... View more
08-16-2019
01:53 PM
|
0
|
2
|
1388
|
|
POST
|
I've created an ArcGIS Enterprise Site through Portal. This generates (at minimum) an item for your site (Site Application) and an item for your the Sites App Launcher (Web Mapping Application) in Portal. I see some new entries under content on the Portal server, too. But is there a way to look at any files, e.g. configuration, JS, css? If I create an app through Web AppBuilder, I typically get the app folder and am able to tweak the code. Where is all the code behind the Sites?
... View more
08-14-2019
04:11 PM
|
0
|
0
|
679
|
|
POST
|
Okay, finally got it working. As Tanu suggested, you can't do this without specifying a Layout Templates folder. The more I think about that makes sense. You want the widget calling the print service to have a place to search for which templates are available. Having left the field blank, I was defaulting to the built-in ESRI templates. What I was missing after setting up the folder was to uncheck the "Copy All Data". After unchecking and resharing, it all worked. All in all, the process is not as convoluted as the documentation suggests. After doing it a few times, it almost starts making sense. The documentation could be better.
... View more
08-14-2019
01:50 PM
|
1
|
1
|
8959
|
|
POST
|
Tanu, thanks again! I think we're getting somewhere.. clearly the custom template is not being added. 1) No. Custom template is not an item in the choice list. 2) No. Results set does not include custom template. 3) I'm running simple JSAPI app outside or WAB or Portal Must still be doing something wrong during publishing.
... View more
08-14-2019
09:21 AM
|
0
|
2
|
8959
|
|
POST
|
Okay, I really thought the registering a folder with Server wasn't necessary of the template was to be stored in Portal. That was my interpretation of the documentation referenced above. I've gone ahead and created/registered a server folder, and then identified that folder as the layout template folder during publishing. But all to no avail. I'm only seeing the default template when the Print widget opens. Is it something I need to configure differently when I instantiate the widget in my JS code? Will take another look at the API documentation.
... View more
08-14-2019
08:31 AM
|
0
|
4
|
8959
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2025 07:32 AM | |
| 1 | 02-09-2024 05:18 PM | |
| 1 | 02-04-2025 09:27 AM | |
| 1 | 03-22-2019 10:55 AM | |
| 1 | 03-05-2020 08:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|