According to a report by the Wall Street Journal, SunEdison is preparing to file for bankruptcy. The Journal reported that this would rank among the largest financial collapses in recent years.

Deutsche Bank AG leads the group of bank lenders who have been meeting with company officials.

The Journal’s unnamed sources reported that the solar energy company is trying to obtain a loan from two creditor groups to enable it to continue to operate during the process.

In addition, the Securities and Exchange Commission has launched an investigation of SunEdison, charging that the company misrepresented its cash position to investors as its stock collapsed. According to SunEdison’s 8-K filing last Thursday, the company received a subpoena from the U.S. Department of Justice on March 28, 2015  seeking information and documentation relating to:

1. Certain financing activities in connection with the company’s acquisition of Vivint Solar,

2. The conduct of a former non-executive employee who is alleged to have committed wrongdoing in connection with the Vivint termination negotiations,

3. The previously disclosed investigations by the company’s audit committee,

4. Intercompany transactions involving the company and each of TerraForm Power and TerraForm Global, and

5. The financing of the company’s Uruguay projects in connection with project costs and equity contributions that remain to be contributed by the company and the DOJ may have additional requests. Also, the company has received a nonpublic, informal inquiry from SEC covering similar areas.

SunEdison and its board of directors intend to cooperate with the DOJ’s inquiry and the SEC investigation, according to the filing.