web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Cannot add price list items against product

(0) ShareShare
ReportReport
Posted on by 60

Hello Everyone,

I want to be able to add multiple price list item to a product.

I have added a start date and end date fields to the Price list item Entity in order to be able to represent different pricing based of a specific period of time.

pastedimage1627423952754v1.png

The problem that I am facing is that I am not able to create more than 1 product Price list Item related to the same product, price list and Unit.

when I save the Price list Item I received the following error:

Exception Message: A record with matching key values already exists.

ErrorCode: -2147220937
HexErrorCode: 0x80040237

ErrorDetails: 
	ApiExceptionSourceKey: Plugin/Microsoft.Crm.ObjectModel.CustomBusinessEntityService
	ApiStepKey: af3b8615-ecd8-db11-b397-0019b9204da9
	ApiDepthKey: 1
	ApiActivityIdKey: ebdca418-dc00-4c84-a32c-2175ea8f0399
	ApiPluginSolutionNameKey: System
	ApiStepSolutionNameKey: System
	ApiExceptionCategory: ClientError
	ApiExceptionMessageName: DuplicateRecord
	ApiExceptionHttpStatusCode: 412
	SqlExceptionMessage: Violation of UNIQUE KEY constraint 'AK1_ProductPriceLevelBase'. Cannot insert duplicate key in object 'dbo.ProductPriceLevelBase'. The duplicate key value is .

HelpLink: http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException:80040237&client=platform

Activity Id: 1dd9229f-48b6-4b05-b6a9-ff90b566d899

How can I create multiple product price list items which will relate to the same product, price list and Unit but will have

a different pricing value and start and end date and time?

Thanks

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    Unfortunately, there is no way to achieve this. As your error message shows, it can only have one price list item related to a product in the same price list.

    As a workaround, you can create multiple price lists with different start and end time. Then create the price list item related to the same product for each of price list.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans