Error in before create rule : The process cannot access the file because it is being used by another process.
Hi Narendra,
This could be an issue with the log file where multiple processes are trying to write into the same log file.
Can you add microseconds level in the log file name and see if it helps :
$logDate = Get-Date -Format “yyyyMMddHHmmssfff”
$logFile = F:\ConnectorAfterModify_$logDate.log
What would the multiple processes be? If your log file is isolated to a given rule, and a given connector, shouldn’t it be serialized?
Multiple processes would be the user creates or updates processed parallelly by IDN.
The error usually happens when the native rule log files are not isolated for each user and when multiple users are modified parallelly, the PowerShell script tries to write into the same file for multiple users.
The solve is to isolate the log files for each users by either giving a user specific value to the log file names or to give it a microseconds level time stamp, so that the parallel processes wouldn’t be writing into the same file and creating a conflict.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.