New data privacy legislation in New York that would allow consumers to sue businesses when their data is put at risk or sold without their consent was not well-received at a public hearing on the measure Friday by the state’s business and technology leaders.

Two business leaders told panel members that the bill, as written, has the potential to flood the state’s courts with litigation.