Olá, estou tendo dificuldades para criar uma rede elétrica Utility dentro da minha organização. Segui os passos da documentação: Comece com a Configuração da Rede Utility de Distribuição Elétricacomece | ArcGIS for Electric<\/A> e tudo está configurado como deveria. Estou usando o banco de dados PostgreSQL 9.5.7. Meu problema começa no ponto 4.. Consegui 'Preparar a Rede Utility' mas toda vez que tento 'Aplicar um pacote de ativos' recebo erros. Já tentei diferentes configurações, mas geralmente o erro é: <\/P><\/P>Executando script AssetPackageToUtilityNetwork...<\/SPAN>\nArcGIS Pro 2.1.1.10257<\/SPAN>\nuntools 2.1.0.1<\/SPAN>\nAtualizando esquema em ElectricDistributionAssembly<\/SPAN>\nAtualizando esquema em ElectricDistributionDevice<\/SPAN>\nAtualizando esquema em ElectricDistributionJunction<\/SPAN>\nAtualizando esquema em ElectricDistributionLine<\/SPAN>\n ERRO 999999: Erro ao executar função.<\/SPAN>\nO subtipo já existe. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>\nFalha ao executar (AddSubtype).<\/SPAN>\nEXCEÇÃO<\/SPAN>\nRastreamento (última chamada mais recente):<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\common\\wrappers.py", linha 90, em wrapper<\/SPAN>\n retorna func(*args, **kwargs)<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\gptools\\tools.py", linha 300, em run<\/SPAN>\n share.schema_apply()<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", linha 504, em schema_apply<\/SPAN>\n retorna self.apply()<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", linha 450, em apply<\/SPAN>\n resultado = func(**kwargs)<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", linha 16618, em AddSubtype<\/SPAN>\n levanta e<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", linha 16615, em AddSubtype<\/SPAN>\n retval = convertArcObjectToPythonObject(gp.AddSubtype_management(*gp_fixargs((in_table, subtype_code, subtype_description), True)))<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\geoprocessing\\_base.py", linha 506, em <lambda><\/SPAN>\n retorna lambda *args: val(*gp_fixargs(args, True))<\/SPAN>\narcgisscripting.ExecuteError: ERRO 999999: Erro ao executar função.<\/SPAN>\nO subtipo já existe. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>\nFalha ao executar (AddSubtype).<\/SPAN>\n Falha ao executar (AssetPackageToUtilityNetwork).<\/SPAN><\/PRE><\/P>Como Pacote de Ativos estou usando a geodatabase padrão ElectricDistribution_AssetPackage.gdb, estou verificando tanto Estrutura quanto ElectricDistribution e como Entrada estou usando a Rede Utility criada na etapa anterior. Não estou carregando dados por enquanto, gostaria apenas de ter um esquema. <\/P>Alguém poderia me dizer o que estou fazendo errado? Acredito que há algum detalhe que está por trás da lógica do Modelo da Rede Utility, mas como a documentação descreve o processo de forma bastante breve, não consigo descobrir a abordagem apropriada.<\/P><\/BODY><\/HTML>
<\/P>
Executando script AssetPackageToUtilityNetwork...<\/SPAN>\nArcGIS Pro 2.1.1.10257<\/SPAN>\nuntools 2.1.0.1<\/SPAN>\nAtualizando esquema em ElectricDistributionAssembly<\/SPAN>\nAtualizando esquema em ElectricDistributionDevice<\/SPAN>\nAtualizando esquema em ElectricDistributionJunction<\/SPAN>\nAtualizando esquema em ElectricDistributionLine<\/SPAN>\n ERRO 999999: Erro ao executar função.<\/SPAN>\nO subtipo já existe. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>\nFalha ao executar (AddSubtype).<\/SPAN>\nEXCEÇÃO<\/SPAN>\nRastreamento (última chamada mais recente):<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\common\\wrappers.py", linha 90, em wrapper<\/SPAN>\n retorna func(*args, **kwargs)<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\gptools\\tools.py", linha 300, em run<\/SPAN>\n share.schema_apply()<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", linha 504, em schema_apply<\/SPAN>\n retorna self.apply()<\/SPAN>\n Arquivo "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\untools\\utils\\shared_validation.py", linha 450, em apply<\/SPAN>\n resultado = func(**kwargs)<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", linha 16618, em AddSubtype<\/SPAN>\n levanta e<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\management.py", linha 16615, em AddSubtype<\/SPAN>\n retval = convertArcObjectToPythonObject(gp.AddSubtype_management(*gp_fixargs((in_table, subtype_code, subtype_description), True)))<\/SPAN>\n Arquivo "c:\\program files\\arcgis\\pro\\Resources\\arcpy\\arcpy\\geoprocessing\\_base.py", linha 506, em <lambda><\/SPAN>\n retorna lambda *args: val(*gp_fixargs(args, True))<\/SPAN>\narcgisscripting.ExecuteError: ERRO 999999: Erro ao executar função.<\/SPAN>\nO subtipo já existe. [un.andreasbv.ElectricDistributionAssembly]<\/SPAN>\nFalha ao executar (AddSubtype).<\/SPAN>\n Falha ao executar (AssetPackageToUtilityNetwork).<\/SPAN><\/PRE><\/P>Como Pacote de Ativos estou usando a geodatabase padrão ElectricDistribution_AssetPackage.gdb, estou verificando tanto Estrutura quanto ElectricDistribution e como Entrada estou usando a Rede Utility criada na etapa anterior. Não estou carregando dados por enquanto, gostaria apenas de ter um esquema. <\/P>Alguém poderia me dizer o que estou fazendo errado? Acredito que há algum detalhe que está por trás da lógica do Modelo da Rede Utility, mas como a documentação descreve o processo de forma bastante breve, não consigo descobrir a abordagem apropriada.<\/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?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.