Forum Discussion

Mahmoud_Alashi's avatar
Mahmoud_Alashi
Frequent Visitor
2 years ago
Solved

dynamic image path Parameter for paginated reports in Power bi Report Builder

Hello, i have been trying to have my local image path be dynamic and be inside a parameter. 

i tried putting and online image URL in a parameter and put as external source for my image and it was working fine, but when I try to do the same for my local C: images it shows a red X instead.

 

same thing if I have a shared image in my network.

 

here are some snapshots:
1: static path with server IP


Result : image shown in design view only, when I hit run the image becomes a red X 

2: same image path but directly opened from said server : 

Result: Same as before, show in design and red x when run.

3: online image URL works just fine.

why am I unable to get it to work for my local/server images? what could be the issue?
(the image type is saved as .stream)



  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Mahmoud_Alashi ,

    The behavior you're experiencing, where images display as a red X at runtime, typically indicates that the report server is unable to access or render the image from the specified path.

    Ensure that the report server has the necessary permissions to access the local or network path where the images are stored.

    Storing images on a web server is a good option, especially for the company logo, which may be sourced from the company website. However, take care if your report users will access reports outside your network. In this case, be sure that the images are available over the Internet and do not require authentication or additional sign-in to access the image. Images stored on a web server must not exceed 4 MB in size or they will not load in the Power BI service.

    Image use guidance for paginated reports - Power BI | Microsoft Learn

     

    If it does not help, please provide more details.

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Mahmoud_Alashi ,

    The behavior you're experiencing, where images display as a red X at runtime, typically indicates that the report server is unable to access or render the image from the specified path.

    Ensure that the report server has the necessary permissions to access the local or network path where the images are stored.

    Storing images on a web server is a good option, especially for the company logo, which may be sourced from the company website. However, take care if your report users will access reports outside your network. In this case, be sure that the images are available over the Internet and do not require authentication or additional sign-in to access the image. Images stored on a web server must not exceed 4 MB in size or they will not load in the Power BI service.

    Image use guidance for paginated reports - Power BI | Microsoft Learn

     

    If it does not help, please provide more details.

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.