Issue while creating index

I am using the standard syntax to create index, the syntax I am using is:

CREATE INDEX communication_id FOR (com:communication) ON (com:com_id)

It throwing error following error:
Invalid input 'o': expected 'r/R' or 'a/A' (line 28, column 15 (offset: 1912))
"CREATE INDEX communication_id IF NOT EXISTS FOR (com:communication) ON (com:com_id)"
^
Please help on this, it is really very urgent.

  • I am using Neo4j Desktop version 4.3.1, here is the screenshot for the reference

@sonakshi.r

each

create index .....

should be terminated by a ;

I also tried that but its not working