Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

Unable to Create Features with Joined table and Defintion Query

$
0
0
I'm currently having trouble with being able to Create New Features while I have a definition query on a joined table.

Here is my current set up:

I am drawing new Polygons in FeatureClassA. Each polygon is given a RecordID which has a default value of Null.

I have a SQL TableB. Each row of the table has the existing RecordID and its corresponding State and County.


So RecordIDs are added to Table B constantly with new data by a separate group and I create new Polygons on FeatureClassA to go along with the data.

My problem is that when I am working in a certain county, and only want to see the polygons in that County, I am unable to create a query based on my Right Joined table (Table B) that does not make my Create Features Template disappear.

What should work is TableB.CountyName = 'Washington' OR TableB.CountyName IS NULL

However because of the Join it does not allow me to create polygons with this Definition query set even though the RecordID's default value is Null which is what links the two together. Because the RecordID defaults to Null, logically the CountyName shoudl as well. I have even added a row to my TableB with all Null values in hopes that it would recognize it. I have even tried adding "OR FeatureClassA.RecordID IS NULL" but that does not work even though logically it covers both what I want to see and the default values necessary to create a new polygon. I have also tried just TableB.CountyName = 'Washington' OR FeatureClassA.RecordID IS NULL . None of the combos seem to work even though it seems to covers the criteria for creating new polygons.

What is also confusing is that I can still create Polygons in a very specific way. With no Definition Query set, I can begin creating Polygons like normal. While I have my template and Construction Tool selected as if I'm about to Create a new polygon, If I then go add the above definition query, it will cause my template to disappear, however my selected Construction tool is still turned on and I am still able to create a polygon which shows up just fine. However once I select any other tool, I am unable to create another polygon because the Template has already disappeared. What this tells me is that my definition query must be being met correctly as I am able to create and see new polygons, however Arc is having some issue with my Defintion Query being on a joined table and is removing my Template seemingly erroneously.

If anyone has any insight into this sort of behavior please let me know. I do not know if it is an issue with my Definition Query being incorrect but I do not believe so. Is it possibly just a known issue that you cannot create a Definition Query on joined tables and still create new polygons?

Worst case I will have to add a field to my FeatureClassA and run a Field Calculation constantly to bring in the linked County and State but that is not ideal. The goal is to create TableB with a view so that it is always constant and up to date, relieving any repetitive updating of tables and Field Calculations.


Thanks in advance. Hopefully this isn't too confusing. Let me know if I need to clarify anything or provide step by step screen shots.

Viewing all articles
Browse latest Browse all 2328

Trending Articles