|
POST
|
Hi Sung, We've finished our research about this issue. Unfortunately, I determined that this is not an SDK issue after all. It's a deeper issue- we don't support reading and writing blob fields from ArcGIS Server-based feature services. (Technically this isn't true, but the only blob support is within annotation features; generic blob fields are not supported). You cannot read or write blob fields with the Pro user interface, with Python, or with the Pro SDK. Blob fields are supported in hosted feature services, in enterprise geodatabases, file geodatabases, and mobile geodatabases. Sorry- this probably isn't the answer you wanted to hear. --Rich
... View more
10-16-2020
01:28 PM
|
0
|
2
|
5339
|
|
POST
|
Tim, I haven't found a way to do this via the Pro SDK. We'll try to add support for this in a future ArcGIS Pro release. --Rich
... View more
10-03-2020
04:35 PM
|
0
|
1
|
2367
|
|
POST
|
This is going to sound a little random, but what happens if you try to get the TableDefinition from the table using Table.GetDefinition()? I'm talking about the table with the blob field that you are trying to update. Also, are you able to update a feature class in the same non-versioned feature service that contains a blob field? --Rich
... View more
09-30-2020
09:18 PM
|
0
|
1
|
5339
|
|
POST
|
Hi Sung, Your code looks fine. We'll take a look at this one alongside the annotation editing issue you already reported (we haven't reached any conclusions yet). Thanks, --Rich
... View more
09-20-2020
09:07 PM
|
0
|
3
|
5339
|
|
POST
|
Yes, that should work. Sorry, I didn't notice you were searching from the layer rather than the feature class. --Rich
... View more
09-20-2020
08:57 PM
|
0
|
1
|
2809
|
|
POST
|
Hi Barbara, By default, the FeatureClass.Search() method uses what is called a recycling cursor. Recycling cursors will reuse the same Feature object every time MoveNext is called. Obviously that isn't what you want here. Change this line: using (RowCursor rowCursor = featLayer.Search(spatialFilter)) To this line: using (RowCursor rowCursor = featLayer.Search(spatialFilter, false)) I hope this helps, --Rich
... View more
09-18-2020
10:49 AM
|
2
|
0
|
2809
|
|
POST
|
I've asked my colleagues who work on the Map APIs to assist. Sorry I couldn't help. --Rich
... View more
09-16-2020
09:43 AM
|
0
|
2
|
4416
|
|
POST
|
Sorry, Nadia. I work on the Pro SDK- this is well outside my area of expertise.
... View more
09-16-2020
09:24 AM
|
0
|
0
|
1767
|
|
POST
|
You can call Map.Redraw once, at the end of the process. Sorry for not stating this earlier. The Map APIs are not my area of speciality, so hopefully this will work. Also, you probably want to also walk through the StandAloneTable collection as well as Layers, but it makes sense to get the feature layer portion working first. --Rich
... View more
09-16-2020
07:23 AM
|
0
|
4
|
4416
|
|
POST
|
Thomas, Have you tried calling Map.Redraw(True) after your code above? --Rich
... View more
09-15-2020
08:47 PM
|
0
|
0
|
4416
|
|
POST
|
Thank, Sung. Let me try some experiments on my end and see what I get. --Rich
... View more
09-14-2020
05:23 PM
|
0
|
0
|
4121
|
|
POST
|
Hi Daniel, We ran a test here where we created 275,000 polylines in a file geodatabase. Using the old CreateRow method we saw it take about 10 minutes. Switching to insert cursors cut it down to 7 minutes. Not as dramatic a difference as seen with enterprise geodatabases, but still a significant improvement. We might be at the point where the best path forward is to log an issue with tech support. They can work with you to help put together a file geodatabase and code sample. Please point tech support to this thread to ensure the issue gets routed to me. Sorry I don't have any other good ideas to try. --Rich
... View more
09-14-2020
11:46 AM
|
0
|
0
|
1721
|
|
POST
|
Hi Sung, A few questions: Did this code work in the file geodatabase where you created the data? I'm a little confused by these two statements: I have copied that annotation feature class from the file geodatabase to a branch versioned SQL Server Enterprise geodatabase using arcpy.FeatureClassToFeatureClass_conversion(), and included a few custom fields (e.g. long, text) using arcpy.AddField_management(). I have published my non-versioned annotation feature class as a feature service. I think what you're saying is that the annotation feature class is added to a SQL Server enterprise geodatabase that uses branch versioning (presumably it's a utility network), but is itself not branch versioned. When you publish the annotation feature class to a feature service, is this a separate feature service? Or are you attempting to put this in the same feature service as the utility network? Thanks, --Rich
... View more
09-13-2020
11:04 AM
|
0
|
2
|
4121
|
|
POST
|
Hi Pedro, Unfortunately, it looks like that value is not available through the Pro SDK. We will have to add this functionality in a future release. I'm not actually sure what the subnetworkLabelFieldName property is on the DomainNetwork in arcpy. In hierarchical domain networks, each feature can belong to multiple subnetworks. Because of this, the name of the subnetwork field needs to be accessible at the Tier level, not the domain network level. --Rich
... View more
09-09-2020
08:32 PM
|
0
|
0
|
1231
|
|
POST
|
That's weird. I repeated my tests today, and am seeing about 3.5x improvement of InsertCursor in a callback vs. EditOperation.Create with a file geodatabase feature class. We're looking into some more ideas and will get back to you soon. --Rich
... View more
09-08-2020
04:10 PM
|
0
|
0
|
1721
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-13-2024 11:22 AM | |
| 2 | 01-29-2026 09:34 AM | |
| 2 | 01-28-2026 08:20 AM | |
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|