|
POST
|
Try opening up the .sddraft file that you created. It is an XML file and it might have a section regarding linear referencing that you can edit using Python. Also, I think you can access the .sddraft that is created while you are publishing through ArcGIS Pro. It is probably in your user folder and you might have to check for it at the right step in the publishing process. I went through this whole process very slowly in ArcMap. I used Fiddler to look at the network traffic for the REST API calls that are made to understand the process and I also saved out the .sddraft file from ArcMap during the publishing process. Once I understood all the steps and changes that needed to be made to the .sddraft file, I was able to automate it all in Python. This was about 4 years ago.
... View more
05-18-2021
11:47 AM
|
0
|
1
|
1892
|
|
POST
|
I worked with Esri Technical Support and it finally started working after I made some schema changes as part of development and republished the map service. I got errors in WAB saying it could not load certain layers, but the basemaps started working all the time. When I finished fixing the web map for the schema changes, it still worked. It's not clear what caused the issue. Maybe it was duplicate layer IDs. Maybe it was the web map config. The issue never occurred in the Portal for ArcGIS Map Viewer. Hopefully, this helps someone else. The cause doesn't seem to be the basemaps. The basemaps seem to be impacted by something in the map service or web map.
... View more
05-18-2021
11:36 AM
|
0
|
0
|
2654
|
|
POST
|
I have been using Wing IDE for over 5 years after it was recommended by Esri developers. I never had any issues with Python 2.7 and ArcMap for years. Recently, I started writing a script for ArcGIS Pro in Python 3.7.9 and I started having problems. The following statement will crash the interpreter on a somewhat random basis: from arcgis.gis import GIS I can see it loading the modules for the ArcGIS API for Python, around 1700 of them. It will crash at varying points in the load. It will take 1 to 4 attempts to get it to succeed and it seems to be moody. Sometimes it works well, sometimes good, and other times badly. No matter what, it always works eventually. Anyone have any experience with this? My machine has plenty of resources.
... View more
05-13-2021
09:48 AM
|
0
|
4
|
1752
|
|
IDEA
|
I'm in the office this week and I am still seeing focus stealing when connected directly to my machine. This time it was with Wing IDE. I haven't found an app it doesn't steal focus from. For example, it just stole it twice from Google Chrome after launching ArcGIS Pro and trying to finish this sentence.
... View more
05-13-2021
09:01 AM
|
0
|
0
|
3101
|
|
POST
|
I am developing a new Web AppBuilder app and at the very beginning I wanted to leverage vector tile layers in the basemaps and the Basemap Gallery widget. As I remember, this is not supported but I tried anyways. I was able to get it to work just fine by editing the web map JSON and the Basemap Gallery widget config. I just had to use the right attributes. For example, I added this as one of the basemap layers in my web map: {
"opacity": 1,
"title": "Topography - Small Scales",
"maxScale": 12767.488095,
"visibility": true,
"styleUrl": "https://www.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",
"layerType": "VectorTileLayer",
"minScale": 295828763.7957775,
"type": "VectorTileLayer",
"id": "TopographySmallScales"
} Originally, I had no problems whatsoever, but after a few months I started seeing an issue. If I leave the web app open overnight, the vector tiles disappear. Also, if I clear the cache, the first time I load the app, it doesn't even request the tiles from the server. If I refresh the app, on the second load the tiles appear just fine. I really want to use vector tile layers even if it isn't supported. Does anyone have any idea why the vector tiles disappear overnight or just don't show up on load until it has been loaded recently for a second time. After more research, the app does download the vector tile style files on the first attempt, but it does not send any requests for the protocol buffers until the second attempt.
... View more
05-05-2021
11:36 AM
|
0
|
1
|
2741
|
|
IDEA
|
Definitely no orange. I've seen that on Teams, but not ArcGIS Pro.
... View more
05-04-2021
04:07 PM
|
0
|
0
|
3286
|
|
IDEA
|
Right now, I just tried Excel. When ArcGIS Pro gets to its start screen, it reactivates.
... View more
05-04-2021
04:05 PM
|
0
|
0
|
3290
|
|
IDEA
|
Windows 10 Enterprise and ArcGIS Pro 2.7.3. I have noticed it in one other application called WinCan, but I use it much less. It doesn't happen in any other applications on my computer. I am using Citrix to remote into my machine. It takes much longer to open up the symbology pane through Citrix versus in the office. Also, our WAB app is much snappier in the office versus through Citrix.
... View more
05-04-2021
03:56 PM
|
0
|
0
|
3297
|
|
POST
|
My recommendation would be to use Fiddler or some other network traffic logger. I did something similar for ArcMap and a hosted feature service in ArcGIS Online. I suspect there is a REST call to create the item by ArcGIS Pro. If not, look in the SD draft XML.
... View more
05-04-2021
03:50 PM
|
1
|
0
|
8223
|
|
IDEA
|
Well, I'm not versed in the proper terminology for this, but I hate it when I open ArcGIS Pro and start it loading up and then I switch to another app to do work in the mean time. Routinely, it will reactivate ArcGIS Pro, what seems like multiple times. If I switch from ArcGIS Pro to another app while it is loading, it should keep loading in the background and not reactivate itself.
... View more
05-04-2021
03:36 PM
|
25
|
41
|
9072
|
|
POST
|
Hi Mike, Yes, last night I determined that the error was loosely coupled with the Delete call. If I skipped the Delete call on my query table and just ignored cleaning it up, a later call to Delete in the script fails with the same error. The later call involves an in memory feature class that has nothing to do with Oracle at all. It is like the issue is floating around somewhere waiting to come out when Delete is called. It feels like a bug. I did simplify the code down tremendously and I still get the issue: import arcpy
arcpy.management.MakeQueryLayer(
"WAM_PROD.sde",
"PMQueryTable",
"SELECT * FROM sa_pm_master",
oid_fields="PM_MASTER_NO"
)
arcpy.management.Delete("PMQueryTable") I still get the exact same error and that is the simplest SQL query I can make. There might be something I am missing here, but this seems buggy. At the least, it would be nice if the error did not show up on an unrelated in memory feature class. Still, I think it has something to do with arcpy's management of these in memory objects. Also, it might be somehow related to user permissions. This user has minimal permissions. I did find that if I Describe the query table after deleting it, it is gone. I can delete it a second time without error. I might just catch and ignore the exception.
... View more
04-30-2021
12:25 PM
|
0
|
3
|
1836
|
|
POST
|
I'm using arcpy.management.MakeQueryLayer to run a SQL statement in an Oracle database and return a table. It works successfully and I am able to acces the data I need through a SearchCursor, but I feel like I should delete the query table when I am done. If I were in ArcGIS Pro, it would create a table view, so I feel like I should clean up after myself. I tried using arcpy.management.Delete on the name of the query table that I passed to MakeQueryLayer, but it gives me the following error: arcgisscripting.ExecuteError: Underlying DBMS error[ORA-00911: invalid character ORA-00911: invalid character] Underlying DBMS error[ORA-00911: invalid character ORA-00911: invalid character] This seems kind of strange to me why Oracle would be involved. I did try saving the result of MakeQueryLayer and then using del on the arcpy._mp.Table object. It did delete the object and when I try to read the query layer again using its name, arcpy no longer recognizes it. Still, I'm wondering if this is the correct approach.
... View more
04-29-2021
03:17 PM
|
0
|
5
|
1890
|
|
POST
|
After a lot of troubleshooting, I was able to determine that if I comment out a function call to arcpy.management.SelectLayerByLocation, the issue went away. So, I made a simple test script where I just created a feature layer and performed a selection by location and replicated it very clearly. It turns out that the problem did not occur on any other machine. So, we recreated the VM and the problem went away. In the end, this had nothing to do with sys.exit. It was just the last line in the script. The issue was that this one function call would cause the script not to exit only on this machine and only from the command prompt or as a scheduled task. I hope this helps someone else.
... View more
03-25-2021
10:43 AM
|
1
|
0
|
2820
|
|
IDEA
|
I want the ability to refresh the domains in the domains tab. Right now, I am building a new file geodatabase from scratch and I am importing domains using the Table to Domain tool. However, when I run the tool, the domains do not refresh automatically. There is no refresh button on the ribbon or a refresh command if you right-click on the view. I have to close the domains tab completely and reopen it from the Catalog pane.
... View more
03-12-2021
12:46 PM
|
4
|
0
|
2309
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2025 03:29 PM | |
| 1 | 11-30-2022 09:47 AM | |
| 2 | 03-04-2022 01:16 PM | |
| 1 | 04-10-2024 05:21 PM | |
| 1 | 08-23-2023 10:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|