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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

 

GilbertQ
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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