Greetings,
A schematic of your circuit might be helpful, pictures being worth a thousand words and all that…
The probability of receiving faulty production parts is about a million times less than the probability of there being some sort of problem with a circuit under development; it is a theory of absolute last resort.
The most likely issue here is that the TL974 is not a single-supply op amp; its common-mode input range does not include the lower supply rail. Put differently it’s not going to function properly in circuits where the voltage presented to the two inputs approaches within a volt and change of either supply rail.
Please see this thread for more detailed information on op amp selection. In the case of the TL974, it would appear that the supply voltage range is incorrectly listed in our parametric search, suggesting that this part is single-supply capable. The error has been reported, and will be corrected as soon as possible.