I got error message ” Unable to save method init” during saving the form. While surprising it gives no error on compiling the code. I also found some errors on classes too, I solved it by following way, possible it helps,
A practitioner’s musings on Dynamics 365 Finance and Operations