Bonjour, j'ai des difficultés à créer un réseau électrique utility network au sein de mon organisation. J'ai suivi les étapes de la documentation : Commencer avec la configuration du réseau utility network de distribution électrique014; Get Started | ArcGIS for Electric<\/A> et tout est configuré comme il se doit. J'utilise une base de données PostgreSQL 9.5.7. Mon problème commence au point 4.. J'ai réussi 2Stage the Utility Network2 mais chaque fois que j'essaie d'2Apply an asset package2, je reçois des erreurs. J'ai déjà essayé différentes configurations mais généralement l'erreur est : <\/P><\/P>Exécution du script AssetPackageToUtilityNetwork...<\/SPAN>ArcGIS Pro 2.1.1.10257<\/SPAN>untools 2.1.0.1<\/SPAN>Mise à jour du schéma sur ElectricDistributionAssembly<\/SPAN>Mise à jour du schéma sur ElectricDistributionDevice<\/SPAN>Mise à jour du schéma sur ElectricDistributionJunction<\/SPAN>Mise à jour du schéma sur ElectricDistributionLine<\/SPAN> ERREUR 999999 : Erreur lors de l'exécution de la fonction.<\/SPAN>Le sous-type existe déjà. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>Échec de l'exécution (AddSubtype).<\/SPAN>EXCEPTION<\/SPAN>Traceback (appel le plus récent en dernier) :<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\common\\wrappers.py", ligne 90, dans wrapper<\/SPAN> retour func(*args, **kwargs)<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\gptools\\tools.py", ligne 300, dans run<\/SPAN> share.schema_apply()<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", ligne 504, dans schema_apply<\/SPAN> retour self.apply()<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", ligne 450, dans apply<\/SPAN> résultat = func(**kwargs)<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", ligne 16618, dans AddSubtype<\/SPAN> lever e<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", ligne 16615, dans AddSubtype<\/SPAN> retval = convertArcObjectToPythonObject(gp.AddSubtype_management(*gp_fixargs((in_table, subtype_code, subtype_description), True)))<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\geoprocessing\\_base.py", ligne 506, dans <lambda><\/SPAN> retour lambda *args : val(*gp_fixargs(args, True))<\/SPAN>arcgisscripting.ExecuteError : ERREUR 999999 : Erreur lors de l'exécution de la fonction.<\/SPAN>Le sous-type existe déjà. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>Échec de l'exécution (AddSubtype).<\/SPAN> Échec de l'exécution (AssetPackageToUtilityNetwork).<\/SPAN><\/PRE><\/P>Comme package d'actifs, j'utilise la géodatabase par défaut ElectricDistribution_AssetPackage.gdb, je vérifie à la fois Structure et ElectricDistribution et comme entrée j'utilise le Utility Network créé à l'étape précédente. Je ne charge pas encore les données car pour l'instant je souhaite avoir juste un schéma. <\/P>Quelqu'un pourrait-il me dire ce que je fais mal ? Je crois qu'il y a un détail qui se cache derrière la logique du modèle Utility Network mais comme la documentation décrit le processus assez brièvement, je n'arrive pas à trouver l'approche appropriée.<\/P><\/BODY><\/HTML>
<\/P>
Exécution du script AssetPackageToUtilityNetwork...<\/SPAN>ArcGIS Pro 2.1.1.10257<\/SPAN>untools 2.1.0.1<\/SPAN>Mise à jour du schéma sur ElectricDistributionAssembly<\/SPAN>Mise à jour du schéma sur ElectricDistributionDevice<\/SPAN>Mise à jour du schéma sur ElectricDistributionJunction<\/SPAN>Mise à jour du schéma sur ElectricDistributionLine<\/SPAN> ERREUR 999999 : Erreur lors de l'exécution de la fonction.<\/SPAN>Le sous-type existe déjà. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>Échec de l'exécution (AddSubtype).<\/SPAN>EXCEPTION<\/SPAN>Traceback (appel le plus récent en dernier) :<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\common\\wrappers.py", ligne 90, dans wrapper<\/SPAN> retour func(*args, **kwargs)<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\gptools\\tools.py", ligne 300, dans run<\/SPAN> share.schema_apply()<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", ligne 504, dans schema_apply<\/SPAN> retour self.apply()<\/SPAN> Fichier "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", ligne 450, dans apply<\/SPAN> résultat = func(**kwargs)<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", ligne 16618, dans AddSubtype<\/SPAN> lever e<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", ligne 16615, dans AddSubtype<\/SPAN> retval = convertArcObjectToPythonObject(gp.AddSubtype_management(*gp_fixargs((in_table, subtype_code, subtype_description), True)))<\/SPAN> Fichier "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\geoprocessing\\_base.py", ligne 506, dans <lambda><\/SPAN> retour lambda *args : val(*gp_fixargs(args, True))<\/SPAN>arcgisscripting.ExecuteError : ERREUR 999999 : Erreur lors de l'exécution de la fonction.<\/SPAN>Le sous-type existe déjà. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>Échec de l'exécution (AddSubtype).<\/SPAN> Échec de l'exécution (AssetPackageToUtilityNetwork).<\/SPAN><\/PRE><\/P>Comme package d'actifs, j'utilise la géodatabase par défaut ElectricDistribution_AssetPackage.gdb, je vérifie à la fois Structure et ElectricDistribution et comme entrée j'utilise le Utility Network créé à l'étape précédente. Je ne charge pas encore les données car pour l'instant je souhaite avoir juste un schéma. <\/P>Quelqu'un pourrait-il me dire ce que je fais mal ? Je crois qu'il y a un détail qui se cache derrière la logique du modèle Utility Network mais comme la documentation décrit le processus assez brièvement, je n'arrive pas à trouver l'approche appropriée.<\/P><\/BODY><\/HTML>
Hmm that is odd. What version of sewer are you using? You can open the _Version table in the asset package and paste the contents here.
UNtools Version 2.5.1. I also tried the asset package to file geodatabase, with the same error. Thanks for the quick response.
Hi Heather,
Can you confirm which version of untools you have (it should be printed at the top of the GP messages)?
The Utility Network works on file geodatabase. You can use Asset Package to File Geodatabase—Tool Reference | ArcGIS Solutions to quickly get started.
Hello, I am trying to just view the Sewer Utility Network. I want to check out the functionality of trace and learn how to find problems with the network and see if it would be useful to my clients. I followed the steps to create a utility network, and got a similar error as above. I don't want to add any of my data, just view what came with the package but it hangs up on the apply asset package. Is there a more detailed step by step instructions to just create a network and see how it works? I am using Pro 2.5.1. I have no maps open, I downloaded the lates UNTools. This is the error I keep getting.
ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.Failed to execute (ImportXMLWorkspaceDocument). Failed to execute (AssetPackageToUtilityNetwork).
Am I missing something? Does this only work in an Enterprise environment? The documentation said it could work with a File Geodatabase.
Any help would be greatly appreciated.
If you look at the feature classes, can you verify the features where appended?
You can try the import association again, you will need to modify the AP_workspace folder that was created. In there, open the main.py and remove calls prior to the import associations call. Using the python command prompt, run that by file.
Hi Michael,
Here is the entire message.
"MessagesStart Time: Tuesday, August 27, 2019 1:37:04 PMRunning script AssetPackageToUtilityNetwork...ArcGIS Pro 2.4.19948untools 2.4.1Executing from ArcGIS Pro, 3 map(s), activeMap = TrueParallel processing enabled: 3Asset Package schema version: 2.42019-08-27 18:31:59 Starting 3 processes for Append2019-08-27 18:36:22 Starting StructureJunction...2019-08-27 18:36:22 Finished StructureJunction (0:03:59)...2019-08-27 18:37:37 Starting ElectricDevice...2019-08-27 18:37:37 Finished ElectricDevice (0:05:15)...2019-08-27 18:39:13 Starting ElectricJunction...2019-08-27 18:39:13 Finished ElectricJunction (0:02:35)...2019-08-27 18:39:40 Starting ElectricAssembly...2019-08-27 18:39:40 Finished ElectricAssembly (0:01:47)...2019-08-27 18:40:07 Starting ElectricDeviceUnit...2019-08-27 18:40:07 Finished ElectricDeviceUnit (0:00:15)...2019-08-27 18:40:40 Starting ElectricJunctionA...2019-08-27 18:40:40 Finished ElectricJunctionA (0:00:20)...2019-08-27 18:40:52 Starting StructureBoundary...2019-08-27 18:40:52 Finished StructureBoundary (0:01:27)...2019-08-27 18:41:19 Starting ElectricLineA...2019-08-27 18:41:19 Finished ElectricLineA (0:00:25)...2019-08-27 18:41:28 Starting ElectricWireData...2019-08-27 18:41:28 Finished ElectricWireData (0:00:20)...2019-08-27 18:41:37 Starting ElectricLine...2019-08-27 18:41:37 Finished ElectricLine (0:09:15)...2019-08-27 18:51:37 Starting 3 processes for ImportAssociations2019-08-27 18:53:58 Starting Associations_001...2019-08-27 18:53:58 Start Time: Tuesday, August 27, 2019 6:52:29 PMERROR 001896: Invalid association parameters (row 2). A requested row object could not be located. .Failed to execute (ImportAssociations).Failed at Tuesday, August 27, 2019 6:52:41 PM (Elapsed Time: 11.77 seconds)2019-08-27 18:53:58 Starting Associations_003...2019-08-27 18:53:58 Start Time: Tuesday, August 27, 2019 6:52:29 PM ERROR 001896: Invalid association parameters (row 2). A requested row object could not be located. .Failed to execute (ImportAssociations).Failed at Tuesday, August 27, 2019 6:52:41 PM (Elapsed Time: 11.73 seconds)2019-08-27 18:53:58 Starting Associations_002...2019-08-27 18:53:58 Start Time: Tuesday, August 27, 2019 6:52:29 PM ERROR 001896: Invalid association parameters (row 2). A requested row object could not be located. .Failed to execute (ImportAssociations).Failed at Tuesday, August 27, 2019 6:52:41 PM (Elapsed Time: 11.75 seconds) Failed to execute (AssetPackageToUtilityNetwork).Failed at Tuesday, August 27, 2019 6:54:01 PM (Elapsed Time: 5 hours 16 minutes 56 seconds)".
Could you share the entire message? What version of pro/untools?
Possibly, there are records in C_Associations table where from/to globalid does not exist in the specified from/to feature class.
Hi Paul,I am trying to create Electric Utility Network using Electric Asset Package tool. I got an error in Apply Asset Package that I cannot figure out how to fix.
I am using ArcGis pro 2.4.0 and asset package 3.1 version.
ERROR 001896: Invalid association parameters (row 2). A requested row object could not be located. .Failed to execute (ImportAssociations).
Any help is much appreciated.
Is there a map in your project with the UN layers added to it? Sometimes, that will happen even if the map is closed.
Otherwise, I'm not sure. If you run Apply again, does it fail in the same place?
Hi UN Team,
I am trying to build Electric Utility Network for a client here using Electric Asset Package with no changes. I get an error in Apply Asset Package that I cannot figure out how to fix.
ParametersAsset Package \Projects\UtilityNetworkBuild\Electric_AssetPackage_GDA94.gdbDomain Networks to apply Structure;ElectricDistribution;ElectricTransmissionInput Utility Network \Projects\UtilityNetworkBuild\BasicPackage\netadmin.sde\UN.NETADMIN.Networks\UN.NETADMIN.UNElectricLoad data trueCalculate Spatial Index and Analyze trueOutput Utility Network MessagesStart Time: Thursday, 24 January 2019 5:07:58 PMRunning script AssetPackageToUtilityNetwork...ArcGIS Pro 2.2.4.12813untools 2.2.2 ERROR 999999: Something unexpected caused the tool to fail. Please refer to the error help for potential solutions, or contact Esri Technical Support http://esriurl.com/support.Table is already locked [Table is already locked[UN.NETADMIN.ElectricDistributionDevice.SUBNETWORKNAME]]Failed to execute (AddTier). Failed to execute (AssetPackageToUtilityNetwork).Failed at Thursday, 24 January 2019 5:20:30 PM (Elapsed Time: 12 minutes 31 seconds)
There is no other app open, no map open, no SDE connection open. So not sure why "Table is already locked" unless there is some race condition in the tool.
I had same error and not having map open helped. Just that error message doesn't relate anyway with map being open.
Paul, thank you for help. I established new connection to newly created PostgreSQL database, staged UN again, and 'apply asset package' finally worked.
You might want to try with a new UN if you are still getting the same error. When there is a map open, the layers are locked and unlocked hundreds of times.
'Stage the Utility Network' only ever creates the structure classes -- the domain network classes (in your case Electric Distribution), are added by 'Add Domain Network'
Thank you for quick reply! I had always background map open but I closed it today and run again and I got the same error. Answering your second question I am not sure if my previous step 'Stage the Utility Network' works correctly. After running it I am getting only layers from Structure Domain network:
Is it correct? When I start running 'Apply Asset Package', Electric Distribution Domain Network five classes are being created and then the process fails. So I am not sure where can I find subtype view on ElectricDistributionAssembly.
Did you have any maps open when running `Apply Asset Package`?
If you look are the subtype view on ElectricDistributionAssembly, does it match the properties page of the UN?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.