|
POST
|
Is this showing a field name that starts with underscore? ${_0_farm_identification} If so I have seen that break forms.
... View more
11-19-2024
07:38 AM
|
1
|
0
|
786
|
|
POST
|
I would make this a repeat and keep the history. You can then use join to display the history easily. I do not think what you have will work out the way that 123 is built.
... View more
11-19-2024
07:36 AM
|
0
|
1
|
1453
|
|
POST
|
After many hours I figured out that the MakeRasterLayer just plain will not take input from MakeMultidimensionalLayer - even though it works in Pro, it will not on the server. So I changed to TrendRaster_pval = arcpy.ia.ExtractBand("oneInd", [2]) and that worked. But did not in Pro. So weird. The server seems to not handle temp in memory layers the same way. It gets lost. Next had the same issue with a polygon input from the GP widget. There I must save it to scratch GDB or it will never draw. But that works fine in Pro. Hopes that helps someone. GP tools are such a mystery.
... View more
11-14-2024
11:54 AM
|
0
|
0
|
1463
|
|
POST
|
ByRelationship should be fixed now so you can use that. FeatureSetByRelationshipName($feature, "Name of the Relationship class", ['list of fields'], false); (the last false is to not return geometry to speed it up.)
... View more
11-14-2024
06:39 AM
|
0
|
0
|
4802
|
|
POST
|
Finally got to test this simple script above and it published quickly @ChrisUnderwood . So why is it taking 20 mins to an hour then? Is it all the repathing? (Is their anyway to turn it off it has not worked correctly for years now). Even is that is it no way it should take that long on 100 lines of code. It is not even editing the server file for that 20 mins so it does seem stuck on the repathing part. It is repathing some weird stuff that are just layers in memory. g_ESRI_variable_1 = '\\\\netparh\\T_AllIndicators.crf' g_ESRI_variable_2 = '\\\\netpath\\Rastermap.aprx' g_ESRI_variable_3 = 'yearsRaster' g_ESRI_variable_4 = 'TrendRaster_pval' g_ESRI_variable_5 = 'TrendRaster_pval2' g_ESRI_variable_6 = 'VALUE < 0.05' g_ESRI_variable_7 = 'TrendRaster_sens' Any help is greatly appreciated. 4 days of every little change taking this long is driving me nuts. thanks
... View more
11-13-2024
06:44 AM
|
0
|
2
|
1364
|
|
POST
|
You can check if you are in edit mode with pulldata("@property", 'mode') But you could only calcs something like if(edit mode, "Yes", "then here it has to be No or blank") You can never in 123 say calc this or leave it alone. But this Yes or No may work for you. See more info here https://community.esri.com/t5/arcgis-survey123-questions/editing-from-inbox-can-i-make-some-fields-read/td-p/1045752
... View more
11-13-2024
05:55 AM
|
0
|
0
|
1244
|
|
POST
|
Is maybe the help wrong. Why is a temp layer getting a path and file extension? From the help # Import system modules
import arcpy
# Define input parameters
in_multidimensional_raster = r"C:\data\MD_Ocean_data.crf"
out_multidimensional_raster_layer = r"C:\data\Temp_slice.crf"
variables = "water_temp"
dimension_def = "BY_VALUE"
dimension_values = "StdZ -50;StdZ -100"
template = "120.084279939743 0.914964278021376 139.524470909773 21.1231086159414"
#Execute
arcpy.md.MakeMultidimensionalRasterLayer(
in_multidimensional_raster, out_multidimensional_raster_layer, variables,
dimension_def, dimension_values, template)
... View more
11-12-2024
03:38 PM
|
0
|
1
|
1479
|
|
POST
|
Thanks the user ended up changing to an Arcade box and doing all HTML which works in both. DougBrowning_0-1731425525612.png DougBrowning_1-1731425538060.png
... View more
11-12-2024
07:32 AM
|
1
|
0
|
1831
|
|
POST
|
I always have user make multiple point features for each inspection. Then we can make sure they were at the correct spot! People can say they were at Location 35 but were really at 36. Having spatial data is always a good idea. Plus filtering data later its always easier if each visit has a location.
... View more
11-08-2024
02:34 PM
|
1
|
0
|
2694
|
|
POST
|
I was helping a user that wanted to use line breaks. Since NewLine does not work in Field Maps you use <br/>. But then that is ugly in map viewer. So I helped them write code using GetEnvrionment() and it works great in the map. But in Field Maps it says expression failed. We also tested GetEnvrionment() for IsEmpty and "" but it just fails right away. So my guess is Field Maps GetEnvrionment() is not set supported. Arcade still has no try except (which it really should) so that is about as far as we can test. Is GetEnvrionment() supported in Field Maps? thanks
... View more
11-08-2024
12:39 PM
|
1
|
0
|
1881
|
|
POST
|
Been testing an infinite number of combinations the last few days and still cannot get it. This all works great in Pro/PyScripter, and it does publish, but when running as a GP tool I get the message ERROR 003401: Invalid or unsupported input raster. Failed to execute (MakeRasterLayer). Pro 3.1 and Server 11.3 RAPTrendRaster = arcpy.ia.GenerateTrendRaster("yearsRaster", "StdTime", runIndicators, "MANN-KENDALL", None, "DATA", None, "", "RMSE", "NO_R2", "NO_SLOPEPVALUE", "") oneIndLayer = arcpy.md.MakeMultidimensionalRasterLayer(RAPTrendRaster, "oneInd", indToMap)[0] arcpy.AddMessage(oneIndLayer) # nothing prints here on the server but in Pro I get <MappingLayerObject object at 0x0000021636EA4D20> pvalLayer = arcpy.management.MakeRasterLayer(oneIndLayer, "RAPTrendRaster_pval", band_index=[2])[0] The last line fails with: Invalid or unsupported input raster. I run it all in PyScripter and then I can do either of these and it works. pvalLayer = arcpy.management.MakeRasterLayer(oneIndLayer, "RAPTrendRaster_pval", band_index=[2])[0] or pvalLayer = arcpy.management.MakeRasterLayer("oneInd", "RAPTrendRaster_pval", band_index=[2])[0] And it works just fine. My guess is its either not storing the layer file at all or it is not pathing right. Of course its remapping some of my vars but its just repalcing ESRI_Var and then that gets oneIndLayer I guess my question is how do I use layer files in a GeoProcessing tool? Cannot find anything about it. thanks a lot
... View more
11-08-2024
12:25 PM
|
2
|
2
|
1576
|
|
POST
|
Been testing an infinite number of combinations the last few days and still cannot get it. This all works great in Pro/PyScripter, and it does publish, but when running as a GP tool I get the message ERROR 003401: Invalid or unsupported input raster. Failed to execute (MakeRasterLayer). Pro 3.1 and Server 11.3 RAPTrendRaster = arcpy.ia.GenerateTrendRaster("yearsRaster", "StdTime", runIndicators, "MANN-KENDALL", None, "DATA", None, "", "RMSE", "NO_R2", "NO_SLOPEPVALUE", "") oneIndLayer = arcpy.md.MakeMultidimensionalRasterLayer(RAPTrendRaster, "oneInd", indToMap)[0] arcpy.AddMessage(oneIndLayer) # nothing prints here on the server but in Pro I get <MappingLayerObject object at 0x0000021636EA4D20> pvalLayer = arcpy.management.MakeRasterLayer(oneIndLayer, "RAPTrendRaster_pval", band_index=[2])[0] The last line fails with: Invalid or unsupported input raster. I run it all in PyScripter. There I can do pvalLayer = arcpy.management.MakeRasterLayer(oneIndLayer, "RAPTrendRaster_pval", band_index=[2])[0] or pvalLayer = arcpy.management.MakeRasterLayer("oneInd", "RAPTrendRaster_pval", band_index=[2])[0] And it works just fine. My guess is its either not storing the layer file at all or it is not pathing right. Of course its remapping some of my vars but its just repalcing ESRI_Var and then that gets oneIndLayer I guess my question is how do I use layer files in a GeoProcessing tool? Cannot find anything about it. thanks a lot
... View more
11-08-2024
12:21 PM
|
0
|
0
|
624
|
|
POST
|
Cannot even get GetEnvironment() to run. If its blank that is fine but it just fails totally. Is this not support yet? thanks
... View more
11-08-2024
11:48 AM
|
1
|
6
|
1897
|
|
POST
|
I tried this many years ago but the sd card name is different on every device so it never works out. Best we do is PDF files of photos for that site named the same as the location id.
... View more
11-07-2024
01:20 PM
|
1
|
0
|
1245
|
|
DOC
|
Just set the bind::esri:fieldType column to null and then it will not create any field in the service.
... View more
11-07-2024
01:18 PM
|
0
|
0
|
7609
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-08-2026 07:34 AM | |
| 1 | a month ago | |
| 1 | 07-08-2026 03:46 PM | |
| 1 | 07-08-2026 03:08 PM | |
| 1 | 07-08-2026 03:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|