1

I have the following code:

When I run it:

conType = arcpy.mapping.ListLayers(imxd, "Construction_pt", df)[0]
print conType.dataSource
prints... "Database Connections\Edit - Editor.sde\Edit.SDE.Construction_pt"
and rest of program runs correctly

When another user runs it:

print conType.dataSource
prints... "\Edit.SDE.Construction_pt"
program crashes because cannot find path

My question is why is it only displaying the full path for me and not other users?

ArcGIS 10, Windows 7

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 25, 2012 at 14:46
2
  • 1
    Hard to tell like this. Maybe it is a arcgis.workspace problem. I ran into various problems not setting the ArcInfoWorkspace(). Even though this is under ArcGis 9x using the gp-object. Commented Oct 25, 2012 at 15:37
  • Have you tried using the CatalogPath method of the Describe object instead? Commented Jan 23, 2013 at 19:08

1 Answer 1

2

I finally figured out how to fix this:

In ArcCatalog, Database Connections, Select the SDE, and right click and go to Connection Properties.

Under Connection Details, make sure the transactional version is set to that of the user (ex: "SDE.tom" and not the "SDE.default").

After changing this it now works correctly for the user who was having difficulty before.

Glorfindel
1,0962 gold badges10 silver badges15 bronze badges
answered Jan 23, 2013 at 18:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.