Bonjour à tous !
J'ai essayé plusieurs fois, avec différentes variantes, mais sans succès pour appliquer un Asset Package à un fichier Utility Network .GDB :
Voici le message :<\/P>
ArcGIS Pro 3.2.2.49743
untools 3.2.0
Exécution depuis ArcGIS Pro, 0 carte(s), activeMap = False
Traitement parallèle activé : 6<\/P>
Version du schéma du Asset Package : 3.1
Répertoire de staging -- C:\UN_V2_2\ZERO\AP_Workspace
Le package d'actifs présente les avertissements suivants (13\/13) :
Item Field OID Value Message Level
0 ElectricAssembly CustAtt_heightReferenceSurveyingZ None None Ce champ est trop long pour certaines plateformes de base de données warning
1 ElectricDevice TapchangerDriveDateManufacture None None Ce champ est trop long pour certaines plateformes de base de données warning
2 ElectricDevice Triggering_ShortCircuitCurrent None None Ce champ est trop long pour certaines plateformes de base de données warning
3 ElectricDevice CustAtt_typeCustomerServicepoint None None Ce champ est trop long pour certaines plateformes de base de données warning
4 ElectricDevice NoDomain_BreakingChInsulMedium None None Ce champ est trop long pour certaines plateformes de base de données warning
5 ElectricDevice CustAtt_heightReferenceSurveyingz None None Ce champ est trop long pour certaines plateformes de base de données warning
6 ElectricJunction CustAtt_heightReferenceSurveyingZ None None Ce champ est trop long pour certaines plateformes de base de données warning
7 ElectricJunctionObject TapchangerDriveDateManufacture None None Ce champ est trop long pour certaines plateformes de base de données warning
8 ElectricJunctionObject NoDomain_BreakingChInsulMedium None None Ce champ est trop long pour certaines plateformes de base de données warning
9 ElectricLine CustAtt_heightReferenceSurveyingz None None Ce champ est trop long pour certaines plateformes de base de données warning
10 StructureBoundary CustAtt_heightReferenceSurveyingz None None Ce champ est trop long pour certaines plateformes de base de données warning
11 StructureJunction CustAtt_heightReferenceSurveyingZ None None Ce champ est trop long pour certaines plateformes de base de données warning
12 StructureLine CustAtt_heightReferenceSurveyingZ None None Ce champ est trop long pour certaines plateformes de base de données warning
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:255
ERREUR 002717 : Expression Arcade invalide, erreur Arcade : Table non trouvée LineTypeLib, ligne du script : 1 [LineTypeLib]
AVERTISSEMENT 000952 : Échec d'exécution (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:288
ERREUR 002717 : Expression Arcade invalide, erreur Arcade : Table non trouvée LineTypeLib, ligne du script : 1 [LineTypeLib]
AVERTISSEMENT 000952 : Échec d'exécution (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:321
ERREUR 002717 : Expression Arcade invalide, erreur Arcade : Table non trouvée LineTypeLib, ligne du script : 2 [LineTypeLib]
AVERTISSEMENT 000952 : Échec d'exécution (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:364
ERREUR 002717 : Expression Arcade invalide, erreur Arcade : Table non trouvée LineTypeLib, ligne du script : 2 [LineTypeLib]
AVERTISSEMENT 000952 : Échec d'exécution (AddAttributeRule).
Échec du script Apply Asset Package...
Échec d'exécution (AssetPackageToUtilityNetwork).<\/P>
Ce que je comprends : le script ne trouve pas la table LineTypeLib dans le Asset package, mais elle y est !
Aucune carte ouverte, le Asset package est ajouté au projet, tout semble correct, mais,...
Le code problématique est (peut-être) :
(ElectricLine_2_EditorTracking-AttributeRules.xml) :
ligne 255:<\/P>
return new_id<\/expression><\/DIV>
<triggering_events_insert>True<\/triggering_events_insert><\/DIV>
<triggering_events_delete>False<\/triggering_events_delete><\/DIV>
<triggering_events_update>True<\/triggering_events_update><\/DIV> <exclude_from_client_eval>True</exclude_from_client_eval><\/DIV > <is_editable>True</is_editable><\/DIV > <batch>False</batch< SPAN >></ SPAN ><\/DIV >< SPAN >  ; & nbsp ; & nbsp ; & nbsp ; </ SPAN >< SPAN >< ; / </ SPAN >< SPAN >AddAttributeRule </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ; </ SPAN > < SPAN >< ; / </ SPAN > < SPAN >workflow </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ; </ SPAN > < SPAN >< ; </ SPAN > < SPAN >workflow </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ; & nbsp ; & nbsp ; </ SPAN > < SPAN >< ; </ SPAN > < SPAN >AddAttributeRule </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; </ SPAN > < SPAN >< ; </ SPAN > < SPAN >rule_name </ SPAN > < SPAN >> ; </ SPAN > < SPAN >OperatingVoltage </ SPAN > < SPAN >< ; / </ SPAN > < SPAN >rule_name </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; </ SPAN > < SPAN >< ; </ SPAN > < SPAN >rule_type </ SPAN > < SPAN >> ; </ SPAN > < SPAN >CALCULATION </ SPAN > < SPAN >< ; / </ SPAN > < SPAN >rule_type </ SPAN > < SPAN >> ; </ SPAN > <\/ DIV > < DIV > < SPAN >& nbsp ; & nbsp ;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;< / SPAN >< SPAN >& lt;< / SPAN >< SPAN >rule_description< / SPAN >< SPAN >& gt;< / SPAN >< SPAN >Récupérer la tension nominale< / SPAN >< SPAN >& lt;/< / SPAN >< SPAN >rule_description< / SPAN >< SPAN >& gt;< / SPAN >< / DIV >< DIV >< SPAN >& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;< / SPAN >< SPAN >& lt;< / SPAN >< SPAN >field_name< / SPAN >< SPAN >& gt;< / SPAN >< SPAN >maxvoltage< / SPAN >< SPAN >& lt;/< / SPAN >< SPAN >field_name< / SPAN >< SPAN >& gt;< / SPAN >< / DIV >< DIV >< SPAN >& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;& nb sp;< / SPAN >< SPAN >& lt;< / SPAN >< SPAN >expression< / SPAN >< SPAN >& gt;< / SPAN >< SPAN >var lookups = FeatureSetByName($datastore, 'LineTypeLib', ['*'], false);< / SPAN ></ DIV ></ DIV ></ P >< P >< BR />< BR />J'ai fini, s'il vous plaît aidez-moi !< BR />< BR />ArcGIS Pro 3.2.< BR />Untools 3.2< BR />Le Asset package est mis à jour,< BR />La table est présente, <\/P>