Select to view content in your preferred language

Asset Package to Geodatabase failed to find LineTypeLib table

546
4
06-06-2024 08:01 AM
Kiril_Petkov
Emerging Contributor

Hi, all!

I tried many times, with may different variant, but no luck to apply an Asset Package to a Utility Network file .GDB:
Here is the message:

ArcGIS Pro 3.2.2.49743
untools 3.2.0
Executing from ArcGIS Pro, 0 map(s), activeMap = False
Parallel processing enabled: 6

Asset Package schema version: 3.1
Staging directory -- C:\UN_V2_2\ZERO\AP_Workspace
The asset package has the following warnings (13/13):
Item Field OID Value Message Level
0 ElectricAssembly CustAtt_heightReferenceSurveyingZ None None This field is too long for some database platforms warning
1 ElectricDevice TapchangerDriveDateManufacture None None This field is too long for some database platforms warning
2 ElectricDevice Triggering_ShortCircuitCurrent None None This field is too long for some database platforms warning
3 ElectricDevice CustAtt_typeCustomerServicepoint None None This field is too long for some database platforms warning
4 ElectricDevice NoDomain_BreakingChInsulMedium None None This field is too long for some database platforms warning
5 ElectricDevice CustAtt_heightReferenceSurveyingz None None This field is too long for some database platforms warning
6 ElectricJunction CustAtt_heightReferenceSurveyingZ None None This field is too long for some database platforms warning
7 ElectricJunctionObject TapchangerDriveDateManufacture None None This field is too long for some database platforms warning
8 ElectricJunctionObject NoDomain_BreakingChInsulMedium None None This field is too long for some database platforms warning
9 ElectricLine CustAtt_heightReferenceSurveyingz None None This field is too long for some database platforms warning
10 StructureBoundary CustAtt_heightReferenceSurveyingz None None This field is too long for some database platforms warning
11 StructureJunction CustAtt_heightReferenceSurveyingZ None None This field is too long for some database platforms warning
12 StructureLine CustAtt_heightReferenceSurveyingZ None None This field is too long for some database platforms warning
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:255
ERROR 002717: Invalid Arcade expression, Arcade error: Table not found LineTypeLib, Script line: 1 [LineTypeLib]
WARNING 000952: Failed to execute (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:288
ERROR 002717: Invalid Arcade expression, Arcade error: Table not found LineTypeLib, Script line: 1 [LineTypeLib]
WARNING 000952: Failed to execute (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:321
ERROR 002717: Invalid Arcade expression, Arcade error: Table not found LineTypeLib, Script line: 2 [LineTypeLib]
WARNING 000952: Failed to execute (AddAttributeRule).
C:\UN_V2_2\ZERO\AP_Workspace\xml\ElectricLine_2_EditorTracking-AttributeRules.xml:364
ERROR 002717: Invalid Arcade expression, Arcade error: Table not found LineTypeLib, Script line: 2 [LineTypeLib]
WARNING 000952: Failed to execute (AddAttributeRule).
Failed script Apply Asset Package...
Failed to execute (AssetPackageToUtilityNetwork).

What I understand: the script can't find the LineTypeLib in the Asset package, but it is there!
No open maps, the asset package is added to the project, everithyng seems ok, but,...
The prpblematic code is (maybe): 
(ElectricLine_2_EditorTracking-AttributeRules.xml):
row 255:

return new_id</expression>
            <triggering_events_insert>True</triggering_events_insert>
            <triggering_events_delete>False</triggering_events_delete>
            <triggering_events_update>True</triggering_events_update>
            <exclude_from_client_eval>True</exclude_from_client_eval>
            <is_editable>True</is_editable>
            <batch>False</batch>
        </AddAttributeRule>
    </workflow>
    <workflow>
        <AddAttributeRule>
            <rule_name>OperatingVoltage</rule_name>
            <rule_type>CALCULATION</rule_type>
            <rule_description>Fetch operating voltage</rule_description>
            <field_name>maxvoltage</field_name>
            <expression>var lookups = FeatureSetByName($datastore, 'LineTypeLib', ['*'], false);



I'm done, please help!

ArcGIS Pro 3.2.
Untools 3.2
The Asset package is upgraded, 
The table is present, 

4 Replies
PaulLeBlanc1
Esri Regular Contributor

This issue requires all 4 of these very specific settings:

  1. A configuration table that is removing all relationship classes.
  2. Database sequences.
  3. An attribute rule referencing a standalone table.
  4. Applying the asset package schema only.

 

I'll get this fixed in the next patch releases of untools 3.1/3.3. I can provide a release candidate with this fix -- which version of Pro would you prefer?

IvanDImitrov
Emerging Contributor

I have installed ArcGIS Pro 3.3, so a patch for 3.3 is OK, thanks!

PaulLeBlanc1
Esri Regular Contributor

Open a python command prompt and run the following, which will install the next release of untools 3.3.x

conda install solutionsdev/label/pro3.3::untools

IvanDImitrov
Emerging Contributor

Thank you, Paul! 
I'll test it and will give a feedback.