Looking back, I notice Doc's state is always invalid and every change I try to make to the Doc, such as creating a sheet, result null: "No available sheets" is the message I receive when I open the app (sheets previously created temporarily disappear!).
Why that? I find Invalid state either in Desktop and Server...