Skip to main content
Cadet | Tier 2
May 11, 2023
Question

CSV file error while using LogToFile Action

  • May 11, 2023
  • 9 replies
  • 573 views

Hello,

 

I am using LogToFile Action to log the actions in Process_Logs.csv file. In enterprise 4 machines are running RPA and each machine has different Process_Logs.csv files but with the name. while I am triggering RPA in those 4 machines I am receiving following error:

 

Error:

Unexpected error occurred

//filepath/Process_Logs.csv

process cannot access the file because it is being used by another process. Please contact system administrator.

 

two of our RPAs having this error. Please help me with the solution for this issue.

Thanks in Advance for the response.

9 replies

amore17
Most Valuable Pathfinder
Most Valuable Pathfinder
May 12, 2023

I believe due to same name the error may occurred. I also found this kind of discrepancy like in some machine it worked other not.

 

You can do one thing while providing the path for log add one more extra variable “MachineName” 

e.g. -//filepath/$MachineName$_Process_Logs.csv

 

Akshay More -LinkedIn URL: www.linkedin.com/in/akshay-more-329bb798
SparimiAuthor
Cadet | Tier 2
May 12, 2023

Thanks for the response @amore17 

I will add extra variable $MachineName$_Process_Logs.csv and see if its works.

SparimiAuthor
Cadet | Tier 2
May 15, 2023

Tried adding machine name for the logfile but still failing with same error in all 4 machines

//filepath/$MachineName$_Process_Logs.csv

 

Appreciated if any other suggestions, Thank you

rbkadiyam
Premier Pathfinder | Tier 7
Premier Pathfinder | Tier 7
May 15, 2023

@Sparimi looks like you do not have write access for the file, please make sure the bot id have read & write permission to the file.

Ramesh B Kadiyam
Theodore Xypteras
Navigator | Tier 3
May 18, 2023

Sorry, but I’m going to disagree with everybody on this one. This seems to be a bug that appeared 6 days ago on bot runners logging onto a network share. We have the same problem and if you search the error message you’ll find it elsewhere posted recently. Let’s hope they release a fix soon.

I have a cunning plan!
Raul Jaimes
Navigator | Tier 3
May 19, 2023

@Sparimi 

Try to use a previous version of the LogToFile Action package. Also, you can try mapping to a network drive.

Regards

Theodore Xypteras
Navigator | Tier 3
May 22, 2023

@Sparimi

Try to use a previous version of the LogToFile Action package. Also, you can try mapping to a network drive.

Regards

This error occurs in tasks with various versions of the logging package.

I have a cunning plan!
SparimiAuthor
Cadet | Tier 2
June 7, 2023

Thanks for the response @Raul Jaimes @rbkadiyam and @Theodore Xypteras 

As of now we moved back to text log file instead of csv log file as we are getting this error in almost all our RPAs. Currently no issues with text log file.

Theodore Xypteras
Navigator | Tier 3
June 8, 2023

Thanks for the response @Raul Jaimes @rbkadiyam and @Theodore Xypteras 

As of now we moved back to text log file instead of csv log file as we are getting this error in almost all our RPAs. Currently no issues with text log file.

What exactly did you change @Sparimi , just the file extension? Are you using the same command?

I have a cunning plan!