K212 Error – Temp Folder and Access to the Path Denied Troubleshooting

Modified on Fri, 3 Mar, 2023 at 11:07 AM

ISSUE: K212 Error - Access to the Path Denied & Process Crashing due to Temp Folder at Capacity

Error: “Access to the path ______ is denied”

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path '\\BOARD-mgmt-06\ROETestShare\T4_FILE_RECORD_20220107-050015_1.DAT' is denied.


Solution:

These error messages usually occur when trying to run a process (Example: OMERSNFT or T4) and typically mean that the temporary folder is at capacity and needs to be purged. 

Below are some steps to remedy;

  • Delete any .tmp & .csv files in C:\windows\system32
  • If service running under a localsystem account, Delete any files in c:\windows\serviceprofiles\localservice\appdata\local\temp  c:\windows\serviceprofiles\localservice\appdata\roaming\temp 
    1. You may need to start at the localservice and continue with administrator consent and Appdata is hidden so you need to type to get to the folder first
  • If service running under a named service account. Delete any files in c:\users\<servicename>\AppData\Local\Temp  and  c:\users\<servicename>\AppData\Roaming\ 
    1. You many need to step through and continue with administrator consent and AppData is hidden so you will need to type the name in the address bar
  • C:\windows\system32\spool\PRINTERS – remove everything in this folder
  • Restart the APP server at the operating system level 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article