Closed jessnoo closed 7 years ago
Example --
the attached mapping file was created with layers in a map and all the tools executed successfully when the map existed. After i deleted the map item and tried to run the replace tool, even though the data sources still exist in the same locations - it fails
Here's a screenshot of the previous successful run...
it's possible this is related to #85
In addition, is there a need to be able to script this workflow outside of Pro to run it daily/weekly, etc.? If so you would need to be able to run outside the context of a 'Current' project.
@chris-fox Yes - needs to run outside of ArcGIS Pro.
Improved handling of layer source properties to ensure the layer path is usable between Pro sessions.
Starting with Pro 1.3, my understanding for Enterprise geodatabases is that the layer.dataSource property will always return a string like "CIMWKSP=<CIMWorkspaceConnection ...". I cannot find the property like 'Database Connections\
Closed #63 but need to address issues in previous comments here and emails re: CIMWKSP.
Will need further work if CIMWKSP= dataSource values are returned for SQL databases. If so, will need some help to complete a partial solution to that issue - which should be a new git issue.
Validated with fgdb > egdb and fgdb > feature service. Needs more testing, but with Sprint one, basic sanity is passing.
Test Cases:
Potential gotcha is the licensing of the python process and if Organizational resources are being used --- in the case where the target is a hosted feature service that is NOT public, then the way the python process is started needs to be considered so that it has the proper credentials to access the service, etc. Recommend that this would be addressed in the documentation somehow.
It seems that when a new mapping file is created using layers in a map item -- if that map item is changed or deleted, the mapping file no longer works.
What dependencies make sense for the mapping files?