Locked state file

Hi all,

I am new to Terraform and am trying to read outputs from a local state file in another directory. I tested my templates by storing the state file in an Azure Blob storage container and everything works as it should, but I receive this error when reading a local state file. I tried unlocking the file and killing the process, but still no luck. I am running v1.1.6 on Windows. All help is appreciated.

│ Error: Failed to read state file

│ The state file could not be read: read terraform.tfstate: The process cannot access the file because another process has locked a portion of the file.

My data source configuration:

data "terraform_remote_state" "resource_Group" {
  backend = "local"
  config = {
    workspace_dir = "relative/path/to/terraform.tfstate"
  }
}