Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 745 Bytes

File metadata and controls

37 lines (24 loc) · 745 Bytes
title BCP055
description Cannot access properties of type <type-name>. A <type-name> type is required.
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

Bicep diagnostic code - BCP055

This diagnostic occurs when you reference a nonexistent property of a type.

Description

Cannot access properties of type <type-name>. A <type-name> type is required.

Level

Error

Examples

The following example raises the diagnostic because string.bar isn't defined:

type foo = string.bar

You can fix the diagnostic by removing the reference:

type foo = string

Next steps

For more information about Bicep diagnostics, see Bicep core diagnostics.