You are here: > ESRI Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - Attribute Tables forum

ArcMap - Field Calculator "User interrupt e...   Jenny Smith Feb 11, 2003
Re: ArcMap - Field Calculator "User interru...   Ianko Tchoukanski Feb 11, 2003
Re: ArcMap - Field Calculator "User interru...   Jenny Smith Jan 19, 2004
Re: ArcMap - Field Calculator "User interru...   Ianko Tchoukanski Jan 19, 2004
Re: ArcMap - Field Calculator "User interru...   Jenny Smith Jan 19, 2004
Re: ArcMap - Field Calculator "User interru...   Ianko Tchoukanski Jan 19, 2004
Re: ArcMap - Field Calculator "User interru...   Richard Lesperance Apr 12, 2004
Re: ArcMap - Field Calculator "User interru...   Jenny Smith Apr 15, 2004
Re: ArcMap - Field Calculator "User interru...   Maguru Mathiew May 26, 2004
Re: ArcMap - Field Calculator "User interru...   dan rosenbalm May 27, 2004
Re: ArcMap - Field Calculator "User interru...   leena pesämaa Jun 08, 2004
Re: ArcMap - Field Calculator "User interru...   dan rosenbalm Jun 08, 2004
Re: ArcMap - Field Calculator "User interru...   leena pesämaa Jun 09, 2004
Re: ArcMap - Field Calculator "User interru...   David Mountain Oct 14, 2005
Re: ArcMap - Field Calculator "User interru...   Yoav Rappaport Jan 05, 2006
Re: ArcMap - Field Calculator "User interru...   Katherine OConnor Sep 11, 2006
Re: ArcMap - Field Calculator "User interru...   Kathleen Groenewegen Sep 20, 2006
Re: ArcMap - Field Calculator "User interru...   Richard Borst Oct 12, 2006
Re: ArcMap - Field Calculator "User interru...   Richard Borst Oct 12, 2006
Re: ArcMap - Field Calculator "User interru...   Dawn Greenwood Nov 30, 2007
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject ArcMap - Field Calculator "User interrupt error" 
Author Jenny Smith 
Date Feb 11, 2003 
Message Please help, I must be doing something wrong when I use field calculator in ArcMap.

The steps I have been following: start edit session, open table (point) Right click on empty X field (double 12,6) (no records selected) Calculate values, Advanced. Then I copy paste the VBA statement as in ArcMap help file. Type in the variable in the text box.(dblX) Click OK

Every time I get the following error: “Error running VBA code: User interrupt. OK”

I have tried other fields, in and out of edit session, other VBA statements to test on other shape files but get an error every time. What am I missing ? What am I not doing to make this work ? Originally the data were imported from .apr saved to .mxd. I am using ArcGIS 8.1 The shape files have .prj files
Any suggestions would be appreciated.
Thanks
Jenny


 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Ianko Tchoukanski 
Date Feb 11, 2003 
Message If the code is correct, this can be caused by the presense of invalid (NULL) shapes in the dataset.
Check EasyCalculate (http://www.ian-ko.com or http://arcscripts.esri.com/details.asp?dbid=12224 ).

It has an expression for the field calculator,that will help you to identify the records with invalid shape. 
  http://www.ian-ko.com 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Jenny Smith 
Date Jan 19, 2004 
Message Hello again
Since I have originally posted this query I have not resolved it.
I am now using ArcInfo 8.3 with service pack 2 and still getting the “Error running VBA code: User interrupt.” on some scripts but other scripts work.
(Most of Ianko’s Easy Calculate 4.5 gives an error. Rec number & Cumulative values work but most of the others eg: Mark duplicates, Return length, Polygon return centre gives this error on my PC)

The strange thing is that when I run the same problem scripts with the same data on another PC it works without a problem. The only difference I could see between the computers were that service pack was not installed on the other PC. We now have another PC with the same problem where we get “user interrupt” error but not on the person who wrote the script’s machine.

I have very limited knowledge on VBA/Scripts and only follow the instructions to get the result. I am really puzzled by this problem. Has any one else experienced the same?
Could something on my PC influence a script not to run properly ?
I thought it was reliant on the data ?

Thanks
Jenny
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Ianko Tchoukanski 
Date Jan 19, 2004 
Message Jenny,

Have you installed on your machine and on this other PC the ArcObjects developers kit? 
  http://www.ian-ko.com 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Jenny Smith 
Date Jan 19, 2004 
Message Thanks for the quick response Ianko (considering that it is early morning by you, and I am getting ready to go home)
Sorry for the lack of intelligence but how do I know if ArcObjects developers kit is installed? Our IT department handles all administrative functions.

I could not find any reference to it in ArcMap Menus (Visual basic Editor is installed / not greyed out)
No mentioned is made under Administrative tools.
Under Start Programs I found “ArcObjects Developers Help”.
In file explorer I found “ArcObjects Developers Kit” directory with only a “Help” subdirectory, no other files or folders.

I am considering requesting a clean un-install and reinstall of ArcGIS 8.3 with service pack 3 if you think this could make a difference. If so, is there any tricks to let our IT support know for the best install (ArcInfo Floating) as they do not specialise in this software.

Your advice is much appreciated
Thanks
Jenny
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Ianko Tchoukanski 
Date Jan 19, 2004 
Message If the VB editor is available, you've got it installed. I was just looking for possible causes of the problem. I've never seen something like this. 
  http://www.ian-ko.com 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Richard Lesperance 
Date Apr 12, 2004 
Message I have had this problem too. When all else fails and you know your code is correct, try this.
When opening a calculator file that was previously used and saved to disk, there might be a small black character in the upper left (First character in the file). That needs to be deleted. There is a bug, or has been, that this gets saved with the Calc file sometimes. I can see it pretty redily in Win2000. One of my field guys is using XP and couldn't see it, but it was there! I put my cursor at the far left of the first line and hit the Backspace button. It didn't seem to do anything, but the calculator file ended up working after that.
Hope this helps 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Jenny Smith 
Date Apr 15, 2004 
Message Thanks for the advice Richard. We run on NT thus I have seen the little line / character at the start of the script and deleting it. I did try the backspace on other scripts were I could not visibly see the character but it did not make a difference. It was worth a try, thanks anyway.

It seems like ArcMap is falling apart on me. Now I get the user interrupt error just by basic calculator functions eg. Copy field A’s contents to field B. If I exit ArcMap and return to the same function it works without a problem. Some projects recently have the following error when saving or closing in ArcMap. “Microsoft Visual Basic - Error Class not registered. Looking for object with CLSID: {C62A69F0}" - OK / Help “ At present I am waiting for our IT guys to do a clean install. I am hoping that it would make a difference.
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Maguru Mathiew 
Date May 26, 2004 
Message Did you try to copy from the ArcMap help the following code :Dim dblLength as double
Dim pCurve as ICurve
Set pCurve = [shape]
dblLength = pCurve.Length
and paste it in the calculate window? My self i had the same problem and i couldn't figure out the solution for it. But this morning i just copy the code in the help and pasted it in the calculate window and everything looks fine.
As one of the guy replied to you, it might be an extra character which is being add without your control.

Mathiew 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author dan rosenbalm 
Date May 27, 2004 
Message We have been having the same problem running code on some of our workstations. We have the same OS, patches, and ArcGIS, with patches. On some workstations our scripts work fine. On others, we get the User Interrupt error unless we comment out the dim statements. Then the scripts work on all the machines.

Dan Rosenbalm
Kunsan GIO 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author leena pesämaa 
Date Jun 08, 2004 
Message I have the same problem when I try to calculate Area for a field. It works for my colleagues, it seems to be some file which troubles the calculator. Have you any solutions for it?
Lena 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author dan rosenbalm 
Date Jun 08, 2004 
Message We have found a few solutions for this:

Workaround - Comment out all dim statements in the calulation script (Use a ' character at the beginning of the line).

Fix - Delete the arcid module from normal.mxt. To do this, open the VB editor, and expand normal.mxt in the project explorer window. Select ArcID in the module folder and delete it.
We had a bad reference in the ArcID module of the normal.mxt. Your ArcMap may be hanging up on an object in there as well. To check if you have the ArcID module, open the VB editor, and expand the normal.mxt tree in the project view. The ArcID module (if you have it), is in the modules folder.
Once you delete the problem entry, or the entire ArcID module, your scripts will work fine again.

Make sure you don't need the ArcID module for other customizations to run before you delete it!

The ArcID module can be unintentionally created by pushing the update ArcID module button on the options tab of the Customize menu.
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author leena pesämaa 
Date Jun 09, 2004 
Message Thank's for the help. My calculator finally works.

/Lena 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author David Mountain 
Date Oct 14, 2005 
Message I lost a good few hours to the same "user interrupt" problem. I share the frustration of those who have experienced this: the impulse is to check your own code for errors.

The issue for me was that the normal template had become corrupted, although how I have no idea. It takes 1 minute to fix, see
http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=27474

Do any ESRI personnel know the cause of the corruption, or if there is a more *reliable* fix for this. Its a massive trust problem for me as a user. When you have two lines of (perfect) code and get the error, you can be sure the problem is a corrupted template. When you have 30 lines of code and get the error, you wonder: shall I spend considerable time rechecking my code, or is it that normal template again? 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Yoav Rappaport 
Date Jan 05, 2006 
Message I ran into this exact problem as well. Tech support helped me fix it by going into Tools > Macros > Visual Basic Editor. In the project window (usually near the top left corner of your screen), Expand "Normal (Normal.mxt)". Expand "Modules". Right click ArcID > Remove ArcID. When it asks you if you want export it before removing it, click Yes and save it somewhere else, like C:\Temp, and call ArcIDbu. Without shutting ArcMap, try and reproduce the problem.

I'm running ArcGIS9.1 on XP SP2. I tried to reinstall ArcGIS and remove the entire ESRI folder in my personal folder/application where the normal.mxt sits. That didn't help.

I don't need the ArcID module lets hope there is a fix before I acually need this thing for something. I just wanted to share my experience. 
  Yoav Rappaport 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Katherine OConnor 
Date Sep 11, 2006 
Message I have the same problem and tried all of the solutions posted in this thread. Nothing worked - anyone have any other ideas? Thanks.
Katherine 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Kathleen Groenewegen 
Date Sep 20, 2006 
Message I was having the exact same problem as those above. I tried deleting the normal.mxt file in Windows explorer, then tried deleting the whole ESRI folder (as the link below to the ESRI help explained to do). But neither effort worked.

I tried this recommendation, deleting the ArcID module from the Normal.mxt file using VB Editor, and my field calculator finally works again!!!

Thank you,
Kathleen 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Richard Borst 
Date Oct 12, 2006 
Message I have tried all the fixes including deleting ArcId from Normal.mxt and still have the problem. No matter what I try the calculation always stops at 79,200 records out of 88,714.

I am trying to calculate centroids. 
 
Dim dblX As Double
Dim pArea As IArea
Set pArea = [Shape]
dblX = pArea.Centroid.X
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Richard Borst 
Date Oct 12, 2006 
Message Discovered the problem. In brief, I was trying to compute the centroid of some very small polygons. I excluded these anomolies and the calcualtion worked. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcMap - Field Calculator "User interrupt error" 
Author Dawn Greenwood 
Date Nov 30, 2007 
Message Here it is, years later, and I'm running across the SAME problem :(

I have four layers that I am trying to calculate something for. It has worked for THREE of them. I can't figure out why it won't work for the fourth. I have tried all of the things listed above.

Has anyone figured out anything else? I'm working with 9.2 Evaluation Edition with the most recent service pack installed.

Thanks.