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
Solved! Go to Solution.
@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:
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.
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
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
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
@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:
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.
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
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.
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.
Can you please let me know If I have missed anything.
P.S. I have checked server logs and found nothing.
@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?
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.