When attempting to update a Quote Line Item (QLI) with a decimal quantity, you may encounter the following error message:
"You can specify a decimal quantity for a product only if it has a unit of measure with a scale greater than or equal to 0. Specify a positive integer for the product quantity and try again."
This error indicates that the product was not been properly configured to support decimal quantities.
Note: Unit of Measure can only be changed from null to non-null. After a Unit of Measure is selected, the field can no longer be modified on the product record.
To resolve this issue and allow decimal values on Quote Line Items, follow these steps:
Assign the DecimalQuantityDesigntime permission set to the user performing the update.
Define a Unit of Measure that supports decimal precision and rounding rules.
From the App Launcher, search for and select Units of Measure.
Click New.
In the Unit of Measure field, choose New Unit of Measure.
Enter the following details:
Name: Enter a meaningful name (this will be visible to users).
Unit Code and Type:
| Type | Examples |
|---|---|
| Length | meters, feet, inches, centimeters |
| Weight | kilograms, pounds, ounces |
| Volume | liters, gallons, cubic meters |
| Time | seconds, minutes, hours, days |
| Digital | bytes, kilobytes, megabytes |
Scale: Set the number of decimal places (e.g., 2 for up to 2 decimal values like 2.5).
Rounding Method: Choose from Up, Down, or Nearest.
Click Save.
Navigate to the desired Product.
Edit the product and assign the newly created Unit of Measure.
Save the changes.
Testing the Use Case:
Now, add the product to a Quote and update the Quantity on the Quote Line Item. You should be able to enter decimal values without any errors.
005093844

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.