Select to view content in your preferred language

Pre-set templates not stored in web map

207
11
a week ago
HanliePetoors
Frequent Contributor

Hi,

I'm working in ArcGIS Pro 3.6.1 and Enterprise 11.5 and we have a Utility Network published as a service.

I would like to make pre-set templates available to 60+ editors of the network.

The only way I could get this to work was to create a layer package for the base feature of the pre-set template. Then I added that to a web map in ArcGIS Pro, and then I created a Project Package for sharing through Portal.

I could not get the pre-set templates to save to the web map no matter what I tried.

I also tried enabling Shared Template Editing in the service, to no avail.

Has anyone managed to store a pre-set template for features coming from a service in a web map? If so, could you share your workflow please?

 

Thanks

Hanlie

0 Kudos
11 Replies
JenniferCadkin
Esri Contributor

Please review this help topic:  https://doc.esri.com/en/arcgis-pro/latest/help/editing/store-editing-templates-in-a-database.html 

Editing templates need to be stored in a data store to be accessible in the feature service.  

Please let us know if you have further questions getting this set up.

 

0 Kudos
MichaelHirschheimer
Esri Contributor

Hi @HanliePetoors,

Take a look at ArcGIS Blog, Configuration options for utility network editing in ArcGIS Web Editor

This Utility Network specific blog covers the steps needed to make edit templates accessible to applications like the ArcGIS Web Editor

0 Kudos
HanliePetoors
Frequent Contributor

Thank you for the replies.

I managed to store a template for use in the web editor but I get this error when I try to use it.

HanliePetoors_0-1785737537329.png

At this stage I need the preset templates in ArcGIS Pro; field maps will come later. These editors need the full editing function of Pro.

Regards

Hanlie

 

 

0 Kudos
CraigGillgrass
Esri Regular Contributor

@HanliePetoors couple questions

  1. What is the template?  Group or Preset?  If Group, what Builders are you using?
  2. are you able to capture the network traffic so we can see what the error is?  If you are using Chrome, this is available under View > Developer > Developer tools. Have this window open before click "Create Features" and selecting the feature template. You should see an error - if you can expand it and that error, this should help identify the issue
0 Kudos
HanliePetoors
Frequent Contributor

@CraigGillgrass I decided to start from scratch using the blog post linked above.

The service was already set to use Shared Template Editing

HanliePetoors_0-1785849533274.png

I created my pre-set templates and stored them in a web map that used the feature service as a data source.

HanliePetoors_1-1785849587854.png

Then I saved the Web Map and opened it in Web editor, no pre-set templates.

Then I checked the server logs and I found this:

HanliePetoors_2-1785849678338.png

 

I was logged in to the portal as portaladmin.

Any ideas?

Thanks

Hanlie

0 Kudos
CraigGillgrass
Esri Regular Contributor

@HanliePetoors thanks for this information. It looks like the issue could be with the storing of the templates, based on the server log error. 

Are there any errors in Developer tools when you open the web map and click Create Features in Web Editor?

 

0 Kudos
HanliePetoors
Frequent Contributor

@CraigGillgrass I started from scratch again. I followed these steps:

1. Create a new map in Pro, add the UN service (no subtype layers). Stay in the DEFAULT version of the service.

2. Create a preset template.

3. Store all editing templates. The preset template shows in the database:

HanliePetoors_1-1785918762477.png

 

4. Publish the map.

5. Open the map in map viewer and add the dirty areas. Save map

6. Open the map in web editor.

7. Change the version.

8. Find the preset template - it's there.

HanliePetoors_2-1785918897117.png

9. Click on the map to create the features. I no longer get the error I used to get, but no features are created. At this point I see in the Console of the Developer Tools the following:

HanliePetoors_0-1785918640724.png

The Network tab in Developer Tools has no errors

HanliePetoors_3-1785919039806.png

Thanks for your help.

Regards

Hanlie

0 Kudos
CraigGillgrass
Esri Regular Contributor

@HanliePetoors ok, this helps, few more questions

  1. Does this Preset template have any True Curves in it?
  2. Have you published any Group templates?  If so, when you try and use them in the Web Editor, do they also error or are you successful?
  3.  

 

0 Kudos
HanliePetoors
Frequent Contributor

@CraigGillgrass I managed to create a group template and get it to display in the web editor. I could create the features successfully.

I again got the error I previously mentioned 'Editing failed' when I tried to use a preset template and the Console window of the Developer tools displayed this:

HanliePetoors_0-1786008252766.png

In the Network window I see this for the Header:

Request Method
GET
Status Code
304 Not Modified
 
Payload is this
f
json
outSR
{"latestWkid":3857,"wkid":102100}
ids
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
token
HhTYoEtlZ1ISWkvim-K2lqDD7qAyxQvPwjIll9Hy5nYdYL0xrMcnajHnWHCCpOgr0sF78NenrpWBVLfc8xjdVz6KtgAe4G1Q7eNCXUc-EhU6JrSLG_fWBA7qmCQBMXDFTtEdsyIdiNTq_PpySm37_L2LVFBS2mkR0NxaodoHVTkcyaGOoiHKkQayZZ7jmTXeTTymfzoIEGpPQsGv3ryADb9fx0SbAOfVOQzBKQ0uL_Nkh4IbquSVYsRJKQnN7vRFD7uqIzicMKfmdsyBuxbGZA..

 

Preview:
HanliePetoors_1-1786008697490.png

 

Thanks

Hanlie

 

0 Kudos