How do I make report warnings clear?

Roberts, Nathan 1 Reputation point
2022-06-23T18:10:50.01+00:00

Hello,
I'm building a report using visual studio 2019.
In the report I have a tablix and the some of the boxes are text boxes with a condition statement to control the fill color.
I used the Expression builder to create the expression, and under the "Constants" Category I clicked on the value for "No Color" This inserted the text "Transparent" into my expression.
However when I go to preview the report I get a series of warnings.
[rsInvalidColor] The value of the BackgroundColor property for the text box 'R_Name' is "No Color", which is not a valid BackgroundColor.
[rsInvalidColor] The value of the BackgroundColor property for the text box 'R_System_Type_Name' is "Transparent", which is not a valid BackgroundColor.
[rsInvalidColor] The value of the BackgroundColor property for the text box 'G_System_Type_Name' is "Transparent", which is not a valid BackgroundColor.
Since the value was generated by the application I thought this was odd. But with a little of searching I found that replacing the word "Transparent" with the value of Nothing should clear this error.
So I changed the expression for that report to use Nothing. Oddly the warnings about "Transparent" being invalid remained. I tried rebuilding the project, I tried the Clean Solution option and even closed and re-opened the report. Nothing seemed to clear the warnings.
Ultimately I was able to make the warnings go away by closing and re-opening Visual Studio. I didn't think that the program design would have closing and re-opening it be the preferred way to clear warnings. But my searching did not yield any answers other than what I'd tried.
So how do I clear the warnings?

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,988 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Isabellaz-1451 3,616 Reputation points
    2022-06-24T01:37:16.21+00:00

    Hi @Roberts, Nathan

    VS is a huge software, and it will definitely use the cache to improve efficiency when running. This warning should be due to the cache. And the cache has been cleared when you close VS completely.

    Best Regards,
    Isabella


    If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Joyzhao-MSFT 15,601 Reputation points
    2022-06-24T02:09:29.51+00:00

    Hi @Roberts, Nathan
    Have you tried "Build Solution" after "Clean Solution"?
    Best Regards,
    Joy


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.