|
POST
|
I'm not sure what you mean. Are you referring to having multiple imports or creating multiple function defs? Because both of those are normal (encouraged) practices. Could you give a pseudo code example?
... View more
10-15-2021
09:05 AM
|
1
|
0
|
8110
|
|
POST
|
Are you importing the time_reformat value into a date field in Esri? In my experience, you can use the raw datetime object in a date field, no need to reformat it.
... View more
10-13-2021
07:44 AM
|
0
|
0
|
7120
|
|
BLOG
|
Place overlapping labels—ArcGIS Pro | Documentation That doesn't show all the labels? Again, if the contents of the labels that do appear is correct, the issue is likely with your labeling scheme. You could contact Esri support.
... View more
10-08-2021
04:03 PM
|
0
|
0
|
14482
|
|
POST
|
You may need to find an Outlook email administrator that supports your organization to troubleshoot a server error. Our organization has a separate database that stores the email addresses of our normal users with user name so I just query that database with the connected user names from ArcGIS and send the email to every address that was actually returned. Since there are no org domain users like "SDE" or "DBO", there are no email addresses returned from the query. How are you getting your email addresses?
... View more
10-08-2021
01:51 PM
|
1
|
0
|
4059
|
|
POST
|
This should work. See this sample app that creates a point, line, and polygon graphic. Just create the geometry and add it to the GraphicsLayer the SketchViewModel is using. Add Graphics to a SceneView | ArcGIS API for JavaScript 4.21 | ArcGIS Developer
... View more
10-08-2021
01:36 PM
|
0
|
1
|
4463
|
|
BLOG
|
@RyanOk This may be a labeling issue in ArcMap. Try the option to place overlapping labels and troubleshoot the issue from there. Is the content of all the labels correct? If so, your script is fine and the issue is with the dynamic labeling options.
... View more
10-08-2021
01:31 PM
|
0
|
0
|
14503
|
|
POST
|
If it's just a graphic, you can use the Sketch Widdget. Sketch | ArcGIS API for JavaScript 4.21 | ArcGIS Developer
... View more
10-08-2021
08:52 AM
|
0
|
0
|
1811
|
|
POST
|
I would turn off the loading icon when the query finishes; successfully or not. Use the finally() method of the promise to do this. You should handle the result of the query separately with some kind of indication/message to the user about the state of the app. If the query was successful but returned no records, just make that clear to the user. If an error was encountered, again, make that clear to the user in a way that they can effectively communicate it to you for debugging.
... View more
10-08-2021
08:41 AM
|
1
|
0
|
1253
|
|
POST
|
The highlight method of FeatureLayerView will keep highlighting additional features each time it's called. To remove the highlight, you can use the remove() method of the "highlight handler" that's returned from calling highlight(). You can see this in action with this sample app. Just comment line 86 to see it highlight more features as you click.
... View more
10-08-2021
07:52 AM
|
0
|
0
|
986
|
|
POST
|
Not sure exactly what that error might be referring to. Just for another thing to try, here's the email function I built based on examples in the Python docs def sendEmail(subject="", body_content="", to=[], cc=[], bcc=[], from_addr="[email protected]"):
"""Send a plain text email.
Required imports:
from email.message import EmailMessage # for a text/plain email message
import smtplib # for sending email
:param str subject: Subject line of email.
:param str body_content: Main message in the body of the email.
:param list to: A list of email addresses as strings for sending the email to.
:param list cc: A list of email addresses as strings for CC'ing the email.
:param list bcc: A list of email addresses as strings for BCC'ing the email.
:param str from_addr: The email address from which to send the email.
:return: All email addresses that received the email (to, cc, bcc).
:rtype: Dictionary
"""
from email.message import EmailMessage
import smtplib
# Validate email recipient args
for recipient in [to, cc, bcc]:
if not isinstance(recipient, list):
raise TypeError(f"Recipients (to, cc, bcc) must each be a list of strings; not {type(recipient)}")
# Create email message object and content.
msg = EmailMessage()
msg.set_content(body_content)
# Set recipients
msg["Subject"] = subject
msg["From"] = from_addr
msg["To"] = ", ".join(to)
msg["Cc"] = ", ".join(cc)
msg["Bcc"] = ", ".join(bcc)
# Send the message via our own SMTP server.
with smtplib.SMTP("mymailserver.mydomain.suffix") as smtp:
smtp.send_message(msg)
print("sendEmail() successful")
return {"to": to, "cc": cc, "bcc": bcc} Like @DavidPike mentioned, there's likely something your email server isn't happy with and the GeoNet community probably can't help much with that.
... View more
10-04-2021
01:39 PM
|
0
|
0
|
4113
|
|
POST
|
I'm assuming this is Arcade? The return statement will exit the function immediately, which is why it only returns the first value. You would need to build a multiline string within your for loop and then return it after the loop has finished. However, you can use the Concatenate() function to put everything together with a NewLine and you don't even need a for loop. return Concatenate(links, TextFormatting.NewLine)
... View more
09-29-2021
12:13 PM
|
3
|
1
|
3851
|
|
POST
|
Thank you very much for the information @ShanaBritt. I recreated the locator as you described. The results were better than what I had before but still not quite there. Addresses like "345 W Some Bl #A-1" did not match. The dash is part of our official "full address" so that's the most likely way they will be coming in. We previously solved this (in ArcMap) by making a composite locator with to subaddress locators: one with building and one with unit. I expect creating a similar composite locator in ArcGIS Pro will also achieve the same results. Do you have any other suggestions to try before I do that? I'm looking forward to the subaddress suggestion enhancements in 2.9. We're on ArcGIS Pro 2.8 and server 10.8.1 right now. I work for a local government and so our technology don't come quickly so we might not be a good candidate for beta testing but I'll keep it in mind.
... View more
09-28-2021
04:04 PM
|
0
|
1
|
2695
|
|
POST
|
Export Attachments Toolbox - Esri Community I don't see where it would be making multiple folders. There should only be the one fileLocation folder with all the attachments. I altered the code slightly for ArcGIS Pro to make it easier for you to change the file name. Could you give a specific example of how you want the output files to be named and organized? import arcpy
import os
in_table = arcpy.GetParameterAsText(0)
out_dir = arcpy.GetParameterAsText(1)
with arcpy.da.SearchCursor(in_table, ['DATA', 'ATT_NAME', 'ATTACHMENTID']) as cursor:
for data, att_name, attachmentid in cursor:
file_name = f"ATT{attachmentid}_{att_name}"
file_path = os.path.join(out_dir, file_name)
open(file_path, 'wb').write(data.tobytes())
... View more
09-28-2021
07:42 AM
|
2
|
0
|
5241
|
|
POST
|
Our organization has point address data that can have any combination of address, building, and unit. Some examples are: Address Building Unit BuildingUnit FullAddress 345 W Some Bl 345 W Some Bl 345 W Some Bl A #A 345 W Some Bl #A 345 W Some Bl 1 #1 345 W Some Bl #1 345 W Some Bl A 1 #A-1 345 W Some Bl #A-1 I want to clarify that the "Address" field depicted above does have separate fields for house number, Prefix Direction, Street Name, Suffix Type, and, Full Street Name. I'm trying to interpret the locator role fields but I'm not quite sure if I'm configuring this correctly. I was able to use use several locators (with different fields for unit) in a composite locator to get the results I want but that seems overly complex and redundant. To further complicate matters, it would be ideal if the locator could match the address with or without some unit qualifier ("#" or "Bldg" or "suite" etc).
... View more
09-24-2021
02:13 PM
|
0
|
4
|
2953
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |