|
POST
|
Using ArcGIS Pro 2.1, prior to publishing a feature service to Portal/server 10.6, I added a simple constraint attribute rule that requires a field to be populated. Triggering event is Insert. if (IsEmpty($feature.species)) { return false; } else{ return true; } **the insert trigger makes online editing on a portal webmap impossible. You try to create a new feature and the validation fails prior to the attribute box being displayed so you can enter a value. Is this the expected behavior? **in Collector online mode, your allowed to collect a feature, and the attribute box is displayed as should be. After you populated all the fields, I purposely skip the required field and try to Submit the feature. I get a popup saying a field is required, the options on the popup are: Cancel / Retry. Hitting Retry doesn't work, obivously because the attribute value is still missing. Hitting Cancel deletes the draft feature and all attributes your had previously entered. Is this the expected behavior? Too bad the Cancel option doesn't return you to the previously completed attribute popup where you can correct the required entries....
... View more
02-28-2018
09:20 AM
|
0
|
0
|
553
|
|
POST
|
A1) Portal and server are federated, using built-in portal users/roles. Portal and datastore are on seperate VMs, guest OS is Ubuntu Server 16.04. Server and web adaptor are on the same VM, guest OS is Win Server 2012 R2. A2) Problematic log is attached. I deleted most of the domain records, they were lengthy. A3) Advanced template, single question publishes fine, no issue. Following A3: I opened the 2 .xls files side-by-side. I started copying single rows from the problematic .xls (Form1), then pasted values into the advanced template .xls (Form2). I opened the Form2 folder, and deleted the .itemInfo file In portal, I deleted the Survey-Form2 folder I republished Form2. Repeat this sequence for each new row added from Form1 to Form2. I got to the end of the survey, no errors in publishing!!! There must have been an issue with the Form1 .xls file. thanks.
... View more
02-18-2018
05:45 AM
|
0
|
1
|
2027
|
|
BLOG
|
thanks for the inspiration! I did something very similar, but created a PDF via XML/XSLT. survey123 sets ${already_emailed} = 'NO' by default query hosted feat. service for already_emailed = 'NO', return FeatureSet (bummer how this doesn't contain domains) via REST query domain info for each field via REST: /service_1232/FeatureServer/layerID logged BUG-000111606, queryDomains doesn't work for hosted feat. services set already_emailed = 'YES' via REST: /applyEdits open template XML file, loop over featureSet. Populate fields, use XML attributes to specify field has domain/not. style XML file using XSLT template via Etree module. This exports an .html file Convert .html to .pdf via pdfkit module Email PDF report to project manager via cronjob Best part is that all we have to do is point this .py to a new hosted feat. service (survey123 database) and it will start firing off new reports based on any fields!
... View more
02-17-2018
01:04 PM
|
0
|
0
|
18580
|
|
POST
|
I cannot publish my survey to enterprise 10.6. I get the following error, anyone ever see this before? JSONobject["timeInterval"] not found. Error code 500. I tried removing the type=time fields from the survey, same result. confirmed that I can publish hosted feat. service in portal logged in as site admin. thanks!
... View more
02-17-2018
12:28 PM
|
0
|
6
|
2610
|
|
POST
|
FYI: the solution is to convert to json string, then encode that payload = {'updates': json.dumps(featureList), 'token': accessToken, 'useGlobalIds': 'true', 'f': 'json'} query_string = urllib.urlencode(payload) req = urllib2.Request(url,query_string) resp = urllib2.urlopen(req)
... View more
01-19-2018
02:23 PM
|
1
|
0
|
1359
|
|
POST
|
featureList = [ { 'geometry': { 'y': 40.81670805699997, 'x': -96.71105736099997 }, 'attributes': { 'already_emailed': 'YES', 'objectid': 1, 'globalid': '{EEF86AC0-5B54-47E0-BFC8-496D457A6249}' } }, { 'geometry': { 'y': 40.816795984000066, 'x': -96.71107804500002 }, 'attributes': { 'already_emailed': 'YES', 'objectid': 2, 'globalid': '{723F5F66-98EE-4FE4-9075-31A476C60363}' } } ] I have the above list of dictionaries. I'm trying to update these 2 features using the REST API, applyEdits. I pasted the exact same list into the /applyEdits GUI on the REST endpoint and it was successful. Here's the error the server is throwing, related to the brackets around globalid val. Expected a ',' or '}' at character 138 of [{'geometry': {u'y': 40.81670805699997, u'x': -96.71105736099997}, 'attributes': {'already_emailed': 'YES', 'objectid': 1, 'globalid': u'{EEF86AC0-5B54-47E0-BFC8-496D457A6249}'}}, {'geometry': {u'y': 40.816795984000066, u'x': -96.71107804500002}, 'attributes': Here's the method I'm using to urlencode payload = {'updates': featureList, 'token': accessToken, 'useGlobalIds': 'true', 'f': 'json'} query_string = urllib.urlencode(payload) req = urllib2.Request(url,query_string) resp = urllib2.urlopen(req) can someone help me urlencode that list of dictionaries? thanks!
... View more
01-19-2018
01:03 PM
|
0
|
1
|
1504
|
|
POST
|
Here's the answer: When publishing to Portal, all field names have to be lower, (I'm assuming this is because my db backend is PostGreSQL). When the field name is within a repeat, survey123 misses the field name check. When the field is moved outside the repeat, then you get the friendly reminder from survey123 when you try to publish. UGH, learned something today.
... View more
01-16-2018
07:08 PM
|
0
|
1
|
811
|
|
POST
|
Portal for ArcGIS, publish from Desktop connect to the Portal, hosted feature service. We have a repeat with this: type: select_one species_domain name: species_name type: integer name: cover_pcnt end repeat The species_domain has about 200 rows on the choices tab. It seems like whatever I do, the survey never populates the in the hosted feature service. The records are there, but they're blank. Anyone ever had this before?
... View more
01-16-2018
04:07 PM
|
0
|
2
|
867
|
|
POST
|
thanks James, confirmed. I edited my comment above.
... View more
10-16-2017
10:25 AM
|
0
|
0
|
3924
|
|
POST
|
Edited This is a bug. Change calcField from type calculate to integer and everything works. I just added a bogus relavent expression for calcField so its never displayed to the user. Adding column bind::type and setting it to Integer also works. In this case you can leave the calcField to be type calculate.
... View more
10-13-2017
06:54 PM
|
1
|
0
|
3924
|
|
POST
|
Here's the general layout of the form. If selField = a, I want to set calcField to 1 for the repeat record. Then, the calculation in sumVal field should tally all the repeat records that have a value of 'a'. Well, the first sumVal is 1 if 'a' is selected, then you add a repeat select 'a' again, now the sumVal is 11. So, the sum() calculation is concatenating the 1's and not adding them. How do you get around this?? I have calcField and sumVal fields set to ESRI type Integer. type field_name calculation integer sumVal sum(${calcField}) begin repeat relatedTable List of Repeats select_one choiceList selField calculate calcField if(selected(${selField},'a',1,0) end repeat
... View more
10-13-2017
05:16 PM
|
0
|
8
|
5413
|
|
POST
|
We frequently run into this requirement, client wants to see the "field datasheet" submitted with the project deliverable, usually as an appendix of the report. Some client's accept a feat. class/table dump into a single excel table, some don't. In reality, a compiled single table that's produced by dumping the feat. classes and tables in the service is MUCH more useful, but none-the-less some people still like to see the raw "field datasheet". What's even more problematic is that clients often want the newly collected data to be recorded on their existing field datasheet PDF/Word template...ugh. I usually end up designing a template datasheet "form" in Excel. Alternatively, you can use a pre-existing template word doc that's just as easy to fill. Then, dump all feat. class/table data to a single Excel workbook separated into various worksheets, perhaps one for each related table. Then with a VGA macro, I open the blank template Excel/Word file, SAVE-AS and populate it by looping over the Excel worksheet(s), then export to PDF. The end product looks exactly like, or close to the client's field datasheet, minus the wet paper tears, field mud and illegible scribbles. But...a 'PRINT' button would sure be nice...hint hint ESRI.... To the OP, this probably isnt' what you were looking for, but is just how we've done it in the past. Once you setup the macro once, it's not that difficult to edit it for other projects. You'll find a lot of similarities, main data table, ancillary related tables (repeats), ect... BTW, I'm sure you could do this with Python also, but then you'll likely run into having to hunt for modules that can consume MS files.
... View more
10-13-2017
07:12 AM
|
0
|
2
|
3647
|
|
POST
|
ArcGIS Enterprise 10.5, Collector iOS17.0.3. Users get to the field, outside of WiFi coverage and after launching Collector on their iPad Mini are prompted to Login? Before leaving the office, they downloaded the map and NEVER logged out. How do users stay logged into our Portal in Version 17.0.3? thanks.
... View more
10-02-2017
08:32 AM
|
3
|
0
|
688
|
|
POST
|
Sorry I can't help We've since migrated to on-premise Portal for ArcGIS with a federated 10.5 server, datastore, dedicated Linux PostgreSQL db server, all on separate Win/Linux VM's. Its been flawless since 1 June. This solved the variety of syncing issues we were having, as well as little nuances like this thread. It's really nice to fire up Survey123 Connect and publish a survey to Portal that shows up as a hosted feature service, it's super easy and best part is that it doesn't consume credits.
... View more
09-14-2017
08:42 AM
|
1
|
0
|
5503
|
|
POST
|
I just rely on the help/tutorial docs ESRI publishes; I find them to be very thorough. Honestly, the system components are so complex it would be difficult to document everything. For example, I couldn't find hardly any documentation on portal REST API exportSite and importSite. Lots of docs on webgisdr utility, but the docs fail to mention that Linux/Win mix of OS's isn't supported (that's for another thread). A month ago we moved all 3 boxes to a single hyper-V core host. I supposed I could spin up another VM but resources are pretty taxed already. It would be expensive create a sandbox of the 3 VMs with MS and ESRI licensing being the biggest hurdle. I guess I could scrap WinServer1 for Ubuntu Linux3, it works just as well, if not better. Ubuntu Linux1- Portal Ubuntu Linux2 - PostgreSQL (SDE GDB backend) and Datastore WinServer1 - Server and 2 web adaptors WinServer2 - Domain Controller Like you said, next time I'll take snapshots of each box before I take the plunge. But, I know what I did wrong and I'm sure when I upgrade next time, it will go smoothly.
... View more
08-24-2017
05:19 PM
|
0
|
1
|
4310
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 06-19-2026 05:33 AM | |
| 1 | 05-02-2024 04:44 PM | |
| 1 | 11-04-2025 11:45 AM | |
| 1 | 10-31-2025 06:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|