
Sometimes error “The data value violates integrity constraints.” can occur while importing an excel file through a Data entity.
Most of the time it can be caused by blank lines that you cannot see in the excel file.
To solve it just delete blank lines.
So open the source file and delete them
