|
POST
|
Hi, Survey123 consistently fails when generating a summary reports containing >20 records. For one of my surveys, I created a quarterly reporting template for my end users. They should be able to select all records for a 3 month period and create a summary report with a few clicks of a button. Instead, they get consistent failures and I need to go in and generate reports for them, and then compile them using Excel. This defeats the purpose of a summary report template. This is extremely frustrating! Instead of generating 1 summary report, I have to generate 1 per batch of ~20 records and then use Excel to add all of the values together. For example, this quarter (April 1 to June 30) has 391 records - imagine generating a summary report for every 20 of those! The error code flip flops between a generic "we couldn't generate the report" to something more specific with syntax. The odd thing about the syntax portion is that as long as I don't pass the 20 record threshold, the report template works fine. I also receive no errors when uploading the report template. I have been suffering through this for months now - is there any end in sight? @IsmaelChivite Thank you,
... View more
07-08-2021
05:46 AM
|
0
|
2
|
1458
|
|
POST
|
Hi Zach, This is something I have tried, and it does work. I have been doing more testing between environments and noticed a few odd behaviors - maybe you have suggestions or know why this happens. When moving a Flow from Dev to Prod, I use the Export package option. I then turn off/disable to Flow in Dev. When I Import and set up the Flow in Prod, it is turned off/disabled. When I turn it on, it also turns on the Flow in Dev. I am unsure if this is expected behavior, or if it is because I have named the Flow the same thing between Dev and Prod. It also resulted in duplicate email notifications when I submitted a test survey. The only way I could think to resolve this was to delete the Dev version. However, I am unsure if this is best practice. Any thoughts? Also, when sharing a Flow with someone, I noticed that the incorrect connections were listed. I use a service account for email generation, but the dialog said it was sharing my named account credentials (which aren't even used in the Flow, although my named account owns/authored the Flow). Thank you,
... View more
06-30-2021
09:52 AM
|
0
|
1
|
4708
|
|
POST
|
Hi @JamesTedrick I've been doing testing. I am unsure if this is because I am rusty, but I was able to figure this out. After creating my first flow, I opened Survey123 > Settings > Webhook and renamed the default "MS-FLOW" to "MS-FLOW-webhook1" and saved it. Then, I created a second webhook and saved it. When I refreshed Survey123 > Settings > Webhooks, a second flow named "MS-FLOW" was listed. So, it seems changing the name works. I don't remember doing this in the past, but maybe I am just out of practice!
... View more
06-30-2021
06:27 AM
|
0
|
1
|
3655
|
|
POST
|
Hi @JamesTedrick , Here are some more details on what I am experiencing: 1. Open Power Automate and create a new Flow for a survey. Build out the Flow's steps and save. 2. Go to my survey and view it's Settings > Webhooks page. The webhook is there with the correct timestamp listed. It's name is just MS-FLOW. 3. Test survey/webhook - it runs as expected. 4. Go back to Power Automate and build a second Flow for the same survey; this Flow does something different. Save it. 5. Go back to my survey, view it's Settings > Webhooks page (refresh it). There is still only one webhook listed, however the timestamp has updated to when I just saved my second flow in step 3. There is still only 1 Flow, with the name MS-FLOW. There is no second flow appearing in the list. 6. Test survey/webhook - it performs the action of the second webhook (step 4) and not the action of the first webhook (step 1). This behavior started happening in February for me. I've been trying to figure out what has happened, but I haven't changed anything in my workflow for creating webhooks through Power Automate. There has been some behind-the-scenes stuff happening with Office 365 administration in my agency and I am no privy to what they are doing/how they are changing things. I am unsure if that could be part of the reason I am experiencing these problems. I am happy to do a screen share to show you exactly what I am experiencing. There was also someone else who said they were experiencing this too - I tagged him above in the original post. Erica
... View more
06-28-2021
12:06 PM
|
0
|
0
|
3668
|
|
POST
|
Hi, My organization is taking steps to refine and lock down our Office 365 environments. They are migrating us from the "default" environment to new 'Development' and 'Production' environments. I was wondering if anyone here could share best practices or lessons learned for migrating existing Flows between environments. Currently, all my Flows live in the "default" environment and will need to be moved to another location. I am curious how this will impact my end users and if anyone has suggestions on the best ways to move a Flow between environments, get it working again with Survey123, and minimize downtime to end users. Thank you,
... View more
06-21-2021
10:15 AM
|
1
|
3
|
4920
|
|
POST
|
@IsmaelChivite I am wondering if there has been a change to webhooks from Power Automate with Survey123. Previously, I was able to create multiple webhooks per survey in Power Automate. I'd created them in Power Automate and then see multiple webhooks listed in Survey123 > Settings > Webhooks. Now, when I create my second webhook it appears to 'overwrite' the original. This behavior occurs when working in the same tenant or when migrating webhooks between tenants (Dev to Prod, for example). Has anyone experienced this? I had originally posted this question here in February 2021, but received no response other than from @mattmerc who says he is also experiencing this issue. Any help would be great. Thanks!
... View more
06-02-2021
09:40 AM
|
0
|
9
|
3811
|
|
POST
|
I figured this out - the occasional decimal value was messing this up. The correct data expression now reads: var portal = Portal("https://www.arcgis.com");
// Group the features by the BLA
var BLA = FeatureSetByPortalItem(portal,"xxx",0,['BLA_Used'],false);
var groupBLA = GroupBy(BLA,
["BLA_Used"],
[
{ name: "BoatLaunchArea", expression: "BLA_Used", statistic: "COUNT" },
]
);
var combinedDict = {
fields: [
{ name: "BLA", type: "esriFieldTypeString" },
{ name: "cntSurveyScans", type: "esriFieldTypeInteger" },
],
geometryType: "",
features: [],
};
var i = 0;
for (var m in groupBLA) {
combinedDict.features[i] = {
attributes: {
BLA: m["BLA_Used"],
cntSurveyScans: (Floor(m["BoatLaunchArea"] / 2)),
},
};
i++;
}
return FeatureSet(Text(combinedDict));
... View more
05-26-2021
11:29 AM
|
0
|
0
|
1128
|
|
POST
|
Hi, I have a data expression (below) which executed properly when I was testing the data expression and configuring my chart in my Dashboard. After I saved and refreshed, it was no longer executing properly and does not show all of the data. Sometimes all data is returned, and other times it is not. For example, this is what the chart should look like (it does look like this sometimes): Then if I refresh, I see this: Here is my data expression: var portal = Portal("https://www.arcgis.com");
// Create a FeatureSet for stable and unstable inspections.
// Group the features by the BLA
var BLA = FeatureSetByPortalItem(portal,"###",0,['BLA_Used'],false);
var groupBLA = GroupBy(BLA,
["BLA_Used"],
[
{ name: "BoatLaunchArea", expression: "BLA_Used", statistic: "COUNT" },
]
);
var combinedDict = {
fields: [
{ name: "BLA", type: "esriFieldTypeString" },
{ name: "cntSurveyScans", type: "esriFieldTypeInteger" },
],
geometryType: "",
features: [],
};
var i = 0;
for (var m in groupBLA) {
combinedDict.features[i] = {
attributes: {
BLA: m["BLA_Used"],
cntSurveyScans: (m["BoatLaunchArea"] / 2),
},
};
i++;
}
return FeatureSet(Text(combinedDict)); This feature layer is updated frequently by Survey123. Could the frequent updates to the layer be causing these issues? This layer also has 8,000 records and counting. Any advice would be appreciated! Erica
... View more
05-21-2021
06:48 AM
|
0
|
1
|
1163
|
|
POST
|
Hi @Anonymous User , Thank you for that tip. Once I started the service and submitted some test data, it created the definition for me. I appreciate your help!
... View more
05-19-2021
12:21 PM
|
0
|
0
|
1655
|
|
POST
|
Hi, I am attempting to use the Event Joiner processor for the first time. I have specified my two input GeoEvent Definitions and the two fields to perform the join on. I have added a name for the new GeoEvent Definition that is created to reflect the joined data. When I go to add the Field Mapper processor after my Event Joiner processor, I can not find the new GeoEvent definition in my list of options. Is there a really obvious step I am missing here? Thank you,
... View more
05-12-2021
08:51 AM
|
0
|
2
|
1681
|
|
POST
|
This also works, and provides a nicely formatted time. Thank you for that. I was just digging into this blog to figure out how to format that.
... View more
05-07-2021
11:10 AM
|
1
|
0
|
3848
|
|
POST
|
@XanderBakker That worked! I changed the esriFieldTypeDate to esriFieldTypeString, and it worked perfectly. Thank you!
... View more
05-07-2021
11:02 AM
|
0
|
1
|
3850
|
|
POST
|
So with this example, I see (what looks like) the same result in the console, minus spatial reference info: Use Console Function to output messages.
{"fields":[{"name":"EQNum","type":"esriFieldTypeString"},{"name":"InspecDate","type":"esriFieldTypeDate"},{"name":"PtStatus","type":"esriFieldTypeString"}],"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":-7997522.018099999,"y":5207172.07},"attributes":{"EQNum":"EQ2013-026","InspecDate":"2020-07-29T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7997970.5297,"y":5214400.591300003},"attributes":{"EQNum":"EQ1989-015","InspecDate":"2020-09-30T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7993994.632999999,"y":5212258.8379999995},"attributes":{"EQNum":"EQ2020-052","InspecDate":"2020-10-19T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-8002495.5656,"y":5219019.943500005},"attributes":{"EQNum":"EQ2017-040","InspecDate":"2020-11-23T17:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7998590.2183,"y":5226627.4831000045},"attributes":{"EQNum":"EQ2021-020","InspecDate":"2021-04-21T16:00:00.000Z","PtStatus":"Unstable"}}]}
... View more
05-07-2021
09:51 AM
|
0
|
0
|
3814
|
|
POST
|
@XanderBakker I have tried figuring this out by browsing through GeoNet but can't find anything relating to this issue...I added the console function right before the return statement at the end, because this is still returning an empty dictionary. When I hit "Test" and view the output from the console, I see this: ["features returned",{"fields":[{"name":"EQNum","type":"esriFieldTypeString"},{"name":"InspecDate","type":"esriFieldTypeDate"},{"name":"PtStatus","type":"esriFieldTypeString"}],"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":-7997522.018099999,"y":5207172.07,"spatialReference":{"latestWkid":3857,"wkid":102100}},"attributes":{"EQNum":"EQ2013-026","InspecDate":"2020-07-29T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7997970.5297,"y":5214400.591300003,"spatialReference":{"latestWkid":3857,"wkid":102100}},"attributes":{"EQNum":"EQ1989-015","InspecDate":"2020-09-30T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7993994.632999999,"y":5212258.8379999995,"spatialReference":{"latestWkid":3857,"wkid":102100}},"attributes":{"EQNum":"EQ2020-052","InspecDate":"2020-10-19T16:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-8002495.5656,"y":5219019.943500005,"spatialReference":{"latestWkid":3857,"wkid":102100}},"attributes":{"EQNum":"EQ2017-040","InspecDate":"2020-11-23T17:00:00.000Z","PtStatus":"Unstable"}},{"geometry":{"x":-7998590.2183,"y":5226627.4831000045,"spatialReference":{"latestWkid":3857,"wkid":102100}},"attributes":{"EQNum":"EQ2021-020","InspecDate":"2021-04-21T16:00:00.000Z","PtStatus":"Unstable"}}]}] The console returns the 5 results I am looking for/know should be returned. I was unsure if this was happening because of the included geometry, so I removed that and tested again with the same result (console showing 5 features, but empty dictionary.
... View more
05-07-2021
09:05 AM
|
0
|
2
|
3974
|
|
POST
|
@XanderBakker Apologies for another question. I am trying to create a new data expression to populate a list with some basic information on these features that have no related records. I also want to pass through the geometry so I can then use the list to zoom to features in the map; this time I am maintaining the unique ID field "EQ File Number" which I hope will allow me to accommodate this. The code below is kind of a Frankenstein from the code you helped me with the other day and some other code I used in a different data expression. It creates the dictionary, but when I "Test" it just shows an empty table. I had figured I wanted to do all of this within the first for loop, but I am not really sure. If you had a suggestion, it would be appreciated. var p = 'https://www.arcgis.com';
var itemID_CMpts = 'xxx';
var layerID_CMpts = 0;
var relationshipName = "";
var fs1 = Filter(FeatureSetByPortalItem(Portal(p), itemID_CMpts, layerID_CMpts, ['Point_Status', 'EQ_File_Number', 'Inspection_Date'], true), "Point_Status ='Unstable' AND EQ_File_Number In ('EQ2015-078', 'Eq2013-026', 'EQ2018-082', 'EQ2018-052', 'EQ2001-080X', 'EQ2003-021', 'EQ1989-015', 'EQ2002-023', 'EQ2002-045X', 'EQ2019-110', 'EQ2020-017', 'EQ2019-091', 'EQ2018-029', 'EQ2020-033', 'EQ2019-036', 'EQ2020-052', 'EQ2019-064', 'EQ2017-040', 'EQ2020-031', 'EQ2021-003', 'EQ2011-016', 'EQ2017-026', 'EQ2021-020')");
var i = 0;
for (var f in fs1) {
var fs2 = FeatureSetByRelationshipName(f, relationshipName, ['Point_Status_revisit'], false);
var cnt = Count(fs2);
if (cnt == 0) {
i +=1;
// create data schema
var Dict = {
'fields': [
{'name': 'EQNum', 'type': 'esriFieldTypeString'},
{'name': 'InspecDate', 'type': 'esriFieldTypeDate'},
{'name': 'PtStatus', 'type': 'esriFieldTypeString'},
],
'geometryType': '',
'features':[]};
for (var f in fs1) {
attributes: {
EQNum: f["EQ_File_Number"],
InspecDate: f["Inspection_Date"],
PtStatus: f["Point_Status"],
},
};
i++
}
}
return FeatureSet(Text(Dict))
... View more
05-07-2021
06:59 AM
|
0
|
0
|
3979
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-06-2022 09:14 AM | |
| 6 | 10-24-2024 12:04 PM | |
| 1 | 04-28-2021 09:14 AM | |
| 3 | 09-06-2022 11:53 AM | |
| 1 | 01-17-2024 05:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-14-2025
01:16 PM
|