When a forecast type in Salesforce uses a group-by item, administrators must include the group item ID in their CSV file when importing quotas. If the group item ID is missing, the import can fail with the error "Product Family Does Not Exist: FIELD_INTEGRITY_EXCEPTION".
If you are unsure which grouping is being used, run the following query in Data Loader or Workbench (API version 60):
SELECT DeveloperName, ForecastingGroupId, Id, IsActive, MasterLabel FROM ForecastingType
This query returns each forecast type with its ForecastingGroupId. If there is a value in the ForecastingGroupId field, use the ForecastingGroupItemId when you import quotas for that forecast type.
This article answers how to import quotas for a Salesforce forecast type that uses a group-by item, by finding the group item ID and adding it to your CSV file. It builds on the Forecast Quotas from External Sources Help article.
Run the query in the Description above to get the ForecastingGroupId for your forecast type.
After you have the ForecastingGroupId, run the following query to retrieve the corresponding group item details. Replace 'xxx' with your ForecastingGroupId:
SELECT ForecastingGroupId, Id, SourceValueApiName, SourceValueLabel, SourceValueTranslatedLabel FROM ForecastingGroupItem WHERE ForecastingGroupId = 'xxx'
This query returns the ForecastingGroupItem Id, which you use as the group item ID column value in your CSV import file.
The other important columns to include in your CSV file are:
For opportunity product forecast types that are grouped by product family, use the product family field instead of the group item ID.
When the file is ready for import, the mapping looks similar to the following image.
001876508

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.