Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ECowell
New Member

"Duplicate output alias" error when appending

Hi all,

I'm fairly well versed with Power Bi and Power Query, however i am absolutely baffled by this error

I am appending two tables to create a master employee file,
- one a hard coded dataset that doesnt change (employees that have already left)
- Two the EXACT same dataset but one that updates as and when an employee leaves / joins
Table 2 updates daily with the changes, so the aim is to use power query to append table 2 into table 1, remove duplicates and essentially keep a self-updating master file of all employees past and present

But when i appent the two through Power Query i get this error 

ECowell_0-1710258904597.png

Neither table has more than one column with the same name, Both tables have the same columns with the same column headers
Table1 comes from an access database
Table2 is "get data" to a CSV File

Everything is formatted the same (Text)

If i change the column names of table 1, It just appends the two tables side by side

Does anyone have any advice on the best way for me to create this data?

Short version:

I have two tables containing employees, one access databse file, one CSV. 

the CSV file only contains current employees - If someone leaves, they drop off the file
The access DB contains all employees that have left as of today

I am currently manually updating the Access file to include all employees (pasting CVS below and removing duplicates)
I want to automate this process but for reasons mentioned above the power query append does not want to work

Does anyone have any suggestions on the best way to create this query / table, or how to fix my current issue?

Thanks in advance!!

1 ACCEPTED SOLUTION
ECowell
New Member

UPDATE:

The issue was the name of the columns - despite Table 1 being a hard coded version of table 2, i copied and pasted the column headers from Table 2 into table 1 and it worked as it should...

I cant say i understand what happened and why, but it is resolved now - hopefully this helps someone else 

View solution in original post

3 REPLIES 3
ECowell
New Member

UPDATE:

The issue was the name of the columns - despite Table 1 being a hard coded version of table 2, i copied and pasted the column headers from Table 2 into table 1 and it worked as it should...

I cant say i understand what happened and why, but it is resolved now - hopefully this helps someone else 

lbendlin
Super User
Super User

Go to your access db and remove the alias from the code.

 

Importing Queries to Blank DB created "Duplicate Output Alias" Errors | MrExcel Message Board

Hey, thanks for the reply!

I'm not too sure what you mean though - the "duplciate alias" is the name of the column header in the export

When i change it to something different my table appends like the screenshot below

ECowell_0-1710517069333.png

with the left most columns being the table from access db and the "null" columns being the CSV - if i filter out the nulls i get the same table in reverse

ECowell_1-1710517134394.png



this has absolutely thrown me- the BI report has several other appended tables no problems but for some reason this one just wont work

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors