<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBS 999999 Error in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586918#M19431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had a look around on the web and I'm sure that the problem is to do with joining an ordinary table to a feature class, but I still have had no luck finding a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone come across this problem before and found a way around it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Oct 2013 12:02:20 GMT</pubDate>
    <dc:creator>Liam_</dc:creator>
    <dc:date>2013-10-12T12:02:20Z</dc:date>
    <item>
      <title>VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586911#M19424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written a script for the model builder's calculate field function in VBScript but I keep getting the 999999 error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have gone over my code several times but cannot seem to find a reason for it not to be able to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INPUT TABLE: JOIN_CarData_RoadLinks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FIELD NAME: JOIN_CarData_RoadLinks.OrientationOfCar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPRESSION: CarOrientation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim CarOrientation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim RoadOrientation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadOrientation = [JOIN_CarData_RoadLinks.Orientation]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim RoadCompass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadCompass = [JOIN_CarData_RoadLinks.CompassA]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim RoadCompassMax&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadCompassMax = RoadCompass + 170&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If RoadCompassMax &amp;gt; 360 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; RoadCompassMax = RoadCompassMax - 360&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ElseIf RoadCompassMax &amp;lt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; RoadCompassMax = RoadCompassMax + 360&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim RoadCompassMin &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadCompassMin = RoadCompass - 170&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If RoadCompassMin &amp;gt; 360 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; RoadCompassMin = RoadCompassMin - 360&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ElseIf RoadCompassMax &amp;lt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; RoadCompassMin = RoadCompassMin + 360&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim PointBearing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PointBearing = [JOIN_CarData_RoadLinks.Bearing]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If PointBearing &amp;gt; RoadCompassMin And PointBearing &amp;lt; RoadCompassMax Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CarOrientation = RoadOrientation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If PointBearing &amp;lt; RoadCompassMin Or PointBearing &amp;gt; RoadCompassMax Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If RoadOrientation = "-" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CarOrientation = "+"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If RoadOrientation = "+" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CarOrientation = "-"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried including and excluding the "JOIN_CarData_RoadLinks." in my field allocations and replacing the declared variables used in the body of my code with the actual table's fields. I have copied my code into a VBScript IDE to check the syntax and it couldn't find anything wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 10:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586911#M19424</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-04T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586912#M19425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first thing that comes to mind is that you may be failing to deal with Null values in the calculation.&amp;nbsp; Since this code involves a join, any record in the primary table that is unmatched in the joined table will have Null values passed to the calculation.&amp;nbsp; Nulls often generate this kind of error when comparisons are attempted in VB Script.&amp;nbsp; So you may need to add logic to the model to ensure that no Null value records get processed by the calculation or add IsNull checks to the calculation and ensure that a valid CarOrientation output occurs for those cases without comparing the record values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, my approach with these kinds of problems is to take the script intermediate results up to that point and use the actual feature classes/tables in Desktop to run the field calculation there.&amp;nbsp; I would cut out all of the code except for the first logical test and only process that to see if it generates an error, then I would paste back each additional test until I hopefully threw the error so I could isolate the part of the code that is responsible for the problem.&amp;nbsp; Tedious, but it usually works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586912#M19425</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-04T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586913#M19426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again for your help, I will give your suggestions a whirl and report back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586913#M19426</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-04T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586914#M19427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to solve the problem: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked for null values throughout the database but the database had none. I then decided to export the table with the join to the same gdb, just called it: 'JOIN&lt;/SPAN&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;SPAN&gt;_CarData_RoadLinks'. This made the join 'permanent', my code then whizzed through and completed successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would appear that you cannot perform comparative VBScripts using the field calculator on a joined table. Or at least my installation won't &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help, another 'bug' to add to the '&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;book of workarounds&lt;/SPAN&gt;&lt;SPAN&gt;' &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 13:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586914#M19427</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-05T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586915#M19428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I managed to solve the problem: -&lt;BR /&gt;&lt;BR /&gt;I checked for null values throughout the database but the database had none. I then decided to export the table with the join to the same gdb, just called it: 'JOIN&lt;STRONG&gt;2&lt;/STRONG&gt;_CarData_RoadLinks'. This made the join 'permanent', my code then whizzed through and completed successfully.&lt;BR /&gt;&lt;BR /&gt;It would appear that you cannot perform comparative VBScripts using the field calculator on a joined table. Or at least my installation won't &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help, another 'bug' to add to the '&lt;SPAN style="font-style:italic;"&gt;book of workarounds&lt;/SPAN&gt;' &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Liam.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Join calculations work and are the most common calculation I do.&amp;nbsp; GDBs are very good with them.&amp;nbsp; They have worked for 9.2 to 10.1 for me.&amp;nbsp; So it could be something peculiar to the complexity of the calculation or to the database configuration.&amp;nbsp; I have written if then logic for them, but I don't normally have as many conditions as your calculation included.&amp;nbsp; This particular calculation is more complex than most and has many failure points, null values being only one of them.&amp;nbsp; It is also not clear that you checked for an incomplete match of all records in the join itself, which would create join records with Nulls, or how much you broke the calculation down to its component parts to test each calculation step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have a solution and workarounds are common in ArcGIS, but I don't want you or anyone else to conclude that VBScript join calculations commonly do not work.&amp;nbsp; They most certainly do work and I have never had to use a workaround for them.&amp;nbsp; So, as far as I am concerned, the probability is that the bug is in the calculation you wrote, not ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rereading your post I realize how ambiguous your description of your set up and objectives are.&amp;nbsp; I now believe that you may have used the incorrect Join table name in the calculation, since it looks more like an output variable, relationship class, or joined layer name than the names of the unjoined feature classes you actually have on disk.&amp;nbsp; You have to use the underlying feature class names of the original unjoined feature classes/tables on disk as the table names in Join calculations, not the name of the joined layer or table.&amp;nbsp; You should write this calculation with the Calculation editor and use it to insert all field names into the calculation.&amp;nbsp; I rely exclusively on the Calculation Editor for field names of joined data and never custom write joined field names into any calculation I compose when bugs like this appear.&amp;nbsp; I only custom write the comparative logic part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other possibility is that you were trying to calculate values for one of the fields of the Joined table, not the primary table.&amp;nbsp; That is not allowed and is not a bug, it is by design.&amp;nbsp; Only fields of the primary table can be calculated in a join.&amp;nbsp; If calculating values into a joined field was what you were trying to do, that would explain why an export worked while the calculation didn't.&amp;nbsp; Once the feature class was exported the field you were calculating would be an actual part of the feature class itself and not in an externally joined table/feature class.&amp;nbsp; If calculating a joined field was your objective than the only solutions are to reverse the join order so that the field to be calculated is in the primary feature class/table or to export the feature class as you did.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 16:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586915#M19428</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-05T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586916#M19429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I decided to construct two tables based on how I interpreted your set up would have to be in order for the calculation to work and used your exact posted calculation on it.&amp;nbsp; The calculation worked in Desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how the data was configured:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Primary table fields (any gdb compliant primary table name would work.&amp;nbsp; I have named mine "OrientationOfCar"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID (Unique ID for the join)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OrientationOfCar (text field to be calculated)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Join Table fields (only a join table named "JOIN_CarData_RoadLinks" will work for this particular calculation):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID (Unique ID for the join)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Orientation (text field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CompassA (double)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bearing (double)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached two screenshots of the joined tables before and after the calculation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your configuration differed from this in any significant way that would be a problem.&amp;nbsp; For example, if Bearing was not in the join table but was in the OrientationOfCar table (which seems more logical to me than what I set up) that would be a problem.&amp;nbsp; If the OrientationOfCar field being calculated was in the JOIN_CarData_RoadLinks table, that would be a problem.&amp;nbsp; If the join order of the tables was reversed that would be a problem.&amp;nbsp; If the name of the joined table was not actually "JOIN_CarData_RoadLinks" that would be a problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also assumed you were running this in Model Builder.&amp;nbsp; I don't use VBScript scripts and at 10.1 I do not have the option to export Models to VBScript.&amp;nbsp; Only Model Builder models and Python scripts are supported at 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Model Builder had no problem with this calculation.&amp;nbsp; I built a model to emulate what I did in Desktop and it ran fine.&amp;nbsp; A screenshot of the model is attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also assumed you knew that only Layers and Table Views, not feature classes on disk, can be the primary layer/table in a Join.&amp;nbsp; So before creating a Join the Make Feature Layer or Make Table View tool has to be run if the data is pulled from ArcCatalog.&amp;nbsp; You will note that the model I built uses the Make Table View tool before creating the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I exported the script to Python and it also ran.&amp;nbsp; Prior to 10.0 the Python script export would have failed, because codeblocks using VBA were not supported.&amp;nbsp; At 10.0 and after codeblocks use VBScript, not VBA, and should work (at least they do now at 10.1).&amp;nbsp; Here is the Python script Model Builder created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# testVBScriptCodeBlock.py
# Created on: 2013-10-05 12:40:22.00000
#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy


# Local variables:
OrientationOfCar = "C:\\Documents and Settings\\rfairhur\\My Documents\\ArcGIS\\Default.gdb\\OrientationOfCar"
JOIN_CarData_RoadLinks = "C:\\Documents and Settings\\rfairhur\\My Documents\\ArcGIS\\Default.gdb\\JOIN_CarData_RoadLinks"
OrientationOfCar_View = "OrientationOfCar_View"
OrientationOfCar_View__3_ = "OrientationOfCar_View"

# Process: Make Table View
arcpy.MakeTableView_management(OrientationOfCar, OrientationOfCar_View, "", "", "OBJECTID OBJECTID VISIBLE NONE;OrientationOfCar OrientationOfCar VISIBLE NONE;ID ID VISIBLE NONE")

# Process: Add Join
arcpy.AddJoin_management(OrientationOfCar_View, "ID", JOIN_CarData_RoadLinks, "ID", "KEEP_ALL")

# Process: Calculate Field
arcpy.CalculateField_management(OrientationOfCar_View__3_, "OrientationOfCar.OrientationOfCar", "CarOrientation", "VB", "Dim CarOrientation\\n\\nDim RoadOrientation\\nRoadOrientation = [JOIN_CarData_RoadLinks.Orientation]\\n\\nDim RoadCompass\\nRoadCompass = [JOIN_CarData_RoadLinks.CompassA]\\n\\nDim RoadCompassMax\\nRoadCompassMax = RoadCompass + 170\\n\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadCompassMax &amp;gt; 360 Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMax = RoadCompassMax - 360\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf RoadCompassMax &amp;lt; 0 Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMax = RoadCompassMax + 360\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; End If\\n\\nDim RoadCompassMin \\nRoadCompassMin = RoadCompass - 170\\n\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadCompassMin &amp;gt; 360 Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMin = RoadCompassMin - 360\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf RoadCompassMax &amp;lt; 0 Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMin = RoadCompassMin + 360\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; End If\\n\\nDim PointBearing\\nPointBearing = [JOIN_CarData_RoadLinks.Bearing]\\n\\nIf PointBearing &amp;gt; RoadCompassMin And PointBearing &amp;lt; RoadCompassMax Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = RoadOrientation\\nEnd if\\n\\nIf PointBearing &amp;lt; RoadCompassMin Or PointBearing &amp;gt; RoadCompassMax Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadOrientation = \"-\" Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = \"+\"\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; End if\\n\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadOrientation = \"+\" Then\\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = \"-\"\\n&amp;nbsp;&amp;nbsp;&amp;nbsp; End if\\nEnd if&amp;nbsp; ")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So something you are doing is different from what I did.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586916#M19429</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T01:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586917#M19430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for your help and insight, I have reviewed the process that I used to calculate the field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sorry I didn't give more details about my database, I did not realise that the problem could be in the Join itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with the OS ITN road network dataset and although I have had a very poor success rate with the network analyst (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/88084-Productivity-Suite-Not-recognising-that-roads-are-on-different-gradients.-OS-ITN-." rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/88084-Productivity-Suite-Not-recognising-that-roads-are-on-different-gradients.-OS-ITN-.&lt;/A&gt;&lt;SPAN&gt;) the underlying tables and feature classes are very well thought out and easy to work with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to test the feasibility of a vehicle navigation solution in ArcMap using the Network Analyst extension that can calculate the best route to a destination based on fuel economy variables (as oppose to drive times or just the length of journey). Fuel economy values have been calculated based on information collected from peer reviewed literature for average light duty vehicles. The said values have been added to the roadlinks dataset as an impedance value so that each roadlink has a cost associated with its transversal. As the route finder transverses each roadlink, the impedance values accumulate which results in a total �??cost�?? for the journey in litres per kilometre. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An overview of my database semantics can be seen &lt;/SPAN&gt;&lt;A href="https://docs.google.com/file/d/0B__R_zeuj9Q9cE5KZXI1dUNaRXM" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To verify and assess the accuracy of the solution, routes have been driven in a Volkswagen Golf with GPS tracking and logging of vehicle engine management system outputs. This second dataset was created by myself and converted from KML points to 8 point datasets stored in an Arc Geodatabase according to the day/route taken. All of the points feature classes were then amalgamated into a single CarData feature class for statistical analysis to test the correlation of real world data against literature data. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The original intention was to compare impedance values with real world route values, problems with the Productivity Suite have forced me to do a comparison on a road segment by road segment level (but that's a completely different problem).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, in order to compare the data (I intend to use MS Excel), I have processed the CarData points feature class: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Performed linear directional mean on RoadLinks.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Add field to CarData to store positive/negative orientations&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Joined the CarData to Roadlinks to copy across the Road TOIDs&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Removed Join &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Joined the CarData to Linear Directional Mean table&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Calculated the orientation (+/-) of the car data based on bearings.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Ran summary statistics for each road cased on TOID and Orientation&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Multiplied the average l/km by the length of the roads.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;So I currently have [CarData_RoadLinks_Statistics] as a standalone table and [ITN_RoadLinks] as a File Geodatabase Feature Class. Now I just need to copy the ToFrom and FromTo totals in the stats table to the RoadLinks F.Class where the TOIDs match. Then I can export to excel and run correlation tests. There will be nulls in these field calculations because a FromTo value cannot be put in a FromTo value and vice versa. I joined the tables together Roadlinks to Stats so I am only writing to the primary table. My data looks a little something like this: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
The calculation:
[RoadLinks.FromTo] = [Stats.FromTo]
[RoadLinks.ToFrom] = [Stats.ToFrom]

Sample Data:
 _____________________________________________________________________________
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadLinks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stats&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|_____________________________________________________________________________|
|TOID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromTo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToFrom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromTo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToFrom |
|_____________________________________________________________________________|
|1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp; |
|2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp; |
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore if I copy the values from Stats.FromTo to RoadLinks.FromTo it will have to copy a null across. To combat this I wrote into the calculate a test for null: If Not IsNull([FromTo]) then .....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even so, it still cannot copy, I get an ArcMap has crashed error and the whole program closes. I has occurred to me that it may not like to join a feature class to a standalone table. However, at the end of the day it is just a simple append query. I am now faced with the task of exporting all the databases into MS Access and finishing my project there. But this would defeat the object of doing the ArcMap project as I could have then done the entire project in Access (especially as the productivity suite has a bug [TFL reports that they get the same bug] which means I cannot use network analyst to it's full extent).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thank you for your help and insight, I cannot express how much I appreciate it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I have also tried running the field calculations outside of the model builder. I have tried turning editing mode on an off, right clicking in the attributes table and running straight from the toolbox. All of which cause ArcMap to crash.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586917#M19430</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2021-12-12T01:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586918#M19431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had a look around on the web and I'm sure that the problem is to do with joining an ordinary table to a feature class, but I still have had no luck finding a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone come across this problem before and found a way around it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 12:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586918#M19431</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-12T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586919#M19432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've had a look around on the web and I'm sure that the problem is to do with joining an ordinary table to a feature class, but I still have had no luck finding a solution.&lt;BR /&gt;&lt;BR /&gt;Has anyone come across this problem before and found a way around it?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Liam.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work in transportation and, although I don't use Network Analyst, I do use linear referencing of point and line events almost everyday.&amp;nbsp; So I am very familiar with working with data that has From and To direction dependent information.&amp;nbsp; I also transfer data between feature classes and tables almost everyday using Joins and the Field Calculator with no problems.&amp;nbsp; I have worked this way since at least ArcGIS 9.0 and currently am using ArcGIS 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at your semantics doc and at your example, but you have not clearly explained the key items I need to understand.&amp;nbsp; At some level you went from too little information to information overload using a shot gun approach of dumping everything.&amp;nbsp; I need to focus to several key things.&amp;nbsp; So lets take them one by one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; I need to know the database type of the feature class and table you are working with.&amp;nbsp; This is the biggest factor affecting the join.&amp;nbsp; Do you have the feature class and table in a geodatabase.&amp;nbsp; If they are in a geodatabase are they in the same geodatabase or different geodatabases?&amp;nbsp; What type(s) of geodatabase are involved?&amp;nbsp; SDE, file geodatabase, or personal geodatabase?&amp;nbsp; Is one in a geodatabase and the other isn't, or are both outside of a geodatabase?&amp;nbsp; If the feature class is not a in a geodatabase is it in a shapefile, a coverage, or a CAD file?&amp;nbsp; If the table is not in a geodatabase is it in a dbf table, an info table, an Excel table, or a text file?&amp;nbsp; Are both in an editable workspace directory or does either have edit restrictions on their workspace directory?&amp;nbsp; There is no such thing as an "ordinary" table and each specific table type and feature class/table type mix may introduce different problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; What fields are you joining between the tables?&amp;nbsp; Name the fields in the feature class and the table and give their data type(s) (long, short, text, double, float, etc).&amp;nbsp; Does the join field ever have Null values in it in either the feature class or table?&amp;nbsp; If it is a text field, do the fields share exactly the same value in both tables?&amp;nbsp; Provide an example of a shared field value, especially if the fields are text fields.&amp;nbsp; Do you have to join the feature class to the table on two different feature fields, with one join based on the From direction data and the other join based on the To direction data?&amp;nbsp; More than one join could cause several problems related to Null values and records matching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; What is the relationship type between the feature class and the table?&amp;nbsp; One-to-one, many-to-one, one-to-many, or many-to-many?&amp;nbsp; Joins only support one-to-one and many-to-one relationships, meaning that you can have only one table record match any given feature when you use the feature class as the original table and join the table to it.&amp;nbsp; If the relationship is one-to-many or many-to-many, a join will not support that relationship fully.&amp;nbsp; Meaning that ArcMap does not fully support one feature having two or more table records joined to it.&amp;nbsp; It will randomly choose one table record associated with a given feature and ignore all of the others table records when you create a join.&amp;nbsp; The complex relationships can cause several problems and may need several modifications to your workflow to achieve a successful data transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; How many features are in the feature class.&amp;nbsp; How many records are in the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So focus on giving clear answers to these questions.&amp;nbsp; They are critical to knowing how to work with your data correctly in everything you intend to do.&amp;nbsp; I have dealt with almost every one of these scenarios and have found the ones that work and workarounds for many that don't work directly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 14:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586919#M19432</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-12T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586920#M19433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would never incorporate Excel into a GIS process.&amp;nbsp; It is not a database and it is unreliable.&amp;nbsp; I never use it directly in ArcGIS and recommend that no one use it directly in ArcGIS.&amp;nbsp; I always convert it to a real database.&amp;nbsp; ArcGIS can be very particular about what works well and what does not, especially when you use joins, and almost every day I have to convert data from one format to another to get it to work reliably.&amp;nbsp; IMHO, Excel is only for those that cannot use a database and GIS professionals should never rely on it as a direct data source without conversion and data scrubbing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would never call any Excel spreadsheet an "ordinary table" in any sense of those words.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 15:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586920#M19433</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-12T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586921#M19434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for your assistance, I am really grateful for your time and efforts in helping me on my project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The earliest version of ArcGIS I have used was 9.3. When I was transferred to 10.1 and they had changed over from VBA to VBScript it ruined all my models and scripts! Still, they are useful to keep for reference :). I was not sure if the linear referencing tool was appropriate for a road network as I had only used it previously on a river project on the Norfolk Broads tracking the salt water that was brought in with each tide. However, the results from the analysis seem to be correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had a rummage through my project and collected the information you requested: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;The first table, the target of the Join is the ITN_Network Geodatabase: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Data Type: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;File Geodatabase Feature Class &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Database: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\Liam\Desktop\ArcMapData\_FinalisedMethod\FinalMethod\FinalMethod.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Feature Dataset:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ITN_Network&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Feature Class:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ITN_RoadLinks&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Feature Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Simple&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Geometry Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Line&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Coordinates have Z values:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Coordinates have measures:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Projected Coordinate System:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;British_National_Grid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;The second table is the CarData_RoadLinks_Statistics standalone table:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Data Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Standalone Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Table Name:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Table Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;File Geodatabase Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Database:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\Liam\Desktop\ArcMapData\_FinalisedMethod\FinalMethod\CarDataProcessed.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Has Object-ID Field:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;2) &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;The joined field data types: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Target Field:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[ITN_RoadLinks.RoadLinkTOID]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;String&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Allow NULL Values:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Length:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although NULL values are allowed for this field, there are no records with NULL in this field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Join Field:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[CarData_RoadLinks_Statistics.RoadLinkTOID]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;String&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Allow NULL Values:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Length:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, although NULL values are allowed for this field, there are no records with NULL in this field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;3)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;The tables are joined with these settings: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Target Table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ITN_RoadLinks&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Target Field:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Join Table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Join Field:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Join Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep only matching records&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Data Type:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Standalone Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Database: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\Liam\Desktop\ArcMapData\_FinalisedMethod\FinalMethod\CarDataProcessed.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;4)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;ITN_RoadLinks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Number of records:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;729,157&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;CarData_RoadLinks_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Number of records: &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1,328&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example of the join with some data: -&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://docs.google.com/file/d/0B__R_zeuj9Q9bGp2VktmbkNwVmM/"&gt;Here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to copy the ToFromTotalStats &amp;amp; FromToTotalStats from CarData_RoadLinks_Statistics into CarDataToFromTOTAL &amp;amp; CarDataFromToTOTAL in ITN_RoadLinks. All of the fields are double data types and allow null values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with not using Excel spreadsheets as a direct data source, they are just not designed for that and have advised many people not to. Even in MS Access, they can cause trouble as they have no record (or row) level read/write locking or efficient data structure past about 5000 rows. I have made specialist bespoke relational databases in MS Access for work, that�??s possibly where I get my bad terminology from :). When I said an ordinary table, I meant a table without any spatial data i.e. like within an MS Access database. Sorry for causing the confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is only my intention to export to excel so I can perform statistical analysis for my results. This will be the last step in the project and Arc will not be required to then read anything resulting from the statistical analysis. I was intending to do the statistics within Arc, however I need the Route Network to be fixed in order to do so. That would have been the best solution, but I guess the productivity suite has trouble processing the whole of South-East England's roads &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I have covered all of the data you requested in your post, please let me know if I have missed anything out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 18:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586921#M19434</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-12T18:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586922#M19435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. That information is a much better starting point to work out your problem.&amp;nbsp; I am assuming that this information is relevant to the original calculation you proposed in your very first post.&amp;nbsp; My comments are based on that assumption.&amp;nbsp; However, I am concerned that you may have resolved that problem and are giving me information that relates to a different problem that you are now having.&amp;nbsp; So please let me know if your original calculation is still the problem you are trying to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My tests showed that your original calculation worked fine when it was applied to a feature class and table that matched the prefix and field names used in the calculation.&amp;nbsp; However, in your very first post you proposed a calculation that used a prefix to the fields called JOIN_CarData_RoadLinks.&amp;nbsp; That prefix makes no sense with the data you have described in your last post and definitely would result in an error.&amp;nbsp; So lets start there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since both of these data sources mentioned in your last post are within File Geodatabases, after the join is created, the calculation field prefixes that would reference fields within the Feature Class would have the form: ITN_RoadLinks.field.&amp;nbsp; Calculation field prefixes that would references fields within the Table would have the form: CarData_RoadLinks_Statistics.field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now I will assume that everywhere you wrote JOIN_CarData_RoadLinks you really meant to reference fields in the CarData_RoadLinks_Statistics table.&amp;nbsp; If that is true than the original calculation should have been written:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim CarOrientation

Dim RoadOrientation
RoadOrientation = [CarData_RoadLinks_Statistics.Orientation]

Dim RoadCompass
RoadCompass = [CarData_RoadLinks_Statistics.CompassA]

Dim RoadCompassMax
RoadCompassMax = RoadCompass + 170

&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadCompassMax &amp;gt; 360 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMax = RoadCompassMax - 360
&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf RoadCompassMax &amp;lt; 0 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMax = RoadCompassMax + 360
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

Dim RoadCompassMin 
RoadCompassMin = RoadCompass - 170

&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadCompassMin &amp;gt; 360 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMin = RoadCompassMin - 360
&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf RoadCompassMax &amp;lt; 0 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; RoadCompassMin = RoadCompassMin + 360
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

Dim PointBearing
PointBearing = [CarData_RoadLinks_Statistics.Bearing]

If PointBearing &amp;gt; RoadCompassMin And PointBearing &amp;lt; RoadCompassMax Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = RoadOrientation
End if

If PointBearing &amp;lt; RoadCompassMin Or PointBearing &amp;gt; RoadCompassMax Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadOrientation = "-" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = "+"
&amp;nbsp;&amp;nbsp;&amp;nbsp; End if

&amp;nbsp;&amp;nbsp;&amp;nbsp; If RoadOrientation = "+" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CarOrientation = "-"
&amp;nbsp;&amp;nbsp;&amp;nbsp; End if
End if&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So which data source actually contains the fields named Orientation, CompassA and Bearing?&amp;nbsp; Are these fields all in the CarData_RoadLinks_Statistics table?&amp;nbsp; If not than any field in the calculation above that actually is found in the ITN_RoadLinks feature class should have the CarData_RoadLinks_Statistics prefix changed to the ITN_RoadLinks prefix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;===========&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am concerned that you said in one of your posts that ArcMap is crashing when you do this manually.&amp;nbsp; Your data is local to your machine, which is good, so you don't need to consider network communications as a factor for the crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a parcel database with approximately the same number of records you mentioned and ArcMap crashes frequently when I do joins or relates to it as well, usually during record selection or calculation through the join.&amp;nbsp; This is probably because joins and relates are built in memory, and if memory resources hit a wall, ArcMap crashes.&amp;nbsp; Some peoples seem to be able to work with even larger data sets, but the differences could be due to differences in the resources of the workstations processing the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The crash could also be due to the fact your data sources reside in separate geodatabases and the resources needed to deal with that are managed differently than resources used when both are within a single geodatabase.&amp;nbsp; I would suggest manual tests in Desktop where the feature class and table are in the same geodatabase, just to see if that makes a difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way to make sure the problem is with resource management only is to do all of your tests on a dummy data base that uses a small fraction of your actual data first before scaling it up to your full dataset.&amp;nbsp; If errors trigger on the small scale data it is a user fault that needs to be resolved first, but if problems only arise when you attempt to go to a larger scale than it is likely a resource issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When does ArcMap crash?&amp;nbsp; As soon as you attempt the join?&amp;nbsp; That is a definite resource issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it crash only after beginning a field calculation?&amp;nbsp; Did you try a simple calculation on the data first or have you only attempted a complex calculation on the joined data?&amp;nbsp; You should try a field calculation after the join is created using a simple value like " " or 0 into a dummy field, just to see if ArcMap would let you do that.&amp;nbsp; If you could not do that on your full dataset, than resource management is the issue.&amp;nbsp; However, if you can get past these basic steps and crashes only occur when you do more complex calculations, then more small scale testing followed by large scale experimentation is required to determine what actually triggers the crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When crashes due to resource use come into play, instability is difficult to predict, since you really don't know what is happening in the background and what the trigger point for the crash is.&amp;nbsp; It could indicate a memory leak on the part of ESRI in some cases.&amp;nbsp; You may actually have to provide ESRI with your actual data to determine if the problem you are having is reproducible or resolvable if you get to a point where you know it should work and every step works with a much smaller subset of data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586922#M19435</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T01:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586923#M19436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your quick reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a different problem from the original post, I kept it in the same thread as it is the same project I didn't want to clog up the forum with all my problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your solution for the first problem should be correct but it didn't work for me. I had to export the join by saving it as one single feature class. But this could point to a system resource issue or a deeper problem with my installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my current problem, the join executes successfully and I am able to view the attributes table (after a long wait) but I cannot run any field calculations via model builder, toolbox or the attributes table: calculate field without ArcMap crashing. I also always run Arc in administrator mode, as I have found that read/write errors occur frequently without Arc having admin rights.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect you could be right about the resources though, but despite my computer being old; it has had a few upgrades. Here are my specs: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Processor: Intel Core 2 CPU X6800 @ 2.93GHz Overclocked to 3190 Mhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Installed Physical Memory (RAM): 4.00 GB (32-bit Windows 7 though)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although my system is overclocked, it is very stable. The CPU takes a beating from some of my other applications quite regularly. The RAM has been in a while and shows 100 faults per second which is normal for the amount I have. The GPU is powerful, not that it will have much to do with Arc and my hard drive seems to be healthy. I also compact the database regularly but I'm not sure if it performs the same function as 'Compact and Repair' in MS Access. On a side note, the Compact and Repair function in MS Access usually fixes most issues like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to perform some manual edits on the table, cutting it down in size and your suggestion on combining the geodatabases tomorrow and report back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 00:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586923#M19436</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-13T00:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586924#M19437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I looked at the hyperlink of the join with some data in Number 4 of your post that responded to my questions.&amp;nbsp; It did not answer some of the questions I need answered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; I could not tell what fields were coming from what data source in the example.&amp;nbsp; If you used aliases (which you almost certainly did) convert the example to show the actual full field names so I can see how they would have to be used in a calculation.&amp;nbsp; Also you mentioned fields that I do not see in the example data:&amp;nbsp; ToFromTotalStats &amp;amp; FromToTotalStats from CarData_RoadLinks_Statistics and CarDataToFromTOTAL &amp;amp; CarDataFromToTOTAL in ITN_RoadLinks.&amp;nbsp; What field in your example data corresponds to the RoadLinkTOID field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; You also said you only Keep Matching Records using the join.&amp;nbsp; How many features actually appear once the join is in place?&amp;nbsp; The answer to this question would partly help answer the next question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; You also did not answer another critical question:&amp;nbsp; What is the relationship between the ITN_RoadLinks feature class and the CarData_RoadLinks_Statistics table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One-to-One - the RoadLinkTOID values are unique for each feature and each table record and only one matched table view record is possible for any given RoadLinkTOID value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many-to-One - the features do not have unique RoadLinkTOID values, but every table record has a unique RoadLinkTOID value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One-To-Many - every feature has a unique RoadLinkTOID value, but every table record is not unique for the RoadLinkTOID values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many-To-Many - the RoadLinkTOID values are not unique for the features or the table records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the relationship is One-to-One, then the ITN_RoadLinks feature class only contains a small subset of data related to the CarData_RoadLinks_Statistics table.&amp;nbsp; At most 1,328 features are matched in the table.&amp;nbsp; The join would not hide any records of the CarData_RoadLinks_Statistics table that are actually associated with the features.&amp;nbsp; This relationship is unlikely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the relationship is Many-to-One, then CarData_RoadLinks_Statistics could potentially relate to all or any subportion of the ITN_RoadLinks feature class and the matches would most likely greatly exceed 1,328 features.&amp;nbsp; Potentially every record in the ITN_RoadLinks feature class could be matched by the CarData_RoadLinks_Statistics table.&amp;nbsp; The join would not hide any records of the CarData_RoadLinks_Statistics table that are actually associated with the features.&amp;nbsp; The effect of the join is that in memory you are presented in essence with a table view that shows a one-to-one version of the feature and table records combined.&amp;nbsp; This relationship is the most likely and can contribute to memory instability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A One-to-Many relationship would mean that less than 1,328 features are involved in the join and potentially many of the records in the CarData_RoadLinks_Statistics table are not seen through the join.&amp;nbsp; This relationship is the least likely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A Many-to-Many relationship would involve a multiplication of features if fully joined that could be in the millions of features if the relationship was converted to a One-To-One relationship.&amp;nbsp; Many of the records in the CarData_RoadLinks_Statistics table associated with the features are not actually seen through the join.&amp;nbsp; This relationship is the second most likely, but the worst to deal with and the most likely to result in memory instability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the relationship type is Many-to-One then a python script that uses two cursors can be fairly easily written that would convert the CarData_RoadLinks_Statistics table to a dictionary to transfer the data.&amp;nbsp; This script should have a much lower memory footprint than a join if written properly.&amp;nbsp; A Many-to_many relationship would be almost impossible to work out without blowing out the memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 08:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586924#M19437</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-13T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586925#M19438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking a look, sorry I didn't add in enough detail; I have updated the document and added samples of the two datasets as well. &lt;/SPAN&gt;&lt;A href="https://docs.google.com/file/d/0B__R_zeuj9Q9SFgyN0M5OHp5UEk"&gt;They can be found here&lt;/A&gt;&lt;SPAN&gt;. There was also only 1,117 records remaining after the join - which is odd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The relationship between the roads and the stats is one to many as one road TOID in ITN_RoadLinks can have 2 entries in the CarData_RoadLinks_Statistics that contain ToFrom and FromTo car data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Road x is 1km long and is on a hill, therefore there will be a big increase in the fuel used going up the hill (FromTo) than down the hill (ToFrom). Therefore, Road x can have an entry in the statistics table twice, each representing the cost associated with the direction of travel: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Road x going FromTo @ 10l/km = Total Fuel Used: 10 litres&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Road x going ToFrom @ 1l/km = Total Fuel Used: 1 litre.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FromTo and ToFrom directions are calculated by Ordnance Survey and represented by a '+' for FromTo and a '-' for ToFrom in the Orientation field in ITN_RoadLinks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore the following scenarios can arise: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Road x may have 2 entries in the statistics table as it was travelled upon in both directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Road y may have just one entry in the statistics table as it is a one way carriageway on a motorway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Road z may have no entries in the statistics table as it was not travelled on in either direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the entry in ITN_RoadLinks for Road z cannot be deleted because the theorised l/km value attached to it may be used later on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roads x, y &amp;amp; z all have theoretical l/km stored in the FromToTotal and ToFromTotal fields - these are independant from the real world l/km values stored in the statistics table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, to compare the statistical correlation between the theoretical and real world observations - the real world values (held in the statistics table) need to be copied to the correct fields in the ITN_RoadLinks table: CarDataToFromTOTAL &amp;amp; CarDataFromToTOTAL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried manually editing the fields, but it won't allow me to type anything into the cells. I tried placing the tables in the same geodatabase, but I still couldn't edit at all - not even just a small selection of records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 17:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586925#M19438</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-13T17:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586926#M19439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not surprised by the records loss you see if the relationship is in fact a One-to-Many relationship.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stop joining the data together and stop introducing new names for your objects like "JOIN SAMPLE DATA:" and "INDIVIDUAL TABLE SAMPLE DATA:".&amp;nbsp; Get me down to the raw data before the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A joined table cannot be edited while it is joined to another table.&amp;nbsp; That is an intentional behavior and is especially required with a One-to-Many relationship since ArcGIS cannot interpret that kind of relationship through a join.&amp;nbsp; One-to-Many relationships are not supported by joins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since there are usually 2 table records you must convert it to a single record to use it through a join.&amp;nbsp; Either they must be split into two tables to use a join to transfer the data, with one containing the first instance of a RoadLinkTOID value and the second containing the second instance of the same RoadLinkTOID value.&amp;nbsp; Then you would do two different joins and make a choice if any overwrites would occur as a result of the second join.&amp;nbsp; Otherwise you need to summarize the table records again so that there is only one record in the join table.&amp;nbsp; You can never see both records through the join without exporting the join while both are in the same geodatabase.&amp;nbsp; But the effect of the export would be to duplicate the feature shape into two overlapping shapes, which you do not want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I advise you to collapse the Summary table into a one-to-one relationship and get rid of the Null values.&amp;nbsp; If I understand your data correctly this can be done with the Min and Max operator in a summary when only two records need to be collapsed.&amp;nbsp; What I currently imagine your data to look like in reality is shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ITN_RoadLinks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID CarDataToFromTOTAL CarDataFromToTOTAL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Null Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 Null Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 Null Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID ToFromTotalStats FromToTotalStats&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 10 Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Null 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 5 Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 Null 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2 records with the same RoadLinkTOID value matching the one above)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is convert the CarData_RoadLinks_Statistics arrangement using another Summary to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID Min_ToFromTotalStats Max_ToFromTotalStats Min_FromToTotalStats Max_FromToTotalStats&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Null 10 Null 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 5 5 Null Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 Null Null 7 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This new table structure can be joined to the features as a One-to-One relationship join and unlike a One-to-Many relationship no records will fail to show up in the join.&amp;nbsp; Now, tell me why I cannot do the additional summary I am proposing with your CarData_RoadLinks_Statistics table to convert your existing One-to-Many relationship into a One-to-One relationship.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 20:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586926#M19439</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-13T20:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586927#M19440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, I now understand why I cannot see both the entries for each TOID with a join. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I have the answer to your question: the summary cannot work with the null values as null is not automatically assumed to be 0 in a numeric field? - Therefore it would be looking for the min or the max of nothing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Liam.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586927#M19440</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-14T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586928#M19441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you, I now understand why I cannot see both the entries for each TOID with a join. &lt;BR /&gt;&lt;BR /&gt;I think I have the answer to your question: the summary cannot work with the null values as null is not automatically assumed to be 0 in a numeric field? - Therefore it would be looking for the min or the max of nothing?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Liam.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try the summary.&amp;nbsp; You are wrong about the assumption of the Summary.&amp;nbsp; 0 is not used in the place of Null.&amp;nbsp; Null is preserved for Min and Max in a Geodatabase table if Null is the only choice.&amp;nbsp; It is disregarded if there is any non-Null choice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I lied a little about the output.&amp;nbsp; If there is a Null in all input entries then the output of both Min and Max is Null, as I showed.&amp;nbsp; However, if one of the two entries is not Null and the other is Null, the Null entry is ignored and the Min and Max of the two records would just be the non-Null value.&amp;nbsp; That is what you want anyway, since if you have a non-Null value you don't care about the Null value.&amp;nbsp; You really only need the Max of FromTo and ToFrom, since you don't care about the Null if a non-Null value exists.&amp;nbsp; The only time you might care about a Min and Max is if you somehow had two different non-Null values for a single direction, which as I understand it, makes no sense for your model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if this was the input:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID ToFromTotalStats FromToTotalStats&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 10 Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Null 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 5 Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 Null 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would actually be the output to a geodatabase table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CarData_RoadLinks_Statistics_Statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RoadLinkTOID Min_ToFromTotalStats Max_ToFromTotalStats Min_FromToTotalStats Max_FromToTotalStats&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 10 10 1 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 5 5 Null Null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 Null Null 7 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You only have one slot to fill for each direction per ITN_RoadLinks feature and it is impossible to fill a single directional slot with two different values.&amp;nbsp; You must make a choice if Min and Max are different or take their sum or their average.&amp;nbsp; However, you should always disregard the Null value if there is any non-Null value.&amp;nbsp; You would only preserve the Null output if all the entries are Null.&amp;nbsp; That is exactly the behavior of the Summary with Min and Max when Null values are involved.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if you requested the Mean, the Null values are disregarded when you do a Mean of two records where one has a Null value and the other record has a non-Null value.&amp;nbsp; In that situation, the Mean will just be the non-Null value for those two records.&amp;nbsp; The Mean will not be half of the non-Null value, which is what the assumption of 0 in the place of Null would produce.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, how would you make a single ITN_RoadLinks feature hold both a Null and a non-Null value at the same time for the ToFromTotalStats?&amp;nbsp; How would you make a single ITN_RoadLinks feature hold both a Null and a non-Null value at the same time for the FromToTotalStats?&amp;nbsp; You can't.&amp;nbsp; You would have choose one or the other.&amp;nbsp; The summary makes the choice the same way you would by only considering Null values when no non-Null values exist.&amp;nbsp; If any non-Null values exist the Nulls are disregarded entirely.&amp;nbsp; Null and non-Null values are never mixed together by the Summary tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just in case you ever have two different non-Null values for a specific direction on a specific segment, how would you make a single ITN_RoadLinks feature hold two different non-Null values at the same time for either of those directional fields?&amp;nbsp; You can't.&amp;nbsp; You would have choose the Sum, the Min, the Max, or the Mean.&amp;nbsp; Those summary values are what the Summary Statistics tool gives to you to translate two or more values into a single value for a single slot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this finally answers your question, be sure to mark the thread as answered for the benefit of others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586928#M19441</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-14T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: VBS 999999 Error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586929#M19442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks it worked and I now have a one-to-one relationship with my ITN_RoadLinks table with the correct amount of records (1,117). What is also really useful is the frequency field as I can now easily identify roads that I travelled on in both directions, which maybe useful later on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for my answer to your question, I did get confused as to what the problem may have been with what you were suggesting as when I quickly ran it it appeared to work. You got me looking for a problem that was not there &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You really only need the Max of FromTo and ToFrom, since you don't care about the Null if a non-Null value exists. The only time you might care about a Min and Max is if you somehow had two different non-Null values for a single direction, which as I understand it, makes no sense for your model.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- That is correct, my model and methodology would not allow two real world costs to be associated with a single direction at this point in the process. When I had all my points spatially joined to the roads that they were attached to, I had run the summary tool to get the mean averages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for all your help, I can now transfer my values to the other fields the same way as before &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 13:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/vbs-999999-error/m-p/586929#M19442</guid>
      <dc:creator>Liam_</dc:creator>
      <dc:date>2013-10-14T13:52:13Z</dc:date>
    </item>
  </channel>
</rss>

