Hi, Thanks for replies.
I had created a new object as per the knowledge base but still had same error.
Solution was to use a few steps before the write, so i added an open menu, select item then hide menu action, before writing in the file path. which then recognised the file path I was writing