Collectively, our data showed that metabolic stress occurring during type 2 diabetes progression induces significant changes in ER stress, leading to impaired insulin synthesis in situ, loss of beta cell identity and beta cell dysfunction. Here, INS is linked to type 2 diabetes mellitus.