NEAREST_FEATURE errors in Attribute Assistant

4381
6
05-22-2014 12:43 PM
Labels (1)
BillTen_Broeck
New Contributor
Hello all.

Per the subject, I'm getting errors when running the NEAREST_FEATURE and the NEAREST_FEATURE_ATTRIBUTES methods.
The exact error message is "Object reference not set to an instance of an object." What I'm trying to do is to pull attributes off the street centerline into a new address point. And what's interesting is there are 3 of us pulling from this same DynamicValue table, and the other 2 machines work properly; it is only mine that has this issue.

So, the exact log entries:

    ------------------------------------------------
      Row Info
        Row Number 11
        TableName: AddressPoint
        FieldName:
        ValueInfo: RoadCenterline|ROADPREDIR,ROADNAME,ROADTYPE|ROADPREDIR,ROADNAME,ROADTYPE|350
        ValueMethod: NEAREST_FEATURE_ATTRIBUTES
        On Create: 1
        On Change: 0

      Checking for Subtype Restriction
      Field is not specified, empty, or set for all.
                  Trying NEAREST_FEATURE_ATTRIBUTES
                  Looking for layer: RoadCenterline
                  RoadCenterline layer Found: RoadCenterline
                  Checking Field Mapping
                  Field Mapping verified
                  Searching for Nearest Feature
                  ERROR: NEAREST_FEATURE_ATTRIBUTES
Object reference not set to an instance of an object.
                  Finished: NEAREST_FEATURE_ATTRIBUTES
    ------------------------------------------------
   
    ------------------------------------------------
      Row Info
        Row Number 13
        TableName: AddressPoint
        FieldName: ROADSEGMENTID
        ValueInfo: RoadCenterline|SEGMENTID|350
        ValueMethod: NEAREST_FEATURE
        On Create: 1
        On Change: 0

      Checking for Subtype Restriction
      Field Name: RoadSegmentID was found at index: 30
                  Trying: NEAREST_FEATURE
                  Searching the layer
                  ERROR: NEAREST_FEATURE: Object reference not set to an instance of an object.
                  Finished: NEAREST_FEATURE
    ------------------------------------------------

Any suggestion on troubleshooting and the like will be greatly appreciated!
0 Kudos
6 Replies
IanBailey
New Contributor III

Have you found a solution to this? I'm having the same issue.

0 Kudos
Alachua_County_Fire_RescueE_91
New Contributor

Sorry, but no. As I said originally, it's only on my machine that this happens - not my cohorts. Very frustrating!

0 Kudos
LuciHawkins
Occasional Contributor III

Have you tried copying their loaded.config file onto your machine?  Maybe there is something a bit different in their config file that was not configured in yours.

The config file is usually located on the hard drive at:

C:\Users\yourusername\AppData\Roaming\ArcGIS4LocalGovernment\ConfigFiles\Loaded.config

It is just a text file that can be opened in Notepad.  We modify the file to work with our field names, etc.

Thanks,

Luci

0 Kudos
BillTen_Broeck
New Contributor

I gave that a shot, but no luck. Good idea though, so thanks.  

0 Kudos
IanBailey
New Contributor III

I just found out that I have an issue with my user profile on my computer that was causing Arcmap to crash when I tried to use the Geometric network tools. Resetting my user profile is supposed to fix it. I just have to wait for IT to get back from a conference to do that. but I'm hoping that it will fix this nearest feature bug as well. I'll let you know if it does.

0 Kudos
RhettZufelt
MVP Frequent Contributor

Realize this is an older post, but if you are still having this issue, I have found that I get this issue if I add an event theme to the map.

remove the event theme, save, close, re-open (to get by ArcMap refusing to release data until closed) and the error goes away.


R_

0 Kudos