# Can't read back an attribute that is part of a TypeSet Schema

**URL:** <https://discuss.hashicorp.com/t/cant-read-back-an-attribute-that-is-part-of-a-typeset-schema/30589>\
**Category:** Terraform Providers\
**Created:** [October 12, 2021, 9:42am UTC](https://discuss.hashicorp.com/t/cant-read-back-an-attribute-that-is-part-of-a-typeset-schema/30589 "2021-10-12T09:42:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![faith.news](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/faith.news/32/22457_2.png) [@faith.news](https://discuss.hashicorp.com/u/faith.news)\
**Post date:** [October 12, 2021, 9:42am UTC](https://discuss.hashicorp.com/t/cant-read-back-an-attribute-that-is-part-of-a-typeset-schema/30589/1 "2021-10-12T09:42:22Z")

</div>

So this is very similar to a recent post:

> [@How to handle a custom provider where some input to the backend API can't be read back](https://discuss.hashicorp.com/t/how-to-handle-a-custom-provider-where-some-input-to-the-backend-api-cant-be-read-back/30565):
>
> Hello! I am writing a provider for an API where I came across the following situation: One of my resources is a certificate. When I create a certificate I specify an ID (a string), the public key and the private key of the certificate. So when I want to create this certificate through my provider I get to specify the ID, the public key, and the private key of the certificate. So far, so good. When I started implementing the read-part of the resource I realised that I am unable to read the priv…

I’m creating a provider whose input I can’t get back in Read. The problem is that it’s not a parent level attribute.

My Resource attribute looks like:

```auto
"resources": {

                Type: schema.TypeSet,

                Optional: true,

                Computed: true,

                ConfigMode: schema.SchemaConfigModeAttr,

                Elem: someOtherResource,

            },

```

someOtherResource is defined in the same file like so:

```auto

var someOtherResource= &schema.Resource{

    Schema: map[string]*schema.Schema{
        "some_attribute": {

            Type: schema.TypeString,

            Optional: true,

        },

        "filename": {

            Type: schema.TypeString,

            Optional: true,

        },
    },

}

```

filename is the attribute in question because it’s going to upload something from the local machine into the server, but I can’t get back that value back from the server.

In running the test the Read expectedly shows the plan is not empty and its because of the difference in the config and the actual Read result.

I’m wondering how I can skip checking the filename attribute.
