Hey, 
you could check the createProduct service. There is a small block where this 
check is done and a friendly message, in case of a duplicate primary key, will 
returned. 

Best Regards

Am 04.01.2012 um 20:37 schrieb Adrian Crum <[email protected]>:

> This question should be asked on the user mailing list.
> 
> The best approach is to do a find on the primary key, and if a value is 
> found, return a user-friendly error message.
> 
> -Adrian
> 
> On 1/4/2012 11:04 AM, Ritesh K Kaushik wrote:
>> If we enter a duplicate Primary key in Ofbiz then it gives a long error
>> message, is there any way to customize those messages.
>> 
>> --
>> View this message in context: 
>> http://ofbiz.135035.n4.nabble.com/Ofbiz-tp4260861p4260861.html
>> Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Reply via email to