N.Y. Criminal Procedure Law § 245.50
(c) Challenges to the validity of a certificate of compliance or supplemental certificates of compliance served on the defense and filed with the court pursuant to subdivision one of this section shall be addressed by motion within thirty-five days of the service of the certificate provided that the prosecution has filed an indictment or information prior to filing the certificate of compliance. Nothing in this section shall be construed to waive a party's right to file a motion pursuant to section 30.30 of this chapter on grounds unrelated to the validity of a certificate of compliance. Provided, however, that any challenges to a certificate of compliance or supplemental certificate of compliance shall be accompanied by an affirmation by the moving party that, after the filing of the opposing party's certificate of compliance, such moving party timely conferred in good faith or timely made good faith efforts to confer with the opposing party regarding the specific and particularized matters forming the basis for such challenge, that efforts to obtain the missing discovery from the opposing party or otherwise resolve the issues raised were unsuccessful, and that no accommodation could be reached. For the purposes of this subdivision, the parties may confer informally, including but not limited to communication by email, telephone, or any other reasonable means.
5. Assessing due diligence. In assessing a party's due diligence, the court shall look at the totality of the party's efforts to comply with the provisions of this article, rather than assess the party's efforts item by item.