Problem with calling code in Ignition Designer Script Console

Welcome to the forum, kruta. Please see Wiki - how to post code on this forum. It won't make much difference to the short script you posted above but it will preserve leading whitespace / indentation which is essential for Python / Jython scripts. You can also post the error messages as preformatted text rather than an image. The text is searchable. The image is not without some OCR work.