This error is happening because of those disabled items, if i remove them, then i can publish without any problems.

Correct me if i am wrong, but shouldn't disabled element items be treated like "Text" ? Just like a comment section /* comment */ ? 

 What i am noticing is that during debug the platform still try's to compile them as "real code"somehow ?!?! Why ?  This comment section is related to one static that i deleted, and somehow he keeps the reference even that this part of the code is disabled. Maybe i found a bug

I appreciate any help you can give me regarding this subject.

Hi Romero,


If you think you found a bug, then please contact and open an issue with support. I could try to replicate,but would need to know what version of the platform you are using as well as what version of service studio.  Support will be your fastest option.