POST
|
Update: As it turns out, I had a bad install of ArcGIS Pro. An uninstall/install solved both the missing packages in the package manager on this post (https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-pro-3-1-0-arcgis-package-does-not-show-in/m-p/1266840#M8488) The code above now works too! which is great but just wish I would have realized something wasn't right on the install earlier.
... View more
03-11-2023
08:15 AM
|
0
|
0
|
2669
|
POST
|
Ok, yes I had a bad install. The uninstall/reinstall now show the arcgis and arcpy packages and the code error now works as well. I wish I would have figured this out days ago. Thanks!
... View more
03-11-2023
08:06 AM
|
0
|
0
|
2517
|
POST
|
Thanks Dan. I just searched 'Add Packages' there is no arcgis or even arcpy showing up as an option. Seems odd? I know I didn't have to add them in on the 2.9 install. Do you think this is causing the code above to throw an error or just another issue. thanks, Kathy
... View more
03-10-2023
06:57 PM
|
0
|
0
|
2558
|
POST
|
Hello, I recently installed ArcGIS Pro 3.1.0 and in the Package Manager I do not see the argis package? I wanted to see what version is installed and I'm not seeing it (screenshot attached)? I've searched and nothing shows in the search? I'm still very much learning on the API but this seemed odd. In looking at another computer with ArcGIS Pro 2.9.5 in the installed packages list I see arcgis 1.9.1 I'm currently having an issue with the following statement in a python script tool/notebook and I'm wondering if the issues are related? lyr.edit_features(updates = df.spatial.to_featureset()) I had also tried to clone the conda environment using the package manager and command line both ways fail. Thanks in advance! Kathy
... View more
03-10-2023
05:22 PM
|
0
|
6
|
2587
|
POST
|
Hi @jcarlson , I was so excited last year to see your posts and have been using the code examples to query and edit an AGOL item to update the polyline length. Or I was until recently and now the code is throwing an error. After too many hours today, I upgraded my ArcGIS Pro version to the latest which fixed one error, but now I'm onto to a new one. I'm using ArcGIS Pro 3.1.0 and default conda environment, but I tried an older version of ArcGIS Pro 2.9.5 with arcgis 1.9.1 and the same code works there. lyr = gis.content.get('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx').layers[2]
df = lyr.query(where = "LENGTH_NM IS NULL",out_sr = 26931, as_df=True)
gsa = GeoSeriesAccessor(df['SHAPE'])
df['LENGTH_NM'] = gsa.get_length('PLANAR', 'NAUTICALMILES')
df
lyr.edit_features(updates = df.spatial.to_featureset()) This code does calculate the length of the polyline but fails on the edit statement. Would you have any ideas why? It worked last year and still works on the Pro 2.9.5 environment. It was amazing to be able to calculate length in the other projection. Did the edit_features syntax change in the latest version? When the above runs in a notebook and a python script tool within ArcGIS Pro, the same error results "ValueError: StringArray requires a sequence of strings or pandas.NA" I've attached a screenshot. Thanks in advance!, Kathy
... View more
03-07-2023
04:17 PM
|
0
|
2
|
2721
|
IDEA
|
Hi @BrentPierce, In one of your posts above you write "It's a little too early to speculate when this will be available, but recently versions of Windows11 which support the Windows Subsystem for Android, are generally available outside of the insider program, we are in a pretty good spot. " Am I understanding correctly that if a person had a tablet with Windows 11 and that supports the 'Windows Subsystem for Android' folks could install Field Maps for Android and be able to use outside of the Early Adopter Program? Thanks for the clarification, Kathy
... View more
03-03-2023
12:32 PM
|
0
|
0
|
1518
|
POST
|
BUG Logged Esri tech support was able to reproduce the issue where the arcade expression fails in the AGOL webmap settings generated offline map but the expression works in an offline map generated from the device. In our case we are using iOS, so I'm not sure of other systems. BUG-000155887 has the details, so hopefully the developers can fix soon as for our organization we prefer to have the pre-planned offline maps available for download rather than having the surveyor generate their own area. Also lesson learned, if an expression calculates online and then doesn't in the offline map try both the AGOL generated offline maps and the device because there are differences on how these are generated. Thanks
... View more
03-02-2023
08:49 AM
|
0
|
1
|
3990
|
POST
|
Hi @Chess , I am running into the similar http messages trying to clone the default python environment ArcGIS Pro 3.0. I've tried both the package manager and also command line instructions similar to the above but listed below. Both are throwing the same http errors. Did you get this resolved/find a work around? How To: Clone a Python environment with the Python Command Prompt (esri.com) Thanks in advance, Kathy
... View more
03-01-2023
10:06 AM
|
0
|
0
|
3385
|
POST
|
Thanks @TonghuiMing, Currently the imagery layer works in WAB with the time-slider widget so is it on purpose that it won't work in the timeline widget in Experience Builder? The data is temporal and time-enabled. Hopefully I am missing something but I'm using WAB as a work around.
... View more
02-24-2023
08:25 AM
|
1
|
1
|
2184
|
POST
|
Update: There seems to be a difference between how the AGOL web map settings generate an offline map and handles the arcade calculated expressions versus Field Maps device (generate an offline area). I have two similar arcade expressions that fail to calculate in the offline map generated in the web map settings, but works in the offline map created on the device. Its my preference to generate the offline map extents using the AGOL web maps settings for the biologists, its one less step on their end. Please review the difference so the expressions work using both methods. I would be happy to add you to an AGOL group for testing. Thanks, Kathy
... View more
02-20-2023
12:35 PM
|
0
|
2
|
4043
|
POST
|
Hello, I am struggling trying to figure out why this calculation is failing in the offline downloaded map in field maps. It is using the GetUser, but this does seem to be working fine in the offline map. I am trying to generate a sample id based on the username initials (initials are from a table in the map with 2 fields for initials and other username). The next part of the expression queries the feature layer for the records submitted by that user for the max record and adds 1. Below is the expression that is failing in the offline map, it works in the online map. When I look in the Field Maps troubleshooting, I see this message [AR CADE] Expression failed to evaluate: ....Error: Domain=com.esri.arcgis.runtime.error Code="Arcade expression is invalid. "Userinfo={NSLocalizedFailureReason= Arcade evaluation error. Evaluation_error_code::unexpected_null_value Line:11,.....} I would really appreciate any insight. So frustrating to see it work on the online map (on the device) but not the offline. @Anonymous User Update: Our workflow is to create an offline map using the AGOL web map settings to create an offline area. In this offline map the expression fails to calculate. I also created an offline map on the device in Field Maps, what's interesting is this expression calculates, but not a 100%. It adds the user initials correctly but doesn't find the max 'CID' attribute value to increment. Are the features truncated to the offline map view, so not all attribute records are saved to the device? I have opened a tech support case as another attempt to get clarification. Kathy var user = GetUser(FeatureSetByName($map, "Herring Samples:")).username
Console(user);
var sql1 = "username = '" + user + "'";
Console(sql1)
var tbl_ini = FeatureSetByName($map,"tbl AGOLuser initials");
var user_ini = Filter(tbl_ini, sql1);
var ini = First(user_ini)['initial'];
Console(ini);
var sql2 = "Creator = '" + user + "'";
var sample = FeatureSetByName($map,"Herring Samples:", ['Creator','CID'], false)
var user_rec = Filter(sample, sql2);
if (!IsEmpty(user_rec)){
var un_id = max(user_rec, 'CID')
Console(un_id)
un_id = un_id + 1
Console(un_id)
if (Count(Text(un_id)) < 2){
var pad = Concatenate(Text(0), Text(un_id))
return Concatenate(ini,Text(0), Text(un_id))
} else {
return Concatenate(ini, Text(un_id))
}
} else {
return Concatenate(ini,Text(01))
} This calculated expression is working in the offline map and parsing the user initials (first/last name) from the Get User, but ideally we would like the middle initial to remove potential duplicates. var user = GetUser(FeatureSetByName($map, "Herring Samples:")).username
Console(user);
var sql1 = "username = '" + user + "'";
Console(sql1)
var sampler = (Split(user,'.'))
var sampler_id = Upper(Concatenate(Left(sampler[0],1),Left(sampler[1],1)))
var sql2 = "Creator = '" + user + "'";
var sample = FeatureSetByName($map,"Herring Samples:", ['Creator','CID'], false)
var user_rec = Filter(sample, sql2);
if (user_rec != null){
var un_id = max(user_rec, 'CID')
Console(un_id)
un_id = un_id + 1
Console(un_id)
if (Count(Text(un_id)) < 2){
return Concatenate(sampler_id,Text(0), Text(un_id))
} else {
return Concatenate(sampler_id, Text(un_id))
}
} else {
return Concatenate(sampler_id,Text(01))
}
... View more
02-17-2023
09:33 AM
|
0
|
6
|
4130
|
POST
|
Hello, I've been embracing adding in calculated expressions for fields on a few of the layers included in the Field Maps form. Do calculated expressions consume the app resources, will Field Maps freeze up or slow down with these field calculations? We work in an offline capacity including using for aerial surveys and can't afford time/money wise to see the app lose functionality/reliability because of the calculated expressions. Thanks, Kathy
... View more
02-16-2023
11:31 AM
|
0
|
0
|
355
|
POST
|
Hello, Is it somehow possible to format the text in the Field Maps form description properties to be bold or underlined? I added a few html tags, but that didn't work. Wanted to check if others have a solution. Thanks!, Kathy
... View more
02-15-2023
09:32 PM
|
0
|
0
|
380
|
POST
|
Hi, I would also like to have a sequential ID offline, but it can be related to the Field Maps user and not the entire dataset. Did you figure out a work around for this? Thanks!, Kathy
... View more
02-10-2023
06:24 PM
|
0
|
0
|
878
|
POST
|
Hi! @Anonymous User , Any updates on the GetUser() working offline in Field Maps? Thanks, Kathy
... View more
02-10-2023
05:58 PM
|
0
|
0
|
1362
|
Title | Kudos | Posted |
---|---|---|
1 | 11-16-2022 10:06 AM | |
4 | 02-21-2024 03:48 PM | |
1 | 04-19-2023 03:09 PM | |
1 | 08-19-2024 05:11 PM | |
1 | 08-07-2024 11:47 AM |
Online Status |
Offline
|
Date Last Visited |
Wednesday
|