I am going through and adding fields to featureclasses when I came across this error. We have 2 licenses (Standard/Basic) and on the basic level I get the error and on the Standard level it runs just fine. I am wondering if there is any way around this without upgrading or having to switch licenses just to run my script. I am also worried that by running this with the standard license that I will not be able to ever run it with the basic. I understand the obvious answer is to upgrade but I thought I would see what some other options are.
ExecuteError: ERROR 999999: Error executing function.
The application is not licensed to create or modify schema for this type of data
Failed to execute (AddField).
Thanks!
Chris
Solved! Go to Solution.
After reading through all the post, I am wondering if you may have attachments or a relationship class defined on the featureclass. This will require a standard license to change the schema (like,add a field).
Is there a way to tell if there is a relationship class attached to it?
Yes, as describe here: Re: Detect Relationship in Feature Class or Table
This was the issue. We use annotation layers and sure enough there is a relationshipclass on the file it errored on. Thank you, and everyone else for the great help on this.
Hi Chris,
As far as I know, you can not modify FGDB with Basic license. Here are the two workarounds.
1) Upgrade to at least standard license (You don't want it).
2) Export the feature classes in FGDB to PGDB/Shapefiles using the Standard license that you have. Then, you can modify the PGDB/Shapefiles.
Thanks,
Jay
You can definitely add a field to a FGDB with basic license. I do it all the time.
I wonder if the error is something else altogether? Can you post your script?