cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microtécnica
Regular Visitor

Error contains a duplicate value, only server version.

Hi.
I've created a dashboard using SalesForce data, but during the construction, I notice that the SalesForce use your ID column letter differently than the Power BI understands its duplicate.

Ex.
Reg. ID
1 123ABC
2 123abc

To resolve this, I decided to convert de column ID to binary and create a link using this new field.

On Power BI desktop work perfectly, without any error when the data is refreshed. but using power bi server the error bellow is showing all the time.


Column 'ID convite Binary' in Table 'Pesquisa de Satisfação DVL Enviadas II' contains a duplicate value '<pii>MEtpMVEwMDAwMDBUTnpv</pii>' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @Microtécnica 

 

Power BI engine is not case-sensitive (for example, " a" and " A" are treated as the same character)

 

I found a solution, maybe it works for you.

Try using Unicode zero-width space characters and the M function Character.FromNumber.
The beauty about this approach is that the zero-width space character is invisible and does not take up space.

 

Result:

vangzhengmsft_0-1623924664446.png

M code:

vangzhengmsft_1-1623925004607.png

 

Please refer to the attachment below for details

 

 

Hope this helps.

 

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

 

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @Microtécnica 

 

Power BI engine is not case-sensitive (for example, " a" and " A" are treated as the same character)

 

I found a solution, maybe it works for you.

Try using Unicode zero-width space characters and the M function Character.FromNumber.
The beauty about this approach is that the zero-width space character is invisible and does not take up space.

 

Result:

vangzhengmsft_0-1623924664446.png

M code:

vangzhengmsft_1-1623925004607.png

 

Please refer to the attachment below for details

 

 

Hope this helps.

 

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

 

View solution in original post

GilbertQ
Super User II
Super User II

Hi @Microtécnica 

 

This could be, because of the case sensitivity. I would change the Reg. ID to be UPPER CASE, and then remove duplicates in Power Query and see if that resolves your error?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.