Unable to read file

core.dump

New member
I created a macro containing the action "read from file". When the macro is triggered, I receive a notification error stating "Read file action failed, please reconfigure file directory in the read file action".

I tried to delete and re-add the action, but it still returns the same error message. How can I fix?
 

Endercraft

Moderator (& bug finder :D)
If you are using dynamic file name, make sure to use the exact name else it will return this error.
 

core.dump

New member
Update: the action works JUST ONCE. My macro reads the content of a specific file, puts that content into a variabile, makes some changes, and then writes the new content in the same file (overwrite mode). This works fine the first time, but when I try to re-execute the macro, file ready fails.
Any ideas, anyone?
 

Endercraft

Moderator (& bug finder :D)
Yeah that's weird. I think it has to do with the app you use to choose the file - maybe it only allows reading 1 time ?
 

Dm114

Well-known member
Update: the action works JUST ONCE. My macro reads the content of a specific file, puts that content into a variabile, makes some changes, and then writes the new content in the same file (overwrite mode). This works fine the first time, but when I try to re-execute the macro, file ready fails.
Any ideas, anyone?
Check wether your file is correct after rewriting (something like length to zero). It happened to me because I didn't add Wait statement after writing and re-opening (MD file operations were too fast)...
 
Assuming timing issue or Configure path / file name has been ruled out, what I've witnessed:
- Write to File, Overwrite then subsequent Read from File static or Open File static will fail.
- If perform Read from File static, Configure after Write to File Overwrite, then Read from File static or Open File static will succeed; until the next Write to File, Overwrite.
- Write to File, Overwrite does not cause this issue with Read from File dynamic or Open File dynamic
- Write to File, Append or Prepend does not cause this issue with either Read from File static or dynamic; Open File static or dynamic.
 
Last edited:

Endercraft

Moderator (& bug finder :D)
My guess is overwrite option kind of creates a new file that is different from the selected one even if it has the same name. Correct me if I'm wrong.
 
Top