Skip to main content
Question

CSV file error while using LogToFile Action


Forum|alt.badge.img+1

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

Forum|alt.badge.img+3
  • Navigator | Tier 3
  • 21 replies
  • 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

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 4 replies
  • May 12, 2023

Thanks for the response @amore17 

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


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 4 replies
  • 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
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • 590 replies
  • 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.


Theodore Xypteras
Forum|alt.badge.img+5

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.


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • 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
Forum|alt.badge.img+5
Raul Jaimes wrote:

@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.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 4 replies
  • 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
Forum|alt.badge.img+5
Sparimi wrote:

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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings