# Problem with Schema when accessing OpenTarget public dataset from python

**URL:** https://community.opentargets.org/t/problem-with-schema-when-accessing-opentarget-public-dataset-from-python/1275
**Category:** Data Access
**Tags:** ot-platform, data
**Created:** [9 November 2023 13:14 UTC](https://community.opentargets.org/t/problem-with-schema-when-accessing-opentarget-public-dataset-from-python/1275 "2023-11-09T13:14:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Adela\_Ljajic](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/adela_ljajic/32/512_2.png) [@Adela\_Ljajic](https://community.opentargets.org/u/Adela_Ljajic)
#### Post date: [9 November 2023 13:14 UTC](https://community.opentargets.org/t/problem-with-schema-when-accessing-opentarget-public-dataset-from-python/1275/1 "2023-11-09T13:14:06Z")

</div>

I am accessing BigQuery via API from Python. I have a problem with displaying the results. I get the error “ValueError: Schema items must either be fields or compatible mapping representations”.

Since the scheme is automatically generated by querying publicly available databases, it is not clear to me what the problem is here. Has anyone had a similar problem or has a suggestion for a solution?

---

<div class="post-metadata">

### Author: ![dsuveges](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/dsuveges/32/30_2.png) [@dsuveges](https://community.opentargets.org/u/dsuveges)
#### Post date: [9 November 2023 15:03 UTC](https://community.opentargets.org/t/problem-with-schema-when-accessing-opentarget-public-dataset-from-python/1275/2 "2023-11-09T15:03:12Z")

</div>

Hi Adela, would you mind sharing the query you are having trouble with? We’ll take a look and try to help you to troubleshoot.
