Two railcars containing ethanol derailed into an industrial building on Cambridge Street Sunday afternoon, but neither appeared to be leaking and the building was not damaged, fire officials said.