Select to view content in your preferred language

Network Diagram Not working with feature service

506
10
Jump to solution
10-09-2025 04:35 AM
RaghavGupta
Regular Contributor

Hi

I am able to create network diagram when I am using database connection from enterprise geodatabase. However, When I am adding the service for same it is not able to create the network diagram. the error says " 002930: Failed to create diagram". 

I have checked thoroughly the database is branched version. The diagram template is visible at service rest endpoint. I am trying to create the network diagram at ArcGIS Pro. I have even tried opening the new aprx and then tried but still it didn't work.  

Has anybody faced this before or this is the reported bug in ArcGIS Pro 3.5.3. 

@RobertKrisher , Can you please help here.

Thank You 

Regards

Raghav

0 Kudos
1 Solution

Accepted Solutions
AnneYvonneBlin
Esri Contributor

@RaghavGupta: It looks like your diagram layer definition is out of using...

Could you please confirm this assumption by running the following workflow steps

1/ Load the Alter Diagram Template tool and set it up as below:

  • Input Network: Browse to and select your network using your .sde direct connection
  • Input Diagram Template: select the diagram template you are testing
  • Focus on the "Reset the diagram template layer definition to default" box and check this option
  • Keep all the other tool parameters like they are

2/ Click Run

3/ Exit Pro

4/ Start your Server Manager and restart your service

5/ Start Pro with your UN service and retest your diagram creation

Could you please confirm that you no longer see any red exclamatory sign against each layer? 

These default layer properties probably do not fit your expectations, but you should now be in a better shape and see the diagram features in the generated diagrams.
Then, to customize your diagram layer definition, please have a look to the following video: Defining Nice Layers for Better Network Diagrams
The diagram layer definition customization workflows detailed in this video are all run using a direct connection. If you have various diagram templates, it is strongly recommended to initialize the same diagram layer definition on each diagram template or at least, limit the number of various diagram layer definitions you initialized on your diagram templates.
Once this customization complete, do not forget to restart your service and start a new Pro session before testing.

View solution in original post

0 Kudos
10 Replies
CodyPatterson
MVP Regular Contributor

Hey @RaghavGupta 

In the error message, is there anything more with it? If you hit show history or similar? There should be some information that may gleam why this could be happening, also, are there any errors on the Server Manager or Portal logs when this happens?

Cody

0 Kudos
AnneYvonneBlin
Esri Contributor

Hello @RaghavGupta 

Indeed, the diagram creation should properly complete whether you are consuming the input network elements via a direct connection or via the related service.

- Did you stop and restart the service after your diagram template configuration, then exit and restart Pro before testing the diagram generation? 
- Also could you please make sure that you are trying to create your test diagram with the exact same input as the one you successfully tested via the direct connection?

Please let us know

Anne-Yvonne

0 Kudos
RaghavGupta
Regular Contributor

Hello  @AnneYvonneBlin

Please have a look at below points.

1.) I have tried stopping and restarting the services and I am able to create the diagram. However, there is no data coming in the diagram. The diagram shows Red exclamatory sign against each layer and says subtype value no longer valid. 

Though We haven't change anything.

2.) I assure we are using the same input from services as with database connection.

Thanks 

Raghav

0 Kudos
AnneYvonneBlin
Esri Contributor

@RaghavGupta: It looks like your diagram layer definition is out of using...

Could you please confirm this assumption by running the following workflow steps

1/ Load the Alter Diagram Template tool and set it up as below:

  • Input Network: Browse to and select your network using your .sde direct connection
  • Input Diagram Template: select the diagram template you are testing
  • Focus on the "Reset the diagram template layer definition to default" box and check this option
  • Keep all the other tool parameters like they are

2/ Click Run

3/ Exit Pro

4/ Start your Server Manager and restart your service

5/ Start Pro with your UN service and retest your diagram creation

Could you please confirm that you no longer see any red exclamatory sign against each layer? 

These default layer properties probably do not fit your expectations, but you should now be in a better shape and see the diagram features in the generated diagrams.
Then, to customize your diagram layer definition, please have a look to the following video: Defining Nice Layers for Better Network Diagrams
The diagram layer definition customization workflows detailed in this video are all run using a direct connection. If you have various diagram templates, it is strongly recommended to initialize the same diagram layer definition on each diagram template or at least, limit the number of various diagram layer definitions you initialized on your diagram templates.
Once this customization complete, do not forget to restart your service and start a new Pro session before testing.

0 Kudos
RaghavGupta
Regular Contributor

Hi AnneYvonneBlin

As you mentioned correctly, after resetting the layer definition it is working as expected. However, After that i have set the diagram layer definition again on same template. I have exported the diagram layer definition from existing templates provided by esri. After that I have closed the ArcGIS Pro and restart the services from ArcGIS manager. Then I opened the new instance of ArcGIS Pro and added the services and tried selected my area of interest and tried creating Network diagram but this time It failed again giving same error of Subtype value no longer available

Thanks

Raghav

0 Kudos
AnneYvonneBlin
Esri Contributor

Hi @RaghavGupta 

"I have exported the diagram layer definition from existing templates provided by esri." => That's where the problem lies. Diagram layer definition coming from existing templates we provide are designed for this only provided UN dataset or a copy of this UN dataset. It is built for the domain network source classes/object tables, asset types and asset groups in this dataset. But, it cannot fit your UN data model for which the domain network source classes/object tables, asset types and asset groups are not the same.
In your case, you need to fully build your own diagram layer definition as detailed in the video: Defining Nice Layers for Better Network Diagrams video.

0 Kudos
RaghavGupta
Regular Contributor

Hi AnneYvonneBlin

 

I have gone through the video and I have followed the same steps. Only thing I want to do is that the network diagram should be reflecting same symbology from aprx. For which, I have done the below steps in following order.

  1. Add diagram template to add new template and didn't give any value to below parameters Rule and Layout Definitions File,  Diagram Layer Definition File.
  2. Then, I have simply run the Create Diagram layer definition tool to use the same symbology settings in my network diagram. I have given below parameter values in the respective parameters.
    1. In Input network I have given utility network from map.
    2. In Input Diagram Template I have given the template which i have created in step 1
    3. In Points for edges reduced as junctions or collapsed polygons params, I have removed the line features.
    4. Click on Run to update the layer definition of the template.
    5. After tool ran successfully, closed the ArcGIS Pro.
    6. Restarted the services from server manager.
    7. Opened ArcGIS Pro and added the services in new map.
    8. Selecting the some area on map 
    9. Tried creating network diagram, but still the issue persists. (Subtype value no longer no longer available.)

Can you please let me know If I have missed anything.

P.S. I have checked server logs and found nothing.

0 Kudos
AnneYvonneBlin
Esri Contributor

@RaghavGupta : Could you please publish the network map you used as an input when you run the Create Diagram Layer Definition tool and test the diagram creation using this newly published service?

0 Kudos
RaghavGupta
Regular Contributor

Hey, AnneYvonneBlin, I have tried publishing new service and then creating network diagram out of it. but it still the problem remains same.  I have even tried by closing the aprx and then opening the new aprx and adding the services in new aprx but it's not resolving the issue.

0 Kudos