| title | BCP091 |
|---|---|
| description | An error occurred reading file. Could not find a part of the path <file-path>. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 12/05/2025 |
This diagnostic occurs when Bicep cannot find a file at the specified path, most commonly a referenced module or type file
An error occurred reading file. Could not find a part of the path <file-path>.
Error
Correct the path or file name.
The following example raises the diagnostic because the files cannot be found at the specified paths.
import { accessPolicies } from 'library/types.json'
module childLinked 'children/nestedChild.json' = {
name: 'childLinked'
params: {}
}You can fix the diagnostic by correcting the path and file name.
For more information about Bicep diagnostics, see Bicep core diagnostics.