SDE Checkout is not editable

3056
0
01-02-2012 08:19 PM
PatricTrollope
New Contributor
Hi guys 🙂

I have created a File Geodatabase checkout from SDE, but when I open it using the File Geodatabase API, none of the tables are editable - even though only one of the tables has a geometry field in it.

I have tried "replica access type" full and simple during checkout, with the same results.

If I create the same File Geodatabase via ArcCatalog, the tables are editable when opened with the File Geodatabase API.

Sample code:

            txtOutput.Text += "Opening File GDB...";
            try {
                // Open the geodatabase.
                mygdb = Geodatabase.Open("/path/to/file_gdb.gdb");
                                
                // Open the table.
                mytable = mygdb.OpenTable("\\users");
            } catch (Exception ex) {
                txtOutput.Text += "\r\n\r\n" + ex.Message.ToString();
                return;
            }

            txtOutput.Text += "\r\n";

            if (mytable.IsEditable) {
                txtOutput.Text += "Editable";
            } else {
                txtOutput.Text += "NOT Editable";
            }



Environment info:

C# / VS2010 / .NET 4

Product Name: ArcGIS Desktop 10
Product Version: 10.0.3.3600
ArcGIS Service Pack: 3 (build 10.0.3.3600)

Any advice or information would be much appreciated. Please let me know if I can provide any more information.

Warm regards,
Patric
0 Kudos
0 Replies