diff --git a/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr.go b/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr.go index bee9a758c..2c06224ac 100644 --- a/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr.go +++ b/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr.go @@ -32,7 +32,12 @@ func getAllIvrConfigs(ctx context.Context, clientConfig *platformclientv2.Config } for _, entity := range *allIvrs { - blockLabel := *entity.OpenHoursFlow.Name + "_" + *entity.Name + var blockLabel string + if entity.OpenHoursFlow != nil && entity.OpenHoursFlow.Name != nil { + blockLabel = *entity.OpenHoursFlow.Name + "_" + *entity.Name + } else { + blockLabel = *entity.Name + } resources[*entity.Id] = &resourceExporter.ResourceMeta{BlockLabel: blockLabel} } return resources, nil