Forum Discussion
'Relationship Tag' error when trying to connect a google sheet to Power BI.
Hello Everyone,
I was trying to connect a google sheet to Power BI so that i could extract data from the same. But i got a weird message from Power Bi saying - "Relationship tag contains incorrect attribute. Line 2, position 86." Refer the screenshot for the same.
This was weird because i have tried to connect a google sheet to Power BI earlier but did not face this problem before.
Could anyone help me with this?
Thanks a lot in advance.
21 Replies
- MendelORegular Visitor
Did you add a pivot table to your google sheets?
I encountered the same issue, I deleted the pivot table, refreshed the sheet then refreshed the connection in power query, worked like a charm.
Alternitavely, you can create a new google sheet and use Importrange, get the .xlsx download link and connect to that.
- ckrausRegular Visitor
I had the same issue, removing the pivot table from the Google Sheet fixed it for me.
- airwreckFrequent Visitor
That's actually the issue here. Pivot tables don't work for some reason.
If you need to keep the table there though like I did, export as a CSV instead by using
export?format=csv&id=
- yperezFrequent Visitor
Hi,
I was having the same issue. What fixed this for me was using /export?format=xlsx&gid=130923075 where gid you can get it from the URL of your google sheet. In my case, my google sheet had several tabs including some with Pivot tables and graphs which seem to be causing the issue. Thus, to export just the tab needed, click on the tab and get the gid to be used as shown above. For example the complete URL format will look as below:
- AnonymousNot applicable
I just encountered this error myself. The simple way of solving this is to remove any pivot tables in the google sheet, after downloading the file.
This has worked for me.
JM - emilhizerFrequent Visitor
This always seems to occur when I have a pivot table somewhere (anywhere on any tab) in the google sheet, even if I'm not importing that tab to Power BI. Tested by removing the tab that I added that had a new pivot table, and Power BI started loading my sheet again.
- yperezFrequent Visitor
Hi,
I was having the same issue. What fixed this for me was using /export?format=xlsx&gid=130923075 where gid you can get it from the URL of your google sheet. In my case, my google sheet had several tabs including some with Pivot tables and graphs which seem to be causing the issue. Thus, to export just the tab needed, click on the tab and get the gid to be used as shown above. For example the complete URL format will look as below:
- krcarlosm1990Regular Visitor
It's also important to verify if your data base (excel, google sheets) constains filters actived.
If some filter is active, this can cause the same error. Just clean all your filters, save and close the file. Try again. - GilbertQ
Super User
I would suggest possibly creating a basic Google Sheet and see if that will connect successfully.
If that does work then there must be something different in the Google Sheet you are trying to connect to which you would need to try and go in a step-step manner to see what is causing it. - v-jiascu-msft
Microsoft Employee
Hi sushantj,
I found something here: relationship-tag-contains-incorrect-attribute-line-2-position-86 , which could help.
"Sometimes xlsx files, generated by the third side vendors, have errors in XML schema. Try to open this file in Excel and immediately save it, then close."
For more infromation: https://productforums.google.com/forum/#!msg/docs/Pi1zSLYeE0I/1C0YpBuqAwAJ
Best Regards!
Dale
- sushantjFrequent Visitor
Hi v-jiascu-msft,
This one is a good solution. But, i am trying to connect the actual google sheet to Power BI so that i can automate my process. As the data gets updated in the sheet, it will get updated in Power BI.
Downloading google sheet as an excel file will not serve that purpose of mine.
Thanks for your search though.
Regards,
Sushant
- KristyNew Member
Hi!
I have the same problem. Trying to import google sheets to Power BI and have this messege.
Did you solve it somehow?
- JannatFrequent Visitor
I am having exactly the same error. Is there anyway to solve it?
- makencyNew Member
tambien tengo el mismo inconveniente cual es la fuente que lo genera
- makencyNew Member
Buenas tardes quisiera saber si ya tiene solucion para este error
Gracias.