@Renu9 

the issue is possibly because that query is not working.

try commenting line 6 and see if this works

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader