Sorry, my fellow developer was testing similar codes, i had added the link
I did try resaving it with the permalink structure under settings…
All products links are showing 404 error now.
Thanks, i was able to solve this problem, i inserted array() function in the Linenumber.