This workflow was created via dozens of documentation pages about Asset Packages and Deploying a New Utility Network, the ArcSolutions workflow for the creation of a new UN, various other unresolved Community posts put together as puzzle pieces, and a lot of trial and error. I haven't seen a definitive way to do this posted anywhere, so here it is-- my successful workflow for editing the schema of an existing Utility Network with data. I especially found the online explanations for using the D_Configurations table confusing, so I hope this helps anyone else with the same issue. This workflow assumes you are working in an Enterprise Geodatabase and that you only want one configuration category.
Had to publish in the Questions forum, presumably the documents one is only for official Esri stuff.
1. Sign in as portal utility network owner in Enterprise.
2. Run [Export Asset Package] on data. No updates should now be made to current database. Include data in the export.
a. Do NOT rename the export after tool is run. During tool parameter setting is only opportunity to rename.
b. Working with a copy of the Exported Asset Package has resulted in errors during the Apply Asset Package step. It tends to get corrupted. If restart is needed, a fresh export is best.
3. Make sure that current database is backed up before proceeding further.
4. Connect to package in new project via file connection.
5. Use [Create Enterprise Geodatabase] tool to create a new database.
6. Use [Create Database User] to create a new role. This will be the new data owner, but do NOT specify a role in the tool. It auto-assigns as the data owner.
7. Create new database connection to the empty enterprise database using the credentials just created.
a. Don't forget to update OneNote with new database name and credentials.
8. Run [Stage Utility Network] with the exported Asset Package.
9. Close Pro and open it again. This is necessary between [Stage Utility Network] and [Apply Asset Package].
10. Run [Create Asset Package Configuration Table] to create the Config table for the new Schema.
a. Utility Network Package_Asset Package Reference.pdf (arcgis.com)
b. Need to create the configuration field. Domain and values already exist, just need to be assigned to new field.
c. Name the field 'Category_'
d. Do not name it 'Category_off' unless you wish to experiment with table configuration. This workflow will use the "checked on" method rather than "checked off", which refers to parameters set in [Apply Asset package] in later steps.
e. This workflow only uses one configuration category.
11. To use the table:
a. Change domain code for anything you wish to remove to "4: Always Remove When Applied". Leave everything else as is, do not change from default value.
b. For this table and the rename table created in step 12, the easiest way to make edits is to Select Attributes by record type (e.g., Fields, Domain Values, Asset Groups, Network Categories).
c. It is not possible to select all record types by asset type (e.g., Electric Device, Electric Assembly…)
12. Run [Create Asset Package Rename Table] to create the renaming table for the new Schema.
a. Create new field named "Rename_"
b. This table can rename everything except fields. Fields can only have their default alias renamed.
c. All that is needed to rename a record is to put the new name in the Rename_ field for that record. All others can be left blank.
13. These tables can be copy/pasted into another un-applied Asset Package once filled out, if necessary. This saves a LOT of time if you have to restart after filling out the tables.
14. Run [Apply Asset Package]
a. Check 'Category_' ON, do not leave unchecked. This option is after you specify the D_Configurations table to the tool.
b. Make sure D_Rename is also specified to the tool.
c. This tool is also where the name for the new Utility Network is defined.
d. CHECK the 'load data' box.
e. CHECK 'Calculate Spatial Index and Analyze' box.
i. If this box is unavailable and instead you see a box for 'Post Process', you have done something wrong. The tool will fail. Restart the workflow and copy the D_Configurations and D_Rename tables into your new Asset package after Step 8 (Stage Utility Network).
15. Check to make sure the two configuration tables applied properly.
16. If there are any adjustments to be made to Attribute Rules, now is the easiest time to do so.
17. Set the database version type to Branch. Can use the tool [Update Geodatabase Connection Properties to Branch] or can do it through the Catalog.
18. Run [Register as Versioned] tool to register the classes as Branch versioned.
19. Run [Enable Replica Tracking] on each table in the Utility Network. Do it on the UN layer first. This enables offline functionality later.
20. If there is anything that must be done before the first time the Network Topology is enabled, now is the time to do so.
21. Run the [Enable Network Topology] tool.
22. Test to verify that everything works as desired.