Forum Discussion

seraphlich's avatar
seraphlich
Regular Visitor
5 years ago

Custom Connector not showing custom icon

Hello everyone,

   

I hope you all are doing well!

 

I am working on a custom connector for power bi.

 

But I can't get my icons to display in PowerBI Get Data List, it is still showing the default icon. I tried to follow this thread (https://community.powerbi.com/t5/Developer/Custom-Data-Connector-Icons/m-p/829327#M21204) and make sure that the properties of each icon was set to a 'build action' of 'compile' instead of 'content' in the Solution Explorer but it does not work in my case.

 

Even more strange, sometimes the icons of all database kind connector with default icons (the small cube icon) change to my custom connector: it seems that my connector always shows the default icons but the default icons change as I update the icon files in my connector.
 
The code snippet is like:
PowerConnector.Publish = [
    ...
    SourceImage = PowerConnector.Icons,
    SourceTypeImage = PowerConnector.Icons,
    ...
];
 
PowerConnector.Icons = [
     Icon16 = {
              Extension.Contents("PowerConnector16.png"),
              Extension.Contents("PowerConnector20.png")
              Extension.Contents("PowerConnector24.png")
              Extension.Contents("PowerConnector32.png")
     },
     
     Icon32 = {
              Extension.Contents("PowerConnector32.png"),
              Extension.Contents("PowerConnector40.png")
              Extension.Contents("PowerConnector48.png")
              Extension.Contents("PowerConnector64.png")
     }
];
 
Am I missing any thing? Please help..
 
I hope i was able to clearly explain my questions. If not , please feel free to message me . I am looking forward to your reply.

2 Replies

    • seraphlich's avatar
      seraphlich
      Regular Visitor

      Thank you for your reply!

       

      I tried 2.87.1061.0 (November 2020) in my dev environment and lastest version in my personal test environment. In both environments, this problem occured. So is it the only option that I contact to PowerBI dev team?