Forum Discussion

Back2Basics's avatar
Back2Basics
Icon for Resolver I rankResolver I
4 years ago

Merge not working

I keep getting the following error:
Query 'Merge2' (step 'Expanded Workbook(2)') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

This is the merged query:
let
Source = Table.NestedJoin(#"Matching(3)", {"Unique ID"}, #"Workbook(2)", {"Unique ID"}, "Workbook(2)", JoinKind.RightOuter),
#"Expanded Workbook(2)" = Table.ExpandTableColumn(Source, "Workbook(2)", {"Unique ID", "What WG SFS Intervention level is intervention best suited to? (Dropdown) See note!", "What WG thematic outcome(s) does the intervention deliver? (Dropdown - select all that apply in descending order of delivery magnitude)"}, {"Unique ID.1", "What WG SFS Intervention level is intervention best suited to? (Dropdown) See no", "What WG thematic outcome(s) does the intervention deliver? (Dropdown - select al"})
in
#"Expanded Workbook(2)"

 

 

I have tried lots of different things. Looked at https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/  but can't get it to work. 

2 Replies

  • v-jingzhang's avatar
    v-jingzhang
    Icon for Community Support rankCommunity Support

    Hi Back2Basics 

     

    It seems the step 'Expanded Workbook(2)' only refers to the 'Source' step, so it looks a little weird here. Can you remove the step 'Expanded Workbook(2)' and see if there is any error when it only has the Source step?

     

    Best Regards,
    Community Support Team _ Jing

  • KT_Bsmart2gethe's avatar
    KT_Bsmart2gethe
    Icon for Impactful Individual rankImpactful Individual

    Hhi Back2Basics ,

     

    Please check if any error in queries/steps highlighted in red below:

    Source = Table.NestedJoin(#"Matching(3)", {"Unique ID"}, #"Workbook(2)", {"Unique ID"}, "Workbook(2)", JoinKind.RightOuter),

     

    If you merge 2 queries into a new one, it usually refers to the query name which does not usually start with "#".

     

    Regards

    KT