|
POST
|
When I attempt to export data from a table as a dbase file, text, or to a fgdb. I also cannot export it to a feature class in a fgdb. Every time I try I get an error. The source feature class is in SDE. I can display the data in ArcMap and I can view the attribute table without any problem. I can also view the data with sql without any problem. And I can export the data with FME fine. Suggestions for troubleshooting?
... View more
06-28-2019
05:31 PM
|
0
|
7
|
2674
|
|
POST
|
I ended up removing each subtype independently with its subtype code. This worked... import arcpy
import arcgisscripting
connection = xxxxxx
arcpy.env.workspace = connection
tables = ["T_StructureAsset",
"T_MiscellaneousAsset",
"T_FoundationAsset",
"T_GuyAsset",
"T_AnchorAsset", ]
for table in tables:
print '\n' + '*' * 40
print 'Remove subtypes for ' + table
subtypes = arcpy.da.ListSubtypes(table)
for k, v in subtypes.items():
print 'Removing subtype code: ' + str(k)
try:
arcpy.RemoveSubtype_management(table, k)
except arcgisscripting.ExecuteError:
print '\n' + arcpy.GetMessages() + '\n'
... View more
06-21-2019
11:30 AM
|
0
|
0
|
1058
|
|
POST
|
Pandas might be for you. https://pandas.pydata.org/ http://geospatialtraining.com/tutorial-creating-a-pandas-dataframe-from-a-shapefile/ https://datatofish.com/export-dataframe-to-csv/ https://towardsdatascience.com/why-and-how-to-use-pandas-with-large-data-9594dda2ea4c I only have a ~140,000 rows to work within my test... but I think you could scale stuff up. https://stackoverflow.com/questions/14525344/whats-the-maximum-size-of-a-numpy-array import pandas
import arcpy
arcpy.env.workspace = connection
source = 'coninfo'
field_names = arcpy.ListFields(source)
field_names = [x.name for x in field_names]
field_names = field_names[:1]
ar = arcpy.da.TableToNumPyArray(source, field_names)
df = pandas.DataFrame(ar)
df.to_csv('test.csv')
... View more
06-20-2019
05:31 PM
|
0
|
0
|
19246
|
|
POST
|
I am trying to remove subtypes from a number of tables with python. I tested things on fgdb copy of the sde data. Everything worked fine. However, when I run it in our sde dev environment it makes it past the first two tables then just hangs..... I have also tried it with the ArcCatolog tool on the problem table. It has been running for 25 minutes. arcpy.SetSubtypeField_management(table, clear_value='TRUE') The tables have a large number of subtypes. Some tables have over 260! (someone did not understand how to use subtypes...) I did remove sde locks before trying to remove them. Has anyone ever run across this problem?
... View more
06-20-2019
04:17 PM
|
0
|
1
|
1097
|
|
POST
|
hahaha. Only 7 years? That fast??? I would think 10 or 15 would be more realistic... But, seriously, we did find the problem with ours. We were adding the service from a server without going through the portal web adaptor that has the server certificate. So, once we changed to go through the web adaptor the errors stopped.
... View more
06-14-2019
09:11 AM
|
1
|
1
|
3807
|
|
POST
|
Hi Eduardo, This was quite some time ago. But as I recall I did end up using Simplify Polygons in the Cartography toolbox Then I erased the original FC with the new output. I think there was a hand full of polygons that I had to go back and edit by hand. But overall it worked well. I was working with PLSS sections. They are basically square shapes with no gaps or overlaps. My data was not in a formal esri topology. Section (United States land surveying) - Wikipedia Okay, I hope that helps a little bit. Good luck!
... View more
05-28-2019
10:29 AM
|
1
|
0
|
6592
|
|
POST
|
Okay, I tested this in the dev environment and as expected all rows now join to a version. We can see this in our user complaints as well. After each compress, the custom code would start to work again. And I could go in and see the that the offending "A" rows that did not join to a version had been removed by the compress operation. So, all working as expected with the compress. Is there a way to get the version of the rows that don't join with the above sql before they are compressed away? Or is this something that sde just does not support?
... View more
05-20-2019
11:14 AM
|
0
|
2
|
3609
|
|
POST
|
Thanks Biraja The screen grab is the results of the sql query. And yes your understanding is correct. Is there a way to trace back the states/lineage to find what version the edit was made in for the rows that don't join with the above sql? Or maybe this is just how sde versioning works and there is no way back? This came up for us because we had some custom code looking at all of the values in the "A" table of a feature class and then blowing up on a bad value (yes the code is of poor quality and should be fixed). So, I wanted to find out the version the bad edit was made in. But I was unable to join it to a version with the above sql as the state/lineage of the version had moved on from the "A" row state/lineage... in the end I was able to track down the version by talking to users.
... View more
05-15-2019
05:16 PM
|
0
|
4
|
3609
|
|
POST
|
Thanks for the feedback Biraja. So, if I am understanding you correctly your are suggesting something like this: with lina as (select a.objectid, s.lineage_name, s.state_id from a293 a
join sde.states s on s.state_id = a.sde_state_id),
linver as (select s.state_id, s.lineage_name, v.name from sde.versions v
join sde.states s on v.state_id = s.state_id)
select * from lina
full outer join linver on lina.lineage_name = linver.lineage_name But what about the rows in the "A" table that do not join to a current version lineage? How do I understand what version they were part of?
... View more
05-14-2019
11:02 AM
|
0
|
6
|
3609
|
|
POST
|
I have a problematic edit that I can see in the "a tables". How can I find the version linked to this edit with sql in an Oracle system? I cannot find the state in the sde versions table so it is not the most recent state for the version... But the edit is from yesterday afternoon, so it is not super old.
... View more
05-10-2019
02:13 PM
|
0
|
8
|
3941
|
|
POST
|
You can move freely between json and a python dict. Converting Dictionary to JSON in python - Stack Overflow
... View more
03-21-2019
11:42 AM
|
1
|
0
|
1208
|
|
POST
|
We are getting this in our 10.5 server logs (federated with portal) for an image service. Looks like the same problem as in this old thread... https://community.esri.com/thread/54022
... View more
03-19-2019
02:11 PM
|
0
|
0
|
1386
|
|
POST
|
I too have noticed this. Anyone have any suggestions?
... View more
03-15-2019
09:28 AM
|
1
|
3
|
3807
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 05:39 PM | |
| 1 | 07-30-2024 09:05 AM | |
| 1 | 07-08-2024 05:32 PM | |
| 1 | 03-20-2024 10:27 AM | |
| 6 | 03-13-2024 03:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-12-2025
11:02 AM
|