|
POST
|
Have you tried just configuring with default popup? Would at least tell you if it was related to haveing an Arcade expression as part of it. R_
... View more
04-20-2023
10:55 AM
|
0
|
7
|
16777
|
|
POST
|
The first time you run it, should look like this: RhettZufelt_0-1682011038650.png Then, if you make any change to the data and run again: RhettZufelt_1-1682011083530.png and get an email like: RhettZufelt_2-1682011170544.png If running as a scheduled task, you don't see IDLE, so will just get the email when something chaged. I am able to run this from any computer that I have Pro installed on (since it installs python3 and the requests module). But, doesn't even need Pro, just python3 and request module. It looks like you are having an issue reading the json config file. Is your init.json file in the same directory as the DetectChanges.py file? Is it sensitive, or can you share the text content of your init.json file to help troubleshoot? (Can direct message me if you like) R_
... View more
04-20-2023
10:36 AM
|
0
|
2
|
4351
|
|
POST
|
You can test it manually first to make sure it is working correctly, then task scheduler it. Once you have ran it once, it will create the layergen file for you. Then, to test it, you can have your crew submit another test survey, then just run the script in IDLE again. R_ PS, unlike the power automate connector, this will notify you when the HFS has changed (editing in map viewer, Pro, etc) wheras the Survey 123 connector only detects changes made with Survey 123.
... View more
04-19-2023
02:40 PM
|
0
|
1
|
4361
|
|
POST
|
I see what you mean. Though, I can't say that it is passing False, as it doesn't seem to pass anything. So, even though it reports it as value of 0, it will not even pass it to field calculator to test for null,zero, etc.. However, it seems that it WILL pass a 0 as a string: RhettZufelt_0-1681939198730.png Which then calculates back to a double field just fine, and will automatically cast it to double, even when it is 0. R_
... View more
04-19-2023
02:23 PM
|
1
|
1
|
4106
|
|
POST
|
I am also in 2.9.3 as 2.9.4 on broke a bunch of the popup/attachment stuff. I have tested with the above config using both a text input field and a double input field. As long as I set it up in the Get Field Value tool as Double, with Null Value 0, it works as expected. With 2 selected: RhettZufelt_0-1681933869753.png With 0 selected: RhettZufelt_1-1681933888253.png However, I don't see the dropdown option for Null Value as your image has. Perhaps you have a domain on that field or subtype or something? R_
... View more
04-19-2023
12:52 PM
|
0
|
1
|
4115
|
|
POST
|
Putting 0 in the null value field works for me: RhettZufelt_0-1681933105876.png R_
... View more
04-19-2023
12:38 PM
|
0
|
1
|
4122
|
|
POST
|
If you follow the directions linked above, Step 1 of the script part is to download the script: RhettZufelt_0-1681930630698.png That zip file has the python script AND the init.json file. The init.json file is what needs to be modified with the blue items from the link above, the included script is what you run in python3. Then: RhettZufelt_1-1681930733165.pngYou need to run the script once at firsts, this will create the layergens_ms.json file, which captures the 'state' of the HFL at that time. Unlike PowerAutomate, this "script" won't detect when a change is made automatically, the python script has to run in order for it to "check" for changes. So, schedule the script to run as often as you want. (I had it run every minute when testing). When it runs, it will compare the state on AGOL to the state last captured in the layergens file and will report if any changes were made. Doesn't matter what you name the layergens_ms.json file, but, since I use this to detect change in more than one layer, I usually include the layer name so it is easier to keep track of. (ex. "layergens": "layergens_hydrants.json") So, the first time you run it, it creates the layergens file and will not notify you of any changes. After that, anytime it runs, it checks with the layergen to see if anything has changed, if so, it sends the email, and updates the layergen to include the recent changes so that same update doesn't trigger it again. R_
... View more
04-19-2023
12:12 PM
|
0
|
2
|
4374
|
|
POST
|
Your first var checks for InspectionReason being anything but "Condition Rating"....... then null. So, if InspectionReason == 'Maintenance Activity', inspection_status gets set to null. Then, when you construct the update, you set ConditionInspectionStatus = inspection_status (ie., null). I think adding the current value to the When statement should take care of it: // get the inspection status
var inspection_status= When(
$feature.InspectionReason == "Condition Rating" && $feature.OtherDrainageRatable == "Yes", "Inspection Completed",
$feature.InspectionReason == "Condition Rating" && $feature.OtherDrainageRatable != "Yes", "Inspection Attempted",
$feature.InspectionReason == "Maintenance Activity", $feature.ConditionInspectionStatus, null ) So, if InspectionReason is Maint. Act., then return what is already in that field. R_
... View more
04-18-2023
12:08 PM
|
0
|
1
|
1904
|
|
POST
|
If you have office 365 login, you can set up power automate Survey 123 notification that does just that. I have also had success with scheduled python tasks and this post. R_
... View more
04-17-2023
11:09 AM
|
0
|
2
|
4422
|
|
POST
|
Did you remember to enable the "Allow assignment of unique numeric IDs for sharing we layers" first? RhettZufelt_0-1681753894908.png If not, and anything changed, the layers could all have new id's, and existing maps will try to load this by the id. If not the same, can get the No Data Found errors. R_
... View more
04-17-2023
10:53 AM
|
0
|
1
|
6020
|
|
POST
|
You might need to return the Domain Code and not the value. You could also just set "Asset" as the default value in the template. R_
... View more
04-17-2023
10:41 AM
|
0
|
0
|
6349
|
|
POST
|
I get that error if r"C:\Users\Local.gdb\Full_Roads_CC" doesn't have a field named "Speed". R_
... View more
04-17-2023
10:34 AM
|
0
|
0
|
1794
|
|
POST
|
You need a list of workspaces to iterate, in your current code, 'workspaces' is not defined. So, set the folder that contains them to arcpy.env.workspace = "path:to/workspaces/folder", then workspaces = arcpy.ListWorkspaces("*", "FileGDB"), OR, manually make the list of workspaces. Then, you need to move the featureclasses = arcpy.ListFeatureClasses() into the for workspace loop. Need to set the workspace first so it can list the featureclasses in that workspace. The rest of the code looks good. R_
... View more
04-17-2023
10:22 AM
|
0
|
0
|
1829
|
|
POST
|
In the options, if you un-check the Remove layers that..... setting, it will update the layer, but not remove-re-add it to the map. This way, it stays in the correct order, and retains it's symbology, etc. RhettZufelt_0-1681751611584.png R_
... View more
04-17-2023
10:13 AM
|
4
|
1
|
1488
|
|
POST
|
Any chance there are Excel table(s) in the project? I saw it behave like this until all the Excel/Microsoft drivers were properly installed for Pro 3.x. R_
... View more
04-17-2023
10:05 AM
|
0
|
0
|
638
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|