PORTLAND, Ore. (KOIN) — Nearly 200 people were evacuated from McMenamins Edgefield after three floors of the historic building flooded Wednesday evening, officials said.

The flooding was caused by a broken sprinkler pipe, according to the Gresham Fire Department.

Firefighters said the water caused “extensive damage” before they were able to shut off the flow. They said they also shut down power to the building and “had to get creative to divert the excess water flow.”

Firefighters used tarps to collect and trap water and funnel it into buckets to protect the floors.

The hotel was originally built in 1911 and was the Multnomah County Poor Farm and a nursing home before it became the hotel and concert venue it is today.

It’s unclear how long Edgefield will be closed because of the water damage.