|
POST
|
@RainbowUnicorn Fantastic! I'm glad that you are not experiencing the issue on your personal computer. I agree with your assessment as well. The issue seems to be specific to your work environment (the machine, network, etc.)
... View more
07-08-2022
06:53 AM
|
0
|
0
|
1343
|
|
POST
|
@RainbowUnicorn I'm sorry to hear that you are experiencing a different issue while trying to publish a copy of your survey (you may find this post helpful). Whatever is causing this issue may be related to the issues you were experiencing with your original survey. I think at this point it's best for you to create a case with Esri Technical Support to take a closer look at your issue and continue troubleshooting.
... View more
07-05-2022
11:52 AM
|
0
|
0
|
1354
|
|
POST
|
Hi @RainbowUnicorn , I have a few questions to have a better understanding of the environment of your issue: Are you working in ArcGIS Online or Enterprise? Are you experiencing this issue after republishing a survey that was working before? If so, what changes did you make? Do you get the same error if you publish a copy of this survey? (make sure that "Create web form" is enabled when publishing) If possible, can you share the XLS form for your survey? Thanks, MJ
... View more
07-05-2022
10:31 AM
|
0
|
1
|
1969
|
|
POST
|
Hi @DEI , When creating a relationship class, you can specify the Forward/Backward Path Label. These labels are carried over to the hosted feature layer. This label is what FeatureSetByRelationshipName( ... ) uses to reference a relationship in a feature service. If you export your feature layer as a file geodatabase from ArcGIS Online, the Forward/Backward Path Labels are dropped, so when the layer is published back to ArcGIS Online, the relationships in the hosted feature won't have the labels initially specified when the relationship class was created. A defect (#BUG-000149669) has been logged against this behavior. In the meantime, it seems that in the meantime, the workaround is to recreate the relationship class in Pro and reassign the Forward/Backward Path Labels. Best, MJ
... View more
06-09-2022
06:34 AM
|
2
|
4
|
4447
|
|
POST
|
@Sven_Harpering Fantastic! I'm glad that it worked for you too.
... View more
05-17-2022
08:05 AM
|
0
|
0
|
1551
|
|
POST
|
Hi @Sven_Harpering , admin.license.all() returns all the individual licenses in your org and from there you should be able to assign/revoke them. However, some app licenses (including ArcGIS Urban) are considered app bundle licenses. To query these licenses for your org, you can use license.bundles function. Below is a sample script that revokes all types of licenses from users on a list: #Import modules and functions
from arcgis.gis import GIS
from arcgis.gis.admin import AGOLAdminManager
#Sign in to portal as admin
gis = GIS(PORTAL_URL, ADMIN_USERNAME, ADMIN_PASSWORD)
#Define license manager and find org licenses and app bundles
org_licenses=gis.admin.license.all()
org_bundles=gis.admin.license.bundles
#Revoke licenses from a list of users
usernames=['USERNAME1','USERNAME2']
for username in usernames:
for license in org_licenses:
try:
license.revoke(username=username, entitlements='*')
except:
pass
print(f'All licenses for "{username}" were revoked!')
for bundle in org_bundles:
try:
bundle.revoke(username)
except:
pass
print(f'All app bundle licenses for "{username}" were revoked!') Best, MJ
... View more
05-16-2022
06:15 AM
|
2
|
0
|
1576
|
|
POST
|
Hi @MikeCooperstein , If you are collecting your inspection data into a related layer, you can use a data expression like the example below to query the related record with the most recent data and use it as a data source for the list widget on your dashboard. Make sure to modify the script according to your environment and your data schema (e.g. item id, field names, etc.) // Create a featureSet from the related table. Replace the ITEMID and LAYERID to reference your related layer.
var portal = Portal('https://www.arcgis.com');
var relatedTable = FeatureSetByPortalItem(
portal,
'ITEMID',
LAYERID,
['*'],
false);
// Identify unique values in the FOREIGNKEY field to use in filter statement later. Replace FOREIGNKEY with the name of the field that the relationship is based on.
var uniqueFkeys = Distinct(relatedTable, ['FOREIGNKEY']);
// Define a dictionary to write the attributes of the selected features into. Field names here are optional and you need to specify the field type based on the data that you want to write into each field. A table created from this dictionary is the final output of this script.
var dict = {'fields': [
{'name': 'FIELDANAME', 'type': 'esriFieldTypeString'},
{'name': 'FIELDBNAME', 'type': 'esriFieldTypeString'},
{'name': 'FIELDCNAME', 'type': 'esriFieldTypeDate'}],
'geometryType': '',
'features': []};
// Query the records for each feature based on another field. For instance, you can query the most recent inspection of each site, or the inspection with the highest reading for each site. In this example, related records are filtered by DATEFIELD to return the most recent inspection.
var index = 0
for (var x in uniqueFkeys) {
var id = x.FOREIGNKEY;
var filterstatement = ('FOREIGNKEY = @id');
var filtrecords = Top(OrderBy(Filter(relatedTable, filterstatement),'DATEFIELD DSC'),1);
// Populate attributes from the selected features into the fields in the dictionary. In this example, FROREIGNKEY, FIELD1, and DATEFIELD are used. You can replace these with the name of the fields from your related table that you want to include in the final table.
for (var y in filtrecords){
var FIELDAVALUE = y.FOREIGNKEY;
var FIELDBVALUE = y.FIELD1;
//Dates should be converted to number to write into a date type field in the dictionary
var FIELDCVALUE = number(y.DATEFIELD);
// populate the attributes of the selected feature into the dictionary
dict.features[index] = {
'attributes': {
'FIELDANAME': FIELDAVALUE,
'FIELDBNAME': FIELDBVALUE,
'FIELDCNAME': FIELDCVALUE
}};
}
index += 1;
}
// return the featureset with selected records from the related table
return FeatureSet(Text(dict)); All the best, MJ
... View more
05-13-2022
04:54 AM
|
0
|
1
|
1093
|
|
POST
|
Hi @tc_ton, for hosted feature layers in ArcGIS Online, currently, if the layer's editing settings only allows "Add" and "What features can editors see?", 'Editors can't see any features, even those they add.' option is selected, the Query capability will be disabled for the layer. When the query is disabled, if the layer is opened in Map Viewer Classic, features won't draw and you get "Accessing data failed" error if you try to open the attribute table. In Map Viewer, features are visible on the map but you don't see the option to open the attribute table. If you try to use this layer as the data source in some of the apps (e.g. Dashboard), you may get an error and data from this layer may not be accessible by the app. Since Survey123 3.14, the feature layers that are created for surveys have these editing settings by default. This was an intended change to provide the most secure data experience for survey creators by default and allow them to decide what permissions they want to open on their data. You can enable the query capability by changing the layer settings: Enable 'Update' or 'Delete'. Change the option for 'What features can editors see?' to 'Editors can see all features' or 'Editors can only see their own features (requires editor tracking).' Disable editing. Best, MJ
... View more
05-11-2022
05:55 AM
|
4
|
0
|
11342
|
|
POST
|
Hi @tc_ton, for hosted feature layers in ArcGIS Online, currently, if the layer's editing settings only allows "Add" and "What features can editors see?", 'Editors can't see any features, even those they add.' option is selected, the Query capability will be disabled for the layer. When the query is disabled, if the layer is opened in Map Viewer Classic, features won't draw and you get "Accessing data failed" error if you try to open the attribute table. In Map Viewer, features are visible on the map but you don't see the option to open the attribute table. If you try to use this layer as the data source in some of the apps (e.g. Dashboard), you may get an error and data from this layer may not be accessible by the app. Since Survey123 3.14, the feature layers that are created for surveys have these editing settings by default. This was an intended change to provide the most secure data experience for survey creators by default and allow them to decide what permissions they want to open on their data. You can enable the query capability by changing the layer settings: Enable 'Update' or 'Delete'. Change the option for 'What features can editors see?' to 'Editors can see all features' or 'Editors can only see their own features (requires editor tracking).' Disable editing. Best, MJ
... View more
05-11-2022
05:39 AM
|
7
|
1
|
11342
|
|
POST
|
Hi @Rice_GIS , You can keep the apostrophes in the actual attribute values and use an Arcade expression to encode the values from that field to replace " ' " with "%27" to include the encoded values in the URL instead of the actual values that contain apostrophes. Original URLs: https://survey123.arcgis.com/share/dd4b8079b72e480ca429824e2020?field:businessName={Name}&field:businessAddress={Address}&field:businessCity={City} Arcade expression: replace($feature.Name,"'",'%27') Updated URLs (attribute values encoded using an expression): https://survey123.arcgis.com/share/dd4b8079b72e480ca429824e2020?field:businessName={expression/expr1}&field:businessAddress={Address}&field:businessCity={City} If you have multiple fields containing values with apostrophes that you need to pass as URL parameters to Survey123, you need to add a expression for each field. If you are using the custom URL scheme only to launch Survey123 from Map Viewer, you cannot use this workflow since it will not give you the expected results. Map Viewer automatically encodes URLs so it replaces % in %27 (from the Arcade expression results) with "%25". As a result, it does not pass the expected values to the questions (e.g. "Amelia%27s French Bakery"). This workflow must be used only if the custom URL scheme is being utilized in mobile apps like Field Maps where the app reads the encoded values and passed the correct values to the survey form as expected (e.g. "Amelia's French Bakery"). Best, MJ
... View more
03-30-2022
08:17 AM
|
0
|
2
|
3395
|
|
BLOG
|
@bgomes thanks for the update! I'm glad that we were able to reproduce the same behavior in field app. We are currently discussing this behavior internally to confirm what is the expected behavior in both field app and web app with both constraint formats and log a defect if needed. Please let me know if you run into any issues moving forward or if you have any other questions. Best, MJ
... View more
02-18-2022
10:57 AM
|
1
|
0
|
3045
|
|
BLOG
|
@bgomes Both constraints should work in Survey123 field app (and Connect) as well. The only difference is that while web app validates the responses against the constraints as soon as input (in this case images) are provided, the field app only imposes the constraints upon submitting the form. Therefore, field app allows adding more images than what is specified in the constraint since the image question has multiline appearance, however, it does not allow user to submit the form.
... View more
02-18-2022
09:01 AM
|
1
|
0
|
42961
|
|
BLOG
|
Hi @bgomes, Can you confirm what version of Survey123 Connect you are using? I cannot reproduce the issue on 3.13.251. If you have published your survey from an older version, make sure to turn off the version lock to force using the 3.13 web app. Images below show my XLS form and the same survey in web form. Please let me know if you still experience the same issue. Thanks, MJ
... View more
02-18-2022
07:14 AM
|
1
|
0
|
42980
|
|
BLOG
|
Hi @bgomes, I've ran into a similar issue and I believe it happens only when you reference the image question name in the constraint. Please change your constraint from "count-selected(${photo})<4" to "count-selected(.)<4" and see if it resolves the issue. Best, MJ
... View more
02-18-2022
05:40 AM
|
2
|
0
|
42993
|
|
POST
|
Hi @MeghJones , Although Workforce allows certain configuration for the integration URL through the web app, you can modify the integrated URLs for any of the apps that your Workforce project is integrated with by editing the "Assignment Integrations" table in the hosted feature layer for your project. In this case, to add a callback parameter to the URL to return to Workforce app after submitting the form in Survey123 app, you can append "&callback=https://workforce.arcgis.app" to the URL. Best, MJ
... View more
02-17-2022
12:55 PM
|
1
|
0
|
2967
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 05-03-2024 09:47 AM | |
| 1 | 02-17-2022 12:55 PM | |
| 2 | 05-03-2024 09:47 AM | |
| 2 | 06-09-2022 06:34 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|