2

I'm trying to create a relationship class with Python using a GlobalID.

When I use Python it gives me the error:

Failed to execute. Parameters are not valid. ERROR 000800: The value is not a member of GLOBALID. Failed to execute (CreateRelationshipClass).

When I try to use the Create Relationship Class tool through the Toolbox, I get the same error. If I select GlobalID as the primary key, it will ONLY let me select a GlobalID as the foreign key. It will not let me select a GUID of my choice.

But when I'm in ArcCatalog and right click the Dataset and go to New > Relationship Class...

It works!

What's wrong here?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Nov 7, 2012 at 13:20

2 Answers 2

5

Well I found out the bug that was logged for this is NIM082537.

You can follow the status of it here: http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDgyNTM3

It might be necessary to copy/paste URL into address bar.

answered Nov 13, 2012 at 13:11
1
0

One workaround that seemed to help in some cases for me was using time.sleep(10) between the creation of GlobalIDs/fields and calling CreateRelationshipClass_management. It only helped some of the time, though.

The best answer I found was using 2to3 to port my code into the arcpy packaged with arcgispro (on python3.4), and it is now successfully producing both one_to_many and many_to_many relationships based on GlobalID and parent GUID reference fields, and the GDB it produces works perfectly in Arcmap. HTH

answered Feb 20, 2017 at 21:37

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.