Page 1 of 1
I/O Error
Posted: 08 Feb 2017 10:17
by Ankit Bindal
Hi,
I am getting an I/O Error whenever i use action write to file. I don't know why??
It was working fine few days ago .
Re: I/O Error
Posted: 08 Feb 2017 20:43
by Martin
Hi,
Please check that the path to the file is correct and that Automagic has the permission to write to this file. Maybe you have to grant 'External SD card access' in the preferences of Automagic, otherwise Automagic might just have read access.
Regards,
Martin
Re: I/O Error
Posted: 09 Feb 2017 01:53
by Ankit Bindal
Hi Martin,
I have already granted permission to automagic and i have sd fix installed and my path is also correct.
Re: I/O Error
Posted: 10 Feb 2017 21:31
by Martin
Try to write the text to some other file, for example to /storage/emulated/0/test.txt. The system does not allow Automagic to append a text to /storage/MicroSD/Miscallaneous/Balance.txt for some reason.
When you use the [...]-button of the action to select the file, is the file visible and looks like a regular file?
Re: I/O Error
Posted: 11 Feb 2017 10:49
by Ankit Bindal
Hi Martin,
This action works fine 95%, but sometimes it gives this error.
It write perfectly to the file everything.
Is this error due to some hardware issue or automagic issue??
Re: I/O Error
Posted: 12 Feb 2017 14:37
by Martin
Hi,
When it works in 95% of cases, it's likely a system problem since the system allows/denies writing to the file. Could you please activate Debug Log in the preferences of Automagic and send a log to me after the error occurred again so I can check if the error contains some more information about the reason. You could try to mitigate the problem by catching the error with an exception-connection and try to write the text a second time after a short delay of one second.
Regards,
Martin
Re: I/O Error
Posted: 13 Feb 2017 01:36
by Ankit Bindal
Ok, sure martin.