Duplicate value on duplicate field

Duplicate value on duplicate field

Hi,
I have created a field (Single Line or Long Int : the same problem) In a custom module with the option "Do not allow duplicate values".
With a Deluge fonction executed by a workflow, I insert several entries in this module.
But I see that there is several times the same value in the "unique" field !!!!
Help !!!
Thanks,
Pierrot