diff --git a/nsxt/utils.go b/nsxt/utils.go index caedfc5be..2c1363929 100644 --- a/nsxt/utils.go +++ b/nsxt/utils.go @@ -692,10 +692,11 @@ func getContextSchema() *schema.Schema { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "project_id": { - Type: schema.TypeString, - Description: "Id of the project which the resource belongs to.", - Required: true, - ForceNew: true, + Type: schema.TypeString, + Description: "Id of the project which the resource belongs to.", + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, }, }, },