|
POST
|
Tom, Excellent! Glad you got it working! Regards, Tom
... View more
06-22-2015
04:46 PM
|
0
|
0
|
2233
|
|
POST
|
Will do! Lots of data in my positions feature class...
... View more
06-22-2015
12:00 PM
|
0
|
0
|
431
|
|
POST
|
Xander, It looks like I may have reached a finite limit of the geodatabase size. This may be causing my problem. I am removing some older position data and see if that is what is causing my problem. Thanks very much! Regards, Tom
... View more
06-22-2015
11:24 AM
|
0
|
2
|
2454
|
|
POST
|
I could certainly copy my script and try it. I am wondering if the performance would slow down greatly by using an edit session. The python script is listening on a UDP port for vehicle message and updating a vehicles feature class and inserting a record into a historical position feature class. Without an edit session it takes about .02 seconds to process a vehicle position. I am assuming that a edit session might take a bit longer. Regards, Tom
... View more
06-22-2015
11:12 AM
|
0
|
4
|
2454
|
|
POST
|
Xander, Thanks again. I have never had to set these up as registered or use an edit session. They have been running without those for a really long time. That is why I am wondering what has changed about the environment that would create this problem. I would really prefer not to register them and use an edit session. Regards, Tom
... View more
06-22-2015
11:07 AM
|
0
|
0
|
2453
|
|
POST
|
Xander, Thanks very much for the quick response! The two cursors are running consecutively. The update occurs first followed by the insert. This script has been running for over 3 years without any modificaton. I actually have the script running as a service using the srvany.exe. This has also worked very well. Since it is not functioning, I stop the service and I run the script manually to see what is going on. I have looked to see if multiple instance are running, but I only see one instance in the processes in my Task Manager. Regards, Tom
... View more
06-22-2015
11:03 AM
|
0
|
6
|
2454
|
|
POST
|
Greetings, I have a python script that I run continuously to update and insert records in a SQL Server Express database. This has been working properly for many months until this weekend. When I try running the script, I get a "RuntimeError: workspace already in transaction mode" error and won't execute any further. I have tried various solutions from posts I have seen, but none have solved this problem. None of the feature classes are registered as versioned. I am running SQL Server 2008 R2. I am a bit mystifed to know what has changed that would cause this problem. I appreciate any help! Thanks very much! Regards, Tom
... View more
06-22-2015
10:51 AM
|
0
|
10
|
7196
|
|
POST
|
Tom, You can add it to your python script something like this: import logging
logging.basicConfig(filename='example.log',level=logging.DEBUG)
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too') Regards, Tom
... View more
06-19-2015
01:21 PM
|
1
|
2
|
2233
|
|
POST
|
Matthew, Just a bit of a logic error. This should work: rows = arcpy.SearchCursor(Layer)
textValue = ""
count = 1
for row in rows:
if (count%2):
textValue += row.getValue(Value1) + ' '
else:
textValue += row.getValue(Value) + '\r\n'
count += 1
ParcelText2.text = textValue Regards, Tom
... View more
06-18-2015
11:06 AM
|
1
|
3
|
3104
|
|
POST
|
There are always lots of different ways to solve problems!
... View more
06-18-2015
08:43 AM
|
0
|
2
|
3104
|
|
POST
|
Matthew, Some logic like Ian describes will work. You can use the modulo operator to accomplish this too. if (count%2) == 0: Regards, Tom
... View more
06-18-2015
08:29 AM
|
1
|
9
|
3104
|
|
DOC
|
Robert, Very nice! It works very well. I am seeing broken images on 3 of the thumbnails though. I tried it on on Chrome, IE and Firefox all with the same result. It didn't affect the behavior of the widget though. Thanks very much for all of your work! Best Regards, Tom
... View more
06-18-2015
08:17 AM
|
0
|
0
|
28238
|
|
POST
|
Greetings Tom, I have a few python scripts that I run nightly too. I have put most of them into bat scripts, but python should work too. When you create the task, which user have you specified to run the task? Do they have permission to all of the resources that are needed to be able to complete the task? It may also be helpful to add some logging to your scripts to see what is happening too. Regards, Tom
... View more
06-17-2015
10:53 AM
|
1
|
4
|
2233
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:45 AM | |
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|