move project (aprx)

2721
15
09-11-2017 11:21 AM
JeffMeyer4
New Contributor II

Hi, I have a group of users all accessing data from geodatabases on a shared network drive.  I've noticed that if someone copies or moves an aprx file to another folder on the network, all data links are broken.  it's like ArcGIS pro is expecting relative paths by default, and resets all data paths to the new directory.  is it possible to have an ArcGIS pro project keep the source data paths the same when the project is moved?   the only workaround is to "save as" to the new directory, but often users want to simply move projects using windows explorer.  thanks

Reply
0 Kudos
15 Replies
DanPatterson_Retired
MVP Esteemed Contributor

The toggle for 'relative pathnames' is gone.

Your work around is sound is you just want to move the aprx... otherwise for larger scale moves... bring the data with you, IF it is locally stored

Reply
0 Kudos
JeffMeyer4
New Contributor II

thank you Dan.  For clarification, my end-users are used to simply moving MXD files around and placing them anywhere on the network. our central geodatabases are always in the same place on a network share (i.e. W:\GIS_Databases\database1.gdb). In ArcMap the data sources would remain intact when the MXD is moved.  Now they are doing the same thing with APRX files and wondering why the data sources are broken.

From a long term data management point of view, this could be a problem for me if directories with many APRX files need to be moved.  The central geodatabases will never move, only APRX files.

Reply
0 Kudos
JeffMeyer4
New Contributor II

i'm having some trouble recreating the issue consistently ..  i'm a bit baffled. there must be something i'm missing.

Reply
0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

Why don't you write out a couple of examples... one where moving the aprx works, and one where it didn't.  Maybe examining their paths and the data paths might make things clearer.

Reply
0 Kudos
MarcoBoeringa
MVP Regular Contributor

Jeff,

As you experienced, ArcGIS Pro by default saves with relative paths.

However, this can only be done for those datasources that reside on the same drive as the *.aprx document. All other datasources will be saved with absolute paths.

E.g. take a look at these three situations:

- If the aprx resides on W:\, and the datasources (e.g. file geodatabases/shapefiles) as well, all the paths in the aprx will be relative.

- If the aprx resides on W:\, and some datasources reside on W😕 as well, but other datasources of the same project on e.g. D:\, then the datasources to W😕 will be relative, but the datasources pointing to D😕 will be absolute.

- If the aprx resides on D😕 but all datasources on W:\, all paths will be absolute.

I think your current confusion arises because you have a mixture of the above situations, with some ArcGIS Pro project documents having mixtures of relative and absolute paths, others only relative paths, and others only absolute paths.

JeffreyMeyer
New Contributor II

thank you Marco - what you said makes sense.  I believe your analysis holds true if you have created a fresh new ArcGIS Pro project.

I have encountered some inconsistency with imported MXDs, and file paths breaking after the APRX file is copied and pasted using windows explorer.  Perhaps this is to be expected.

I appreciate your thorough analysis.

Jeff

JohnPlunkett
Esri Contributor

Hi there

I can reproduce this

Create a new Project

Create a new FGDB and Feature class

Create a new map

Add the new Feature class and create some data > Save edits

Save the Map and project

Close ArcGIS Pro

browse to the location of the APRX

Copy that APRX to a new location > (I just moved it up one directory folder)

Open the copied APRX and you get the error

Apr 17, 2018 2:43 PM - YouTube 

HavenbedrijfAmsterdam
New Contributor

Hi John,

Although the problem was already clear to me the video demonstrates it nicely. We are slowly forced to move to Pro in our organisation and this is one of the problems we run into.

A big part of my/our job is keeping our filestorage tidy and one way to do that is moving data and mapdocuments around. While true that you can open and save a pro document under a different name as Dan suggested this is far from ideal, his other option of copying/moving the data is just asking for trouble.

Are you aware of any other workaround like setting absolute pathnames via arcpy like it was possible in arcmap (like this: https://support.esri.com/en/technical-article/000011678) or perhaps if it will be implemented in the future?

Reply
0 Kudos
MarcoBoeringa
MVP Regular Contributor

One thing i do not fully understand is that in a situation where you regularily move projects and data, you probably want relative paths. It doesn't make much sense to move a project to a totally different folder structure in terms of finding it back. Nonetheless, if you do desire to always have absolute paths, then reffering back to my previous post, your best bet for now is to reserve a totally separate drive to store all of your project documents, and to never save data there. This way you will force Pro to always use absolute paths. E.g. always store  all projects on E: and data on F: drive.