|
POST
|
See the It's Not Personal blog series, the first part of which explains why personal geodatabases aren’t supported in ArcGIS Pro. Part 1 – quick summary It’s Not Personal, is the first blog in this blog series and explains why personal geodatabases aren’t supported in ArcGIS Pro. Microsoft has deprecated support for the Microsoft Jet Database Engine 4.0 libraries and considers the Data Access Objects (DAO) technology obsolete. This is the Microsoft technology that previously made support for personal geodatabases possible in ArcMap within ArcGIS Desktop. Also, there are no 64-bit versions of these libraries and ArcGIS Pro is a 64-bit application. Since the technology used to make personal geodatabases is no longer supported and Microsoft is advising against using these deprecated formats, there is no viable or supported path forward for offering personal geodatabases in ArcGIS Pro. Moving forward, our recommendation is to migrate your data from a personal geodatabase to either a file or mobile geodatabase.
... View more
08-08-2024
06:21 PM
|
0
|
2
|
10824
|
|
POST
|
Assuming you are adding a tool that creates a new dataset from the joined layer (e.g. Copy Features) to your model. You can uncheck the "Maintain fully qualified field names" environment setting in the tool element properties - Environment tab after you add it to the model.
... View more
08-07-2024
11:58 PM
|
0
|
0
|
445
|
|
POST
|
Are you definitely using a "String Hidden" / GPStringHidden and not an "Encrypted String" / GPEncryptedString parameter?
... View more
07-29-2024
12:52 AM
|
2
|
0
|
3770
|
|
POST
|
@JustinMuldowney wrote: ... I also had to edit your line 5 to zipRow[1] = zipCode. The way you had it basically just copied the full street address into the zip field. No, that would do exactly the same as what I wrote, it would return the original street address in the first element and the zip code in the second. e.g. zipRow = ["abc 12345", None] # Some dummy data
street = zipRow[0]
zipCode = street[-5:]
zipRow[1] = zipCode
print(zipRow == [street, zipCode])
True
... View more
07-22-2024
03:24 AM
|
0
|
0
|
2627
|
|
POST
|
You're reading in two fields and returning (updating) one.You need to pass the same number and order of fields back to updateRow, even if you're not actually changing all of them. with arcpy.da.UpdateCursor (gdbTable, (addressField, zipField)) as zipCursor:
for zipRow in zipCursor:
street = zipRow[0]
zipCode = street[-5:]
zipRow = [street, zipCode]
zipCursor.updateRow(zipRow)
... View more
07-20-2024
06:18 PM
|
0
|
1
|
2703
|
|
POST
|
Yes the "@staticmethod" decorator is definitely the problem. The reason you got a TypeError: 'geoprocessing messages object' object is not subscriptable exception is that staticmethods don't get passed a reference to the instance of the class (i.e. "self") So because you put a "self" argument in the definition of static method, when the method was called by ArcGIS, that first "self" argument got the parameters list, the 2nd "parameters" argument got the messages object and the "method" argument didn't get passed anything at all. And because you had "messages" default to "None", you didn't get a more obvious error earlier - something like TypeError: Tool.execute() missing 1 required positional argument: 'messages' Here's a simple tutorial: Tutorials Teacher - staticmethod decorator
... View more
07-10-2024
08:57 PM
|
0
|
0
|
1923
|
|
POST
|
For next time, I suggest you include all relevant code in your post to start with. You're more likely to get an answer at all/quicker.
... View more
07-10-2024
06:06 PM
|
0
|
0
|
1932
|
|
POST
|
I'd try changing "messages=None" to just "messages" as per all the official arcpy examples. Shouldn't make a difference, but ArcGIS does do some weird things with python toolboxes. And make sure you are running it as a tool (from the toolbox or in code via arcpy.ImportToolbox) and not treating it as a regular python class and trying to instantiate it yourself. I also see from your other post you were using an "@staticmethod" decorator for the execute method. Again, probably better to stick to the syntax shown by Esri in the examples (undecorated methods).
... View more
07-09-2024
05:17 PM
|
1
|
1
|
1956
|
|
POST
|
You've already shown how you define the "project_id" parameter. That wasn't what I asked to see. Please include the code where you use/access that parameter.
... View more
07-08-2024
10:17 PM
|
0
|
3
|
1987
|
|
POST
|
Can you include more of the code where you call "project_id = parameters[0].value". If it's in the execute method, you may have your arguments in the wrong order and are accessing the messages argument instead of the parameters argument.
... View more
07-03-2024
03:07 PM
|
1
|
5
|
2037
|
|
POST
|
@LV11 wrote: ... as i am zooming in they disappear ... Try rebuilding your pyramids - https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/build-pyramids.htm
... View more
06-14-2024
04:18 AM
|
0
|
0
|
3166
|
|
POST
|
Start by checking symbology to ensure that the raster RGB bands don't have a stretch applied.
... View more
06-13-2024
06:32 PM
|
1
|
3
|
3191
|
|
POST
|
You could just download and extract the package from pypi and then copy the "reportlab" directory (the one that contains __init__.py) to the same directory as your script. Or you could put it somewhere else and append the parent dir to sys.path in your script (i.e save it to somedrive:\\somepath\reportlab and then sys.path.append(r"somedrive:\\somepath").
... View more
06-01-2024
02:31 AM
|
0
|
0
|
632
|
|
POST
|
This community is specific to the ArcGIS software suite, we're not a general python forum. You're more likely to get some help if you post somewhere like Stack Overflow. But if you post on Stack Overflow, I recommend you read their "How do I ask a good question?" help page. You'll need to provide more information than just "encountering an issue". Instead explain exactly what the issue is, i.e is there an error, and if so, include the full error text? Or perhaps the actual result is different to your expected, so specify that. Currently you are just presenting a wall of code and asking someone to debug it blind.
... View more
05-18-2024
08:12 PM
|
5
|
0
|
1366
|
|
POST
|
I usually use something like: from pathlib import Path
tool_dir = Path(__file__).parent
# Or
import os.path
tool_dir = os.path.dirname(__file__) @CarlVricella wrote: ... This is a very standard thing in python (or really any development project) to have ancillary files in same directory and to access them based on their relative path... Yes, but... the working directory for a python module or script is never guaranteed to be the directory in which that module or script is located. This is only going to be the case when you run a script or import a module that is located in the same directory as the current working directory.
... View more
05-05-2024
07:21 PM
|
1
|
0
|
4717
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-24-2022 03:08 PM | |
| 1 | 07-30-2025 03:00 PM | |
| 1 | 06-10-2025 08:06 PM | |
| 5 | 05-20-2025 07:56 PM | |
| 1 | 05-04-2025 10:34 PM |