POST
|
I have a layer in ArcMap. I am trying to reset its data source using arcpy. Here is its old data source, which is a feature class GEOMATICS.Photo_pt within a feature dataset GEOMATICS.Multimedia. lyr.dataSource = “C:\Users\aguiaa\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog\sdeh1p_GGDM_aguiaa_DC.sde\GEOMATICS.Multimedia\GEOMATICS.Photo_pt” I want to change to lyr.dataSource to be “W:\shared_resources\Applications\Esri\Desktop10.3_Pet_Houston\ArcCatalog\phousde_SSO.sde\GGDM.Multimedia\GGDM.Photo_pt”. To achieve this, I make this function call: lyr.replaceDataSource(“W:\shared_resources\Applications\Esri\Desktop10.3_Pet_Houston\ArcCatalog\phousde_SSO.sde”, 'SDE_WORKSPACE', “GGDM.Photo_pt”, False), but it gives: lyr.dataSource = “W:\shared_resources\Applications\Esri\Desktop10.3_Pet_Houston\ArcCatalog\phousde_SSO.sde\GEOMATICS.Multimedia\GEOMATICS.Photo_pt” As someone told me the feature dataset is part of the workspace, so I tried this: lyr.replaceDataSource(“W:\shared_resources\Applications\Esri\Desktop10.3_Pet_Houston\ArcCatalog\phousde_SSO.sde\GGDM.Multimedia”, 'SDE_WORKSPACE', “GGDM.Photo_pt”, False), but it gives: lyr.dataSource = “W:\shared_resources\Applications\Esri\Desktop10.3_Pet_Houston\ArcCatalog\phousde_SSO.sde\GGDM.Multimedia\GEOMATICS.Multimedia\GGDM.Photo_pt” How can I get rid of “GEOMATICS.Multimedia” in the last line? My intention is to replace GEOMATICS with GGDM in the data source. I am using Advanced ArcSDE 10.3.1 and ArcDesktop 10.3.1. Allen
... View more
03-09-2017
07:42 PM
|
0
|
0
|
870
|
POST
|
The arcpy layer function layer.replaceDataSource(targetworkspace, "SDE_WORKSPACE",newDataset, False) works perfect when the newDataset is a SDE feature class. But it does not work with feature dataset\featureclass. For example, if I want to reset a layer's data source from sde1.sde\OWNER1.featuredataset\OWNER1.featureclass to sde2.sde\OWNER2.featuredataset\OWNER2.featureclass, the following function call does not work: layer.replaceDataSource(sde2.sde, "SDE_WORKSPACE","OWNER2.featuredataset\OWNER2.featureclass, False) . It changes the layer's target sde workspace to sde2.sde, but does not change the dataset owner to be OWNER2. The layer.dataSource is "sde2.sde\OWNER1.featuredataset\OWNER1.featureclass", rather than "sde2.sde\OWNER2.featuredataset\OWNER2.featureclass" which is what I expect to be. Any idea how to do this correctly?
... View more
02-24-2017
12:03 PM
|
0
|
0
|
832
|
POST
|
The above layer.replaceDataSource(targetworkspace, "SDE_WORKSPACE",newDataset, False) works perfect when the newDataset is a SDE feature class. But it does not work with feature dataset\featureclass. For example, if I want to reset data source from sde1.sde\OWNER1.featuredataset\OWNER1.featureclass to sde2.sde\OWNER2.featuredataset\OWNER2.featureclass, the function does not work: layer.replaceDataSource(sde2.sde, "SDE_WORKSPACE","OWNER2.featuredataset\OWNER2.featureclass, False) . It changes the target sde worpsace to sde2.sde, but does not change the dataset owner to be OWNER2. Any idea how can I reset featuredataset\featureclass to be in different workspace and with a different owner.
... View more
02-24-2017
11:49 AM
|
0
|
0
|
196
|
POST
|
Jake and Rickey, thanks for the hint. Our AGOL is integrated with AD through OKTA (SAML). Not sure if the sample code will work, but will give it a try. Here is the simple testing code that tries to access a map shared to our organization. ... <script> require([ "esri/views/MapView", "esri/WebMap", "esri/config", "dojo/domReady!" ], function(MapView, WebMap, esriConfig, domReady){ esriConfig.portalUrl = "https://npu-portal.maps.arcgis.com" var webmap = new WebMap({ portalItem: { id: "0d5f519dea1642429d3b358327f7e920" } }); var view = new MapView({ map: webmap, container: "viewDiv" }); }); </script> ...
... View more
09-06-2016
11:56 AM
|
0
|
0
|
412
|
POST
|
My company is new to ArcGIS Online (AGOL). We tested using JavaScript API to access or embed an AGOL map shared only within our organization, and found it did not work unless we change the map to share to Public. This does not work for us as we won't want people outside our organization to discover/access the map. Is there a workaround this?
... View more
09-06-2016
10:38 AM
|
0
|
3
|
1333
|
POST
|
Ok, mystery solved. I believe it is a bug in the installation. At the beginning of 1 st install, I exported the ArcGIS server account username/password to a config file to the network location. In subsequent reinstalls, I used this file to proceed the installation and the installation loaded the config-store to where the config file is, i.e., the network location. This does not work with IIS so the manager page did not come up. I reinstalled software with the config file in C:\arcgisserver and the installation is successful. I am able to build a new site quickly.
... View more
08-15-2016
01:36 PM
|
0
|
0
|
790
|
POST
|
I got the same issue. The 1st time I installed ArcGIS server 10.3.0, the build new site page came up, and I assigned the site to be on a network drive. But the site build hanged so I killed it, then unable to get the manager up. So I reinstalled ArcGIS 10.3.0 several times, but never got the manager page up. The service shows the arcgisserver is up and running, but the Task Manager shows arcgiserver service stopped (start it resulted it be stopped). One strange thing is every time I did a reinstall, I got the config-store created on the previous network drive, and I think this might be the cause. But I don't know how to change it back to c:\arcgisserver. The reinstall remembers the 1st install foot print. I have had severalother servers running 10.3.0 and 10.3.1 without any installation issues, but this one got me.
... View more
08-15-2016
11:25 AM
|
0
|
1
|
790
|
POST
|
Richardson, I reinstalled ArcGIS 10.3, and followed those steps below, and was able to start all the services. Thanks a lot for your help. 1. reinstall ArcGIS 10.3, create a new site under E:\arcgisserver, stop AGS server service 2. Copy J:\IT\SystemFiles\ArcGIS\AGSS_SITES\101_QA\directories\arcgiscache (exclude .site) to E:\arcgisserver\directories\arcgiscache 3. COPY our own service folders from J:\IT\SystemFiles\ArcGIS\AGSS_SITES\101_QA\config-store\services to E:\arcgisserver\config-store\services 4. COPY our own service folders from J:\IT\SystemFiles\ArcGIS\AGSS_SITES\101_QA\directories\arcgissystem\arcgisinput to E:\arcgisserver\directories\arcgissystem\arcgisinput 5. COPY our own service folders from J:\IT\SystemFiles\ArcGIS\AGSS_SITES\101_QA\directories\arcgisoutput to E:\arcgisserver\directories\arcgisoutput start AGS server service, and register the SDE data store with the same name as before. 6. start all map services and test
... View more
03-10-2016
08:52 AM
|
2
|
0
|
650
|
POST
|
Richardson, Thanks for the reply. But I can't start the server manager at step 4. It is strange when I start the service at step3 it creates two arcgiserver folder, one on C, and the other on the internal E disk. If I uninstall/reinstall ArcGIS server 10.3.1, create a new site, and copy the original arcgiscache, arcgisjobs, and arcgisoutput to the new site, will this work?
... View more
03-04-2016
07:32 AM
|
0
|
2
|
650
|
POST
|
All permissions look correct. I found the upgrade installed a new C:\arcgisserver\directories\arcgissystem. The original one is on a network drive. So I changed the path under "Site" to C:\arcgisserver\directories\arcgissystem. deleted the lock files under config-store\locks (on network), run services.msc to restart the ArcGIS server service. Now I got "Server machine 'xxx' is currently being configured by another administrative operation. Please try again later". Allen
... View more
03-02-2016
08:56 AM
|
0
|
4
|
650
|
POST
|
I upgraded an existing ArcGIS 10.1 test server to 10.3.1. The installation (upgrade) went through without any issues. I can login the local server manager. But all services (including the system and utility services) appeared to be “stopping …”. I could stop a service (e.g., system or utility services), but was unable to start it. It gave this error: "Failed to start the server machine 'xxxx'. Could not start application server within stipulated time". I had rebooted my machine, checked the file/folder permissions and found no issues. The server meets the system requirements as described in http://server.arcgis.com/en/server/10.3/install/windows/arcgis-for-server-system-requirements.htm. I can not publish a new map service as the System/PublishingTools can not be started. Any advice? Allen Guan
... View more
02-29-2016
07:30 AM
|
0
|
7
|
3797
|
POST
|
We are moving ArcGIS desktop from PCs to blades. An user will login to different blades to run ArcGIS desktop at different times, and the user need to preserve the same user settings (i.e., Catalog settings, such as connection folders, database connections, toolboxes, and GIS web services) across the different blades. We can activate roaming profile for ArcGIS, but I was told there is an easy way - save the user settings in a central network location for each user, and point an environment variable to this location. Can anybody share how to do this? I found a couple of articles and they are all related to changing a machine registry to achieve this - set HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, set AppData to a central network user profile location. Not sure if this is correct way or there is a better way. Allen
... View more
01-20-2016
11:51 AM
|
0
|
0
|
1647
|
POST
|
yes, I upgraded to 10.2.2 using 10.2.2 ArcCatalog, and installed SDE 10.2.2 on RHEL to start the service. Any detail of the differences?
... View more
09-25-2015
08:14 AM
|
0
|
2
|
571
|
POST
|
Successfully upgraded a SDE database from ArcSDE 10.0/Oracle 11.2 (64 bit) to ArcSDE 10.2.2/Oracle 11.2 (64 bit). But unable to start the sde instance which resides on a RHEL 6.2 server. The sdemon gives this error: sdemon -o start -H /na1/software/esri/arcsde/sdeinstances/sdet_102 -p lk5js873j DB_open_instance()::db_connect (OCI8) error: -1 init_DB DB_instance_open_as_dba: -51 DBMS error code: -1 Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde. I don't have such a problem with ArcSDE 10.0/Oracle 11.2 on the same server. The upgraded 10.2.2 database works fine with direct connect and has been used with ArcGIS 10.3 server and Portal for 6 months with no issues. However, we need to start the sde instance to support an application which only works with 3-tier (sde service) connection.
... View more
09-24-2015
01:24 PM
|
0
|
4
|
3408
|
POST
|
Derek, Thanks for the update. I will get a machine with IE11 (our targeted upgrade) and see how it works. Allen
... View more
06-08-2015
09:23 AM
|
1
|
0
|
437
|
Title | Kudos | Posted |
---|---|---|
2 | 03-10-2016 08:52 AM | |
1 | 06-08-2015 09:23 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|