Duplicate entry '1' for key 'uk_bom_bom_ref'

Hi everyone,

I’ve been facing an issue while trying to validate a BOM I created. When I click “OK,” a pop-up shows this error:

Duplicate entry ‘1’ for key ‘uk_bom_bom_ref’

This problem started when I was using version 19.0.2. I tried upgrading to version 20.0.2, hoping it would fix the issue, but the same error still appears.

Does anyone know what might be causing this and how I can resolve it?

Thanks in advance for your help!

When encountering an error while performing a routine task that works fine for other users, it’s often caused by a third-party module installation. Here’s the recommended troubleshooting approach:

  1. First Step: Third-party Module Troubleshooting
  • Disable all third-party modules
  • Reactivate them one by one
  • Monitor when the error reappears
  • This will help identify the problematic module
  1. If the Issue Persists:
  • Enable Dolibarr’s native error LOG module
  • Review the error log files
  • This will provide more detailed information about the error

This systematic approach should help identify the root cause of your issue. If you need further assistance, please share the error logs or provide more specific details about the error you’re experiencing.

Best regards

Thank you! I’ll try out the solutions one by one.