When running "sf package version create" against a package that references E&U metadata, you may see:
"An unexpected error occurred. Please contact Salesforce Support and provide the following error code: (-161598528)"
This generic, non-actionable error can be caused by a 0-byte file present anywhere in the SFDX project or a dependent package. It is triggered by a known Oracle JDK zip-processing bug (JDK-8143613), not by anything specific to E&U metadata.
Once that error is cleared, package version creation may proceed to metadata deployment and validation, but report a large number of validation errors (for example, 342) for missing E&U objects and fields, such as QuoteLineItemRecipient, OpportunityLineItemRecipient, QuoteRecipientGroup, and specific QuoteLineItem fields (StartDate, EndDate, Margin, RevenueCloudPackagingFlag, QuoteRecipientGroupId). This happens because the core E&U object model is not fully provisioned in the scratch org used for validation, even when the parent Dev Hub is properly licensed for Energy & Utilities Cloud. Simply listing "EnergyAndUtilitiesCloud", "EAndUSelfServicePortal", or "EAndUDigitalSales" as scratch org features is not sufficient to provision the specific object model that Revenue/CPQ-related E&U metadata depends on.
005460625

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.