Share named trace configuration in webmap - missing JSON parameter

235
4
Jump to solution
10-21-2021 06:25 PM
PierreloupDucroix
New Contributor III

Hi,

I try to figure out how to share a named trace configuration in order to use it through ArcGIS Enterprise.

What I have done so far :

- share a UN service to ArcGIS Entreprise 10.9

- create a webmap in Pro that uses the UN services

- add trace configurations to the map and enable sharing option

PierreloupDucroix_1-1634865076638.png

 

Now they are properly listed in my UN properties :

PierreloupDucroix_2-1634865374151.png

 

- share the webmap with Portal

Now I want to use this trace with the un-js-api-demo from https://github.com/hussein-nasser/un-js-api-demo

- connect the html exemple to the portal and webmap ItemID

- the authored traces are listed

PierreloupDucroix_3-1634865707710.png

 

- when tracing after adding a starting point :

{"success":false,"error":{"extendedCode":-2147208597,"message":"Un paramètre requis est absent du fichier JSON.","details":[]}}

--> parameter missing from the JSON file

Any idea ? Is the trace JSON configuration saved within the webmap JSON ?

 

 

0 Kudos
1 Solution

Accepted Solutions
HusseinNasser2
Esri Contributor
0 Kudos
4 Replies
HusseinNasser2
Esri Contributor

I just pushed a fix for few bugs that I found, can you try again?

https://github.com/hussein-nasser/un-js-api-demo/blob/master/un-js-api-demo.html

 

0 Kudos
PierreloupDucroix
New Contributor III

Hi Hussein,

Thank you, it works with the -421.html file !

PierreloupDucroix_0-1635119009252.png

 

I still have a question, where is the JSON representing the trace configuration stored ? When looking at my webmap's JSON, I only see little information on the UN and Trace Configuration :

PierreloupDucroix_2-1635119846374.png

 

Regards

0 Kudos
HusseinNasser2
Esri Contributor

When you share a webmap with named trace configuration, the GUIDs of the trace configuration is persisted in the webmap definition along side the utility network layer. The full definition of the trace configuration can be retrieved through the UtilityNetworkServer by passing the GUID to /trace. This is so that you can alter the trace configuration without republishing the webmap and also to keep the definition of the webmap compact.

 

HusseinNasser2_0-1635173806657.png

 

PierreloupDucroix
New Contributor III

Thank you for the clarification

0 Kudos