Forum Discussion
Refresh Error in PowerBI Service. No issue refreshing in Desktop
- 6 years ago
Hi pbi101 ,
Did you have steps like
= Table.AddIndexColumn(#"Added Index", "Index.1", 0, 1, Int64.Type)in your m query?
Try to use the following one:
= Table.AddIndexColumn(#"Changed Type", "Index", 0, 1)and try again.
For more details, please refer to the similar post:https://community.powerbi.com/t5/Service/Unable-to-Connect-to-Data-Source-Undefined/m-p/1323849/highlight/false#M106794
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Anand24,
I checked the code when I got the error.
I have not used Table.FromRecords explicitly in any of the m queries in my report.
But, I have used Table.AddColumnIndex in two occassions.
From the name "Index" in the error message I think there is some issue with Table.AddColumnIndex which does not appear in PowerBI Desktop.
Hi pbi101 ,
Did you have steps like
= Table.AddIndexColumn(#"Added Index", "Index.1", 0, 1, Int64.Type)in your m query?
Try to use the following one:
= Table.AddIndexColumn(#"Changed Type", "Index", 0, 1)
and try again.
For more details, please refer to the similar post:https://community.powerbi.com/t5/Service/Unable-to-Connect-to-Data-Source-Undefined/m-p/1323849/highlight/false#M106794
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
- pbi1016 years agoFrequent Visitor
Thanks! Removed the type and it worked.