# Provider does not support data soure

**URL:** <https://discuss.hashicorp.com/t/provider-does-not-support-data-soure/22735>\
**Category:** Plugin Development\
**Created:** [April 2, 2021, 2:43am UTC](https://discuss.hashicorp.com/t/provider-does-not-support-data-soure/22735 "2021-04-02T02:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsielert](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dsielert/32/18381_2.png) [@dsielert](https://discuss.hashicorp.com/u/dsielert)\
**Post date:** [April 2, 2021, 2:43am UTC](https://discuss.hashicorp.com/t/provider-does-not-support-data-soure/22735/1 "2021-04-02T02:43:31Z")

</div>

Trying to develop a simple datasource provider which reads a yaml file  
I keep getting the error

```auto
on main.tf line 14, in data "serviceregistry_services" "services":
  14: data "serviceregistry_services" "services" {}

The provider provider.serviceregistry does not support data source
"serviceregistry_services".

```

with terraform

```auto
data "serviceregistry_services" "services" {}

```

provider.go

```auto
func Provider() *schema.Provider {
	return &schema.Provider{
		Schema: map[string]*schema.Schema{
			"filename": &schema.Schema{
				Type: schema.TypeString,
				Optional: true,
				Sensitive: false,
				DefaultFunc: schema.EnvDefaultFunc("SERVICEREGISTRY_FILENAME", nil),
			},
		},
		DataSourcesMap: map[string]*schema.Resource{
			"serviceregistry_services ": dataSourceAllServices(),
		},
		ConfigureContextFunc: providerConfigure,
	}
}

```

Full trace output [terraform trace output · GitHub](https://gist.github.com/dsielert/4d69c3c8689e57770de3ccf663379f26)

I’ve even gone as far as commenting all file read logic out of it but it keeps getting not found, I’m stumped . any idea how I can troubleshoot ? i’ve tried to step through code with dlv but It just

---

<div class="post-metadata">

**Author:** ![paddy](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/paddy/32/4484_2.png) [@paddy](https://discuss.hashicorp.com/u/paddy)\
**Post date:** [April 2, 2021, 4:43am UTC](https://discuss.hashicorp.com/t/provider-does-not-support-data-soure/22735/2 "2021-04-02T04:43:44Z")

</div>

> [@dsielert](#):
>
> ```auto
> DataSourcesMap: map[string]*schema.Resource{
> "serviceregistry_services ": dataSourceAllServices(),
> },
> 
> ```

There’s an extra space after “serviceregistry\_services”.

---

<div class="post-metadata">

**Author:** ![dsielert](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dsielert/32/18381_2.png) [@dsielert](https://discuss.hashicorp.com/u/dsielert)\
**Post date:** [April 2, 2021, 5:15am UTC](https://discuss.hashicorp.com/t/provider-does-not-support-data-soure/22735/3 "2021-04-02T05:15:18Z")

</div>

facepalm… thanks alot … been staring at this for too long
