You have tried to open a file which is already open and so cannot be opened again.
Cancel your second attempt to open the file. If the fact that the file is already open is acceptable to you, continue to run your program.