cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kryptix Frequent Visitor
Frequent Visitor

Expanded Column Source causing issues when applying query

Hi,

 

I get the following error message when trying to apply a query which has had a column expanded:

 

"Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: [Expression.Error] The Column 'Column1' of the table wasn't found.. '."

 

I believe this is because when the Column1 column was expanded in my data source that it is theoretically no longer there when the query is being applied.

 

My query is as follows:

 

let
    PageRange = {1..100},
    Source = List.Transform(PageRange, each try {_, GetData(_)} otherwise null),
    First = List.FirstN(Source, each _ <> null),
    Table = Table.FromRows(First, {"Page", "Column1"}),   
    Expanded = Table.ExpandTableColumn(Table, "Column1", {"id", "uid", "siteId", "siteUid"})
in
    Expanded

 

I've done research on here but all threads don't seem to end in a solution.

 

Please help!

 

Thanks in advance,

 

Shaun

3 REPLIES 3
kryptix Frequent Visitor
Frequent Visitor

Re: Expanded Column Source causing issues when applying query

OK. I think i know the issue.

 

My code pulls down entries from a data source where i don't know how many entries there will be (hence the PageRange). As such at the end of the data set the last row always errors which i think then causes the initial problem... still not sure how to fix it though!

Microsoft v-jiascu-msft
Microsoft

Re: Expanded Column Source causing issues when applying query

Hi Shaun,

 

It can work in my test based on your description here. I'm afraid there could be something wrong in other parts. You named the column "Column1". So that would not a problem. Please refer to the snapshots below.

Can you share the code of GetData? Please mask the sensitive parts.

Expanded-Column-Source-causing-issues-when-applying-query

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Microsoft v-jiascu-msft
Microsoft

Re: Expanded Column Source causing issues when applying query

Hi @kryptix ,

 

Could you please mark the proper answers as solutions?

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)