Select to view content in your preferred language

Create Relationship

341
0
12-13-2023 06:56 AM
kapalczynski
Occasional Contributor III

I am puzzled here...  I am using a script to create some Relationship Classes ... This works on my TEST environment but for some reason not in my UAT environment... 

  • The Attribute indexes on GLOBALID are Unique and Ascending
  • There is no index for RELGLOBALID which resides in the REL_Line_Logsheet Feature Class.

Anyone have any ideas?

 

    arcpy.env.workspace = "Database Connections\\GIS_DATA@GISUAT.sde"
    arcpy.CreateRelationshipClass_management("GIS_DATA.SDE_PERMIT_L", "GIS_DATA.SDE_LOGSHEET",
                                         "GIS_DATA.REL_Line_Logsheet", "SIMPLE",
                                         "Line to Logsheet", "Logsheet to Line",
                                         "NONE", "ONE_TO_MANY", "NONE", "GLOBALID", "RELGLOBALID")

 

 

 Error

 

Traceback (most recent call last):
  File "D:\_Stage\GIS_Release\2023\12_Dec11_RelationshipBuild_UAT_LupsPermits\UAT\BuildRelationships_UAT.py", line 125, in <module>
    createRelationships()
  File "D:\_Stage\GIS_Release\2023\12_Dec11_RelationshipBuild_UAT_LupsPermits\UAT\BuildRelationships_UAT.py", line 89, in createRelationships
    "NONE", "ONE_TO_MANY", "NONE", "GLOBALID", "RELGLOBALID")
  File "D:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\management.py", line 16838, in CreateRelationshipClass
    raise e
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
WARNING 001003: Datum conflict between input and output.
ERROR 000800: The value is not a member of GLOBALID.
Failed to execute (CreateRelationshipClass).

 

 

 

0 Kudos
0 Replies