# Error generating a collection from an imported GraphQL schema

**URL:** <https://community.postman.com/t/error-generating-a-collection-from-an-imported-graphql-schema/13788>\
**Category:** Help Hub\
**Created:** [June 30, 2020, 9:24pm UTC](https://community.postman.com/t/error-generating-a-collection-from-an-imported-graphql-schema/13788 "2020-06-30T21:24:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shane/32/4857_2.png) [@shane](https://community.postman.com/u/shane)\
**Post date:** [June 30, 2020, 9:24pm UTC](https://community.postman.com/t/error-generating-a-collection-from-an-imported-graphql-schema/13788/1 "2020-06-30T21:24:42Z")

</div>

I have a Rails app, using the graphql-ruby gem, which has a built in way to export the schema as both JSON and SDL files.

No matter what I try, I have been unable to generate a collection from the schema. I keep getting the error:

“Could not convert the given schema”

I could really use some help troubleshooting. I also haven’t found a great example in the documentation of what these files to import should actually look like (re: formatting and syntax), so I have to assume that the formats that the graphql-ruby gem is exporting are what is expected.

I have tried generating a new blank API and looked at the formats there, and gone in and tried to manually make sure things look the same, but I can’t for the life of me figure out what is ‘invalid’ about the schema that is imported.

The schema is rather large and so I do not want to manually add each type one at a time if I can at all avoid it.
