This article addresses the generic error encountered during asset amendment or renewal operations in Revenue Cloud Transaction Management. The exact error messages include: "Something went wrong. Please ask your Salesforce admin to contact Customer Support" with a gackId, or "We couldn't process the renewal request because an error occurred. Contact Salesforce Support with Error ID." The underlying exception in logs may read: "Cannot invoke revenue.amendrenew.context.model.AssetStatePeriod.getQuantity() because assetStatePeriod is null." Trigger conditions include: initiating Amend or Renew from the Managed Asset Viewer on Account or Contract pages; assets missing required Asset State Period records; assets not originally created through order activation; or an incorrect Flow API name configured in Revenue Settings.
Cause A: Incorrect Flow API Name in Revenue Settings
Cause B: Missing Asset State Period Records (Null AssetStatePeriod)
The internal error "Cannot invoke AssetStatePeriod.getQuantity() because assetStatePeriod is null" indicates the asset lacks required Asset State Period (ASP) records. This occurs when assets were migrated from another system or manually created without going through order activation.
Cause C: Missing Permissions or Order Settings
2. Navigate to Setup > Permission Sets and confirm the user performing the operation has the following assigned:
3. Navigate to Setup > Users > select the affected user > Permission Set Assignments and verify the above are listed.
Cause D: Amendment Date Outside Asset Lifecycle Range
005389636

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.