|
POST
|
It's worth noting..all the problematic HFLs have very complex mapPlex labeling properties set. Stacking, lead lines, weights, ect.
... View more
4 weeks ago
|
0
|
0
|
203
|
|
POST
|
I have called aprx.save() and looked at the applied def queries and they're all Ok. I also tried the suggested layout 'refresh' and still have the problem. Sometimes, the HFL shows up in the legend, because it's visible, but none of the labels or features draw. We have a similar GP tool we published, but that Pro project uses solely enterprise gdb data from our postgres instance..zero problems. This problematic project has Fgdb's referenced, HFLs and enterprise gdb sources..all are referenced.when published. But, we're barley at the publishing stage. It too doesn't draw the HFL points. Neither does the script run from Toolbox in Pro. Only sometimes it works, all the same input parameters. Bizzare
... View more
4 weeks ago
|
0
|
1
|
203
|
|
POST
|
The goal is to publish a geoprocessing tool that: Opens predefined Pro project Sets definition queries on hosted feature service layers (date ranges) Turns ON the hosted feat. service layers Zooms to a predefined bookmark Exports to JPG Pretty simple, right? Not so much. No matter what we do, the hosted feature service layer(s) aren't drawing. Sometimes they do draw, sometimes they don't; most often not. Can anyone spot an issue? import arcpy, os, time
from datetime import datetime
start_date = arcpy.GetParameterAsText(0) #1761486465000
end_date = arcpy.GetParameterAsText(1) #1762004877000
report_type = arcpy.GetParameterAsText(2) #"Cultural Resources"
project_area = arcpy.GetParameterAsText(3) #"Project 1"
output_map_filename = arcpy.GetParameterAsText(4) #"aTest"
output_map_file = arcpy.GetParameterAsText(5)
lyr_wildcard = "CR*" if report_type == "Cultural Resources" else "NR*"
start_date_str = datetime.fromtimestamp(start_date / 1000).strftime("%m/%d/%Y") if str(start_date).isdigit() else start_date
end_date_str = datetime.fromtimestamp(end_date / 1000).strftime("%m/%d/%Y") if str(end_date).isdigit() else end_date
arcpy.env.overwriteOutput = True
def find_dt_field(lyr_datasrc):
flds_to_ignore = ["created_date","last_edited_date"]
for fld in arcpy.ListFields(lyr_datasrc,"*_date","DateOnly"):
if not fld.name in flds_to_ignore:
return fld.name
break
aprx = arcpy.mp.ArcGISProject(r"\\nafiles-our.domain.com\Weekly Report Map GP Tool dev.aprx")
m = aprx.listMaps("weekrep")[0]
lyrs = [l for l in m.listLayers(lyr_wildcard) if not l.isGroupLayer]
for lyr in lyrs:
if lyr.supports("DEFINITIONQUERY"):
dt_fld = find_dt_field(lyr.dataSource)
sql_query = dt_fld + " >= date '" + start_date_str + "' AND " + dt_fld + " <= date '" + end_date_str + "'"
lyr.definitionQuery = sql_query
lyr.visible = True
lyt = aprx.listLayouts("Weekly")[0]
mf = lyt.listElements("MAPFRAME_ELEMENT", "LAYERS Map Frame")[0]
bookmark = m.listBookmarks(project_area)[0]
mf.zoomToBookmark(bookmark)
time.sleep(15) #let all the complex labels draw
output_file = os.path.join(arcpy.env.scratchFolder,output_map_filename)
pdf_export_format = arcpy.mp.CreateExportFormat("PDF",output_file)
pdf_export_format.georefInfo = False
pdf_export_format.resolution = 300
pdf_export_format.imageCompressionQuality = 100
arcpy.SetParameterAsText(5, lyt.export(pdf_export_format))
... View more
4 weeks ago
|
1
|
4
|
246
|
|
POST
|
ESRI: Please weigh-in here... why does Date Only display correctly on the S123 website, but incorrectly on the feature report? S123 Connect 3.24.30 XLS Form Feature service (Enterprise 11.5) Feat. service attribute table in Pro 3.5.3 Sample individual report template (Generated by S123 website) Resulting feature report PDF shows 10/22/2025 and NOT 10/23/2025 like it should. The fix! Just add utcOffset to the feature report, like so: The resulting PDF now prints 10/23/2025 like it should. This is throwing a major wrench in the engine.
... View more
10-31-2025
06:53 AM
|
1
|
0
|
102
|
|
POST
|
unfortunately, that doesn't work. It then thinks both #noncompliance and #noncompliance_photos are unclosed.
... View more
10-28-2025
04:22 PM
|
0
|
0
|
230
|
|
POST
|
I have this at the top, so that the entire section can be skipped if no photos exist. ${#noncompliance}${if (noncompliance_photos | getValue:"count")>0} But I guess, that starts the noncompliance_photos parser?
... View more
10-28-2025
01:48 PM
|
0
|
0
|
250
|
|
POST
|
I have a nested repeat of noncompliance and noncompliance_photos. ${#noncompliance} $#{noncompliance_photos} ${/} ${/} In a feature report template, how do I use the $feature keywork to get the position of each record? ${#noncompliance}${if (noncompliance_photos | getValue:"count")>0} Non-compliance Number: ${$feature | getValue: "position"} Photo Number: ${$feature | getValue: "position"} ${/}${/} The above only gets the position of the inner-most repeat, not the parent repeat. Any help with this?
... View more
10-28-2025
01:01 PM
|
0
|
6
|
279
|
|
POST
|
Same experience here with dateOnly field. It shows 10/21/2025 in the feature service (Survey123 website data tab), but when printed to a feature report ${monitoring_date | format:"MM/DD/YYYY"} it will be 10/20/2025. default calculation is today() in Survey123 connect. I recently changed that to now(), maybe that will make a difference? Did you ever get this solved?
... View more
10-22-2025
06:21 AM
|
0
|
2
|
134
|
|
POST
|
I'm filtering a repeat in a report template like so, works great. ${#issues | where:"issue_resolved='Yes'"} ${rpt_issue_info_resolved} ${/} Is there a way to add a condition to that filtered repeat, that depends on the count of the filtered records? Something like this: ${if (issues | where:"issue_resolved='No'" | getValue: "count") > 0} ${#issues} ${rpt_issue_info_unresolved} ${/}${/} I keep getting invalid expression... thanks!
... View more
10-17-2025
06:15 AM
|
0
|
1
|
125
|
|
POST
|
The AttachmentsCreated feature service webhook fires reliably, but I discovered Editor Tracking on the SDE geodatabase attachment table has to be enabled in order for the attachments:{adds:[]} JSON object returned from /extractChanges to be populated with the attachment info. But ONLY in an online workflow. If the field maps app is used offline, then the feature (with attachment) is synced, the webhook fires, but attachments:{adds:[]} is empty. Anyone else experience this? We're using ArcGIS Enterprise 11.4
... View more
03-22-2025
07:25 AM
|
0
|
0
|
303
|
|
POST
|
Why can't I retrieve any attachments when using an attribute rule, Insert trigger on a layer that has attachments enabled? This is an Enterprise Geodatabase that's published to Enterprise 11.4 as a referenced feature service. Both methods below fail to retrieve the attachment on the photo_point layer. Count(Attachments($feature))
//always reports 0
var sql = Concatenate(["(rel_globalid = '",$feature.globalid,"')"]);
var photoTableFeatSet = Filter(FeatureSetByName($datastore,'dbname.dbo.photo_point__ATTACH',['rel_globalid','att_name'],false),sql);
Count(photoTableFeatSet)
//always reports 0 I even setup a feature service webhook on photo_point layer, listening for 'AttachmentsCreated', which successfully fires a powerAutomate flow. But, inside the flow, calling /extractChanges, with the below query params {
"token": "validToken",
"dataFormat": "json",
"layers": "[5]",
"returnAttachments": "true",
"returnAttachmentsDataByUrl": "true",
"f": "json",
"serverGens": "1742307850054,1742307850055"
} then the returned change "attachments" value always is this: "attachments": {
"adds": [],
"updates": [],
"deleteIds": []
} what is happening? All I want to do is retrieve attachments on a feature that is inserted into a layer. Either by attribute rule or feature service webhook, I don't care!
... View more
03-18-2025
11:06 AM
|
0
|
1
|
354
|
|
POST
|
My only advice is to migrate both FsLogix profile containers AND GIS file share to Azure NetApp files and stop fussing with Azure Files (all storage/transaction tiers). We have 1 Azure NetApp 3TB capacity pool (premium tier) that's used for /profile and /gis shares and have had zero issues since my above thread reply. We opted for manual throughput, so that we could favor the /gis volume and assign it 132 MiB/Sec. The profiles are a bit slow to sign-out due to the throughput bottleneck, but we just advised users to sign-out of AVD, then minimize the AVD session and go about their business on the local PC. FsLogix eventually completes all communication with the profile container in netapp and signs-out w/out any issues. We started using this CPU SKU: Standard NC16as T4 v3, and we're able to comfortably fit 4 pooled (multi-session) users on the same VM. I actually think we could increase that to 5, maybe 6... and all of them are using Pro. It's pretty amazing.
... View more
02-18-2025
11:55 AM
|
1
|
0
|
3082
|
|
POST
|
Thanks David. Yes, Count(FeatureSetByName) returns a different number depending on replica sync, vs. inserting a feature using Pro. VERY confusing and not documented at all (at least from what I could find). This arcade script is already bloated at 500 lines. Could be trimmed down if I take some more time, but complex. I really see no other alternative to firing a script by insert trigger. Maybe a feature service webhook would be more reliable. Better yet, that webhook calls powerAutomate flow, that invokes an Azure python runbook...
... View more
10-24-2024
12:29 PM
|
0
|
0
|
475
|
|
POST
|
We have a fairly complex Arcade script that executes on Enterprise Geodatabase feature class Insert via a sync from an offline area in the field maps app. If we query the feature class using Filter(FeatureSetByName()), the returned feat_set does not contain $feature that triggered the attribute rule. var calcFeatId = -99;
var sqlexpression = "feat_id = @calcFeatId"
var feat_set = Filter(FeatureSetByName($datastore,'mydb.dbo.pt_layer',['globalid'],false),sqlexpression);
return {
'attributes':{ //values to calculate on $feature
'feat_id': calcFeatId
}
}; Is this expected behavior? Further, what if that same attribute rule modifies attribute values of $feature. Would the above query include $feature in the filtered featureSet?
... View more
10-24-2024
11:18 AM
|
0
|
2
|
511
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 10-31-2025 06:53 AM | |
| 1 | 02-06-2019 06:41 AM | |
| 1 | 02-18-2025 11:55 AM | |
| 1 | 05-14-2024 10:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|