|
POST
|
That is where I am seeing the server create the scratch GDB also. But arcpy.env.scratchGDB is returning a path to AppData so it never uses it. This got cut off above I think. He is what I get from a test GP tool. Server is 11.3. arcpy.AddMessage("Scratch Workspace " + arcpy.env.scratchWorkspace) arcpy.AddMessage("Scratch Folder " + arcpy.env.scratchFolder) arcpy.AddMessage("Scratch GDB " + arcpy.env.scratchGDB) arcpy.AddMessage("Package Workspace " + arcpy.env.packageWorkspace) arcpy.AddMessage("Script Workspace " + arcpy.env.scriptWorkspace) Scratch Workspace C:\Users\userreaplace~1\AppData\Local\Temp\aim\speedtest_gpserver\jef84e091d73b42078280de5458f66360\scratch Scratch Folder C:\Users\userreaplace~1\AppData\Local\Temp\aim\speedtest_gpserver\jef84e091d73b42078280de5458f66360\scratch Scratch GDB C:\Users\userreaplace~1\AppData\Local\Temp\aim\speedtest_gpserver\jef84e091d73b42078280de5458f66360\scratch\scratch.gdb Package Workspace \\loc\ServerDev\directories\arcgissystem\arcgisinput\folder\SpeedTest.GPServer\extracted\p30 Script Workspace \\loc\ServerDev\directories\arcgissystem\arcgisinput\folder\SpeedTest.GPServer\extracted\p30
... View more
12-17-2024
11:16 AM
|
0
|
0
|
3006
|
|
POST
|
"When processing is complete, any results and output are copied to the arcgisjobs folder defined for the service." Wouldn't this be the output folder though? The problem with it using the local temp folder is this is not part of the cleanup routines. It should use the scratch in the jobs folder, which then gets cleaned up on the regular. At least that would make a lot more sense. So do I have to have my scripts self clean now? (I worry trying to delete at the end of the script will cause locking issues.) Basically the server is for sure going to run out of space all the time now. I really thought I remember it did not used to do this as I think I remember watching it create stuff in the jobs folder. Plus we have never had this issue before.
... View more
12-17-2024
07:03 AM
|
0
|
1
|
3016
|
|
POST
|
I would still check related_rows for a count > 0 instead. First() can fail on you here. You also have 3 different return statements which would look better as elsif or something like that. Also seems like this check should be first. Why do a lookup if you may not need it. Can get slow. // Check if PSI fields are valid (parent) if($feature.TargetPSI == null) { return "No Target PSI in Valve Layer" }
... View more
12-17-2024
06:54 AM
|
0
|
0
|
1711
|
|
POST
|
You probably got a bigger result in production than testing. Yes coming back from inbox or drafts can create all kinds of issues with calcs. You could try a calculation mode of when empty and see of that does it. Never had much luck but worth a shot. https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-calculation-modes/ba-p/1206967 Also make sure your csv is clean - no extra commas or special chars. Look at it in Notepad vs Excel. I see you have the word query on the begin group line that I would remove.
... View more
12-17-2024
06:50 AM
|
0
|
1
|
2300
|
|
POST
|
Yes the jobs dir is set properly on each GP tool and in the server settings. I could force a new root but I still would not know what the job number is. I am still stuck with no way to get the actual path to the dir for each job at runtime. I really think this was working before 11.3. It is still creating the scratch dir and scratch.gdb in the jobs dir but never uses it.
... View more
12-16-2024
01:37 PM
|
0
|
0
|
3037
|
|
POST
|
Not getting anything from Geoprocessing board so trying here. Thanks On server 11.3 Scratch Workspace is not giving back the job dir from arcgisjobs dir. Instead it is giving and writing to AppData under the user name. This dir is not part of the cleanup schedule and is growing over time. arcpy.AddMessage("Scratch Workspace " + arcpy.env.scratchWorkspace) Scratch Workspace C:\Users\serveruser~1\AppData\Local\Temp\aim\speedtest_gpserver\j9b2d66b7a00d4a8696d2fe7973da3ba4\scratch The post here shows it should be my arcgisjobs dir right? https://community.esri.com/t5/python-questions/geoprocessing-service-to-return-a-file/td-p/522062 I remember seeing this happen in the past I think. I am even seeing it create the jobs dir with a scratch folder in the arcgisjobs folder and even a scratch GDB but it does not use it. I can find no way in script to find this jobs dir either? Why is it not using arcgisjobs as configured both in the GP tool and in the server settings? Is this a bug of some sort? I cannot figure out how I can even get the job dir in script if none of these work. Scratch GDB is doing the same thing. Scratch Folder same deal it gives me the AppData dir and not the jobs dir. thanks
... View more
12-16-2024
08:59 AM
|
0
|
9
|
3081
|
|
POST
|
You can use empty string "" for this. It will let the user add something. You will see a recalc icon appear but as long as they do not tap it then the value will stay. You can also use visible to hide it if you want. Do not use relevant or it will be "" when it hides. Visible hides the question but relevant changes the stored value to "". You can also make your if simpler if(${nest_type} = "brood" or ${nest_type} = "inactive_knownfate", "no", "") Hope that helps
... View more
12-16-2024
08:46 AM
|
0
|
2
|
1423
|
|
POST
|
pulldata likes to be in its own field. You can then use that field in a calc but no you cannot combine pulldata inside a calc at all. So make 3 fields. 1 for each pulldata and one for the final multiply calc.
... View more
12-16-2024
08:24 AM
|
2
|
1
|
1549
|
|
POST
|
Could be two things. 1. There was a bug for awhile with having a . in the relationship name when using FeaturesetByRelationshipName. I thought it was fixed but seeing others post on it. (Is your Field Maps up to date?) Try Filter(FeatureSetByName()) instead and see if that works. 2. If you get nothing back from FeaturesetByRelationshipName then var latest_survey = First(OrderBy(related_rows, "created_date DESC")) will fail. You should check if related_rows is empty before calling First not after. Hope that does it
... View more
12-16-2024
06:43 AM
|
0
|
1
|
1744
|
|
POST
|
Just make a query var sql = "PointID = '" + $feature.PointID + "'"; var tbl = Filter(FeatureSetByName($map,"Points", ['DesignLat'], false), sql); return First(tbl).DesignLat
... View more
12-16-2024
06:30 AM
|
0
|
0
|
1701
|
|
POST
|
I thought it was fixed? If not just use FeatureSetByName and then wrap that in Filter(). Works about the same.
... View more
12-12-2024
03:18 PM
|
0
|
0
|
1743
|
|
POST
|
We do something like this using the famous exif.exe writer with the corresponding Python package to write a comments field from the form into the Exif of the photo itself. This can then be seen in windows. I think there is even a Tags field in Exif that you could write too. It does require processing the photos in Python to add these tags as you export them from the GDB for long term storage. We dump these into a web accessible folder, build a simple index.html in script to create a gallery page with all the photos and comments. We then add this URL to the gallery in the feature class for direct linking in our web app or Pro. Bit more work but its super slick in the end. See my post here with examples and the code. https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-download-survey-data/ba-p/1141835
... View more
12-12-2024
08:32 AM
|
1
|
0
|
1838
|
|
POST
|
The issue is the storage dir varies by device in Andriod - it has a seemingly random number in it. You may figure out out for your device but each user is different. I played with this a lot and never found a way to figure it out. Also Android tends to block you from doing stuff like this for security.
... View more
12-12-2024
08:15 AM
|
0
|
0
|
2905
|
|
POST
|
On server 11.3 Scratch Workspace is not giving back the job dir from arcgisjobs dir. Instead it is giving and writing to AppData under the user name. This dir is not part of the cleanup schedule and is growing over time. arcpy.AddMessage("Scratch Workspace " + arcpy.env.scratchWorkspace) Scratch Workspace C:\Users\serveruser~1\AppData\Local\Temp\aim\speedtest_gpserver\j9b2d66b7a00d4a8696d2fe7973da3ba4\scratch The post here shows it should be my arcgisjobs dir right? https://community.esri.com/t5/python-questions/geoprocessing-service-to-return-a-file/td-p/522062 I remember seeing this happen in the past I think. I am even seeing it create the jobs dir with a scratch folder in the arcgisjobs folder and even a scratch GDB but it does not use it. I can find no way in script to find this jobs dir either? Why is it not using arcgisjobs as configured both in the GP tool and in the server settings? Is this a bug of some sort? I cannot figure out how I can even get the job dir in script if none of these work. Scratch GDB is doing the same thing. Scratch Folder same deal it gives me the AppData dir and not the jobs dir. thanks
... View more
12-12-2024
08:09 AM
|
0
|
0
|
584
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | Wednesday | |
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|