In a cautionary tale illustrating the complex challenges of integrating renewable energy into the electrical grid, spot electricity prices in Chile have dropped to zero in some places on 113 days so far this year. Solar production in the country has expanded rapidly in recent years, but a lack of transmission lines is leaving the energy stranded where it’s not needed, forcing prices down.
Get Data Sheet, Fortune’s technology newsletter.
Bloomberg reports that one basic problem is the division of the country into separate central and northern grids, which are currently not interconnected at all. The highest concentration of solar installations was built in the north, where the country’s copper mines were expected to drive energy demand, but are now facing a slowdown.
The Chilean government is working to connect the two regions so the excess energy can move, as well as to improve connections within grid zones. But in the meantime, Bloomberg says solar investors are losing money, and the chaos could cast a pall on funding for future projects.
For more on energy, watch our video.
Chile is Latin America’s biggest producer of renewable energy, with solar capacity quadrupling since 2013 to 770 megawatts. New projects funded before the current slump will continue to drive up capacity over the next year, and number of days of ‘free electricity’ this year—for those who happen to be in the right place— is on track to beat last years’ total of 192 days by a wide margin.
But between overcapacity and the mining slump, those projects could be the last for some time.