Does SSRS preview create phantom error messages? - visual-studio

I am using Visual Studio 2017 to design a SSRS report. Are some of the error messages one sees when they click on the Preview button actually meaningless? For example, I get, "The tablix 'Tablix2' is invalid. The value for the DataSetName property is missing." But when I look at the xml for the rdl file, I can not find any "Tablix2".
Report Properties are empty. When I build, there are no errors or warnings

Visual Studio is probably showing you all the errors from the SOLUTION rather than just the one report. There should a drop down menu below the Error List window title bar with the different scope selections.
It defaults to Entire Solution but you can change it to Current Document.
The errors also don't disappear after you correct them (thx MS). You need to close and re-open VS to not see them.

Related

SSIS/SSDT Warnings Don't Appear in Error List

Essentially, I encounter the same problem as the question below, except that the accepted answer does not resolve it. I have neither warnings nor errors in the Error List:
See complete tooltip error message for Data Flow SSIS element in Visual Studio
Similar to the question noted above I can see a truncated warning message on the Data Flow design surface.
However, no corresponding warning is visible in Visual Studio's Error List view.
How can I view the entire warning?
This is a bit misleading from Visual Studio and could have been handled better. The long and the short of it is that the Error List window lists only messages that are related to build issues.
The warnings and errors that you see in design time are related to the execution flow. In other words, a package can be built correctly but is designed in such a way that it will generate an error. For more reading:
MSDN: Cannot see errors or warnings in SSIS - why ?
SQLServerCentral: Cannot see errors or warnings in SSIS – why ?
You will need to run the package in debug mode and then go to the Progress window. From there, you can see all messages (e.g., information, warnings, errors, etc.). Some messages may be so long that they cannot be seen. For those messages, you can click on them and paste them into your favorite text editor.
Note: when you stop debugging, the Progress window changes its name to Execution Results and the error List window becomes available.
Update
Per Hadi's follow-up comment, I was initially able to re-create the OPs problem by just modifying an existing package to create the warning message. I then built and ran the project with without receiving any error messages.
Now, after having left the office and shutting down Visual Studio, I am unable to recreate the error. The Error List window now populates with the messages. I tried building a new package from scratch without any luck either. My best recommendation at this point would be to, as with all Microsoft products, restart the application if it is not working as it should be.
This text truncation issue/bug is not just tooltips.
It's in SSIS Toolbox (description box at bottom) - no way to see the entire text describing the task/component (if not too big you can increase the width of the pane but that is not really acceptable).
(VS/SSDT 2019)
Many things to try
Try to change the combobox selected value from Build + Intellisense to Build only
Open and close the OLEDB Source by double clicking on it, since you tried to build the package the warnings disappears from the Error List, you must revalidate the component to show them
Try to update the Visual Studio 2017 to the latest release

Visual Studio View Code on Multiple Files at Once

I'm in the process of migrating some Web Sites to Web Applications, using Visual Studio 2017. One thing I can't seem to figure out is how do I open multiple .cs files at the same time? I can open the .aspx file for them easy enough by right clicking and choosing Open. I can view the code behind on a single page at a time by right clicking and choosing View Code. In the old Web Sites I could right click multiple files at once and select View Code, however, it appears in Web Applications that option has been replaced with "View Code Gen File" which isn't the same thing. It's painfully slow to open a single page at a time so hopefully there is a setting I am just not finding.
EDIT: As requested, uploading screenshots. Only .aspx files are selected but when more than one is selected the "View Source" option is no longer there. Also I should note that if multiple are selected in Solution Explorer, pressing F7 also has no effect, though that keystroke does work to View Source of a single file at a time.
After further experimentation, I now see what you see and I agree that it's something that Microsoft broke along the way. In fact, in your own image, if you single-select an aspx file in Solution Explorer then you can see the "<>" icon appear in the button bar at the top of Solution Explorer. But that icon disappears whenever you select two or more aspx files.
I've done a lot of work with Visual Studio over the years and I can't imagine any justifiable reason why Microsoft would have deliberately removed the View Code option from the context menu for multiply selected aspx files.
This appears to be a bona fide bug that should be reported to Microsoft.
Meanwhile, as a workaround, use the File | Open option in Visual Studio 2017 and, in the resulting Open File dialog box, simply multi-select any .cs files you need (this dialog box allows you to multi-select files and open all of them at once).

How to determine validation warning details in SSIS VS 2005

In my control flow window, I have a data flow task that has a validation warning icon on it. The tool tip text displays a general message: "Validation Warnings Occurred". When I double-click to view it in the data flow task window, none of the objects have a validation warning.
It is is difficult to find the warning in the error list window because I have a over 30 connection managers that do not map to my TFS local path and it produces 2 notifications per un-mapped connection manager.
Is there another way to determine where or what this warning is referring to?
I am using VS 2005 Professional with SSIS version 9.00.05000.00
Those warnings sometimes hang around after the issue has been resolved. Try closing and re-opening the package.
Also you can execute the package and review the Output window.

Why can't I see the "Report Data" window when creating reports?

I'm creating RDLC reports in VS10. When the program is NOT running, I can see the toolbox, and add controls to the report, but the "Report Data" pane is nowhere to be found, so I can't fill the controls on my report. However, if I run the solution, the "Report Data" pane appears, and I can drag fields on to my report, however the Toolbox contains no controls while I'm running. So, I've had to put the controls on to my report while not running, run the project and while it's running I can put the fields in....
anyways, how do I get the Report Data pane to stay visible while the project is not running?
The most common answer to this problem is to go to the Data menu and choose Show Data Sources. This option does not appear for me.
The Show Report Data Pane keyboard shortcut did work for me:
CTRL+ALT+D. There is nothing in the menus that I could find that does this same thing.
After I accidentally closed this window, I took an hour to find how to bring it back up.
The right answer is indeed:
View-->Report Data (ctrl+alt+D)
The tricky part: the 'Report Data' entry does not always appear in the 'View' dropdown. Make sure that you have a report open, and some element of the report selected.
If you're not 'in the report', the entry disappears from the menu.
Hi I faced the same issue in VS2008, I tried based on the post 8 (Thanks to the "Tricky part" section in that)
The (Ctrl+Alt+D) combo did not work there in VS2008, but after opening the Report file(rdlc) I browsed on the View menu and found out that View->Toolbars->Data Design is the solution for that.
Upon opening that we get around 4 icons of which the "Show Data Sources" section brings the "Website Data Sources" section which fetches all Entities, Typed DataSets etc.
The keybord shortcut is (Shift+Alt+D).
The twisty part here is the "Data Sources" section available with the Server Explorer toolbar doesnt bring up any stuff but the "Website Data Sources" brings all the needed., can somebody explain that to me.
I was also same problem in Visual Studio 2013, Then Suddenly got an Idea.. Click on Report to make focus on it.
Simple Press Alt+Ctrl+D
I had the same problem, but in c# 2012
I closed the "report data" and I couldn't find it and I finally found a solution to this issue.
This is my method:
VIEW >> TOOLBARS >> CUSTOMIZE >> COMMANDS ... select from the "Menu bar" .. VIEW.
OK now in the "Controls" find the "REPORT DATA", select it and MOVE it UP, close the menu.
After that select a file.rdlc and click on the "View" ... OK Finally will be appeared "REPORT DATA"...
I had to go through a bit more to force a refresh in VS 2008.
First, there is a Data Sources pane/toolbox (menu trail = Data > Show Data Sources), and a Report Data Sources dialog (menu trail = Report > Data Sources). I had trouble with the Data Sources pane reverting to an earlier property list every time I opened a certain report; it was as if the report designer was overwriting the data definition with the report's cached version thereof.
To remedy this, I had to:
Exclude the report from my project to stop the build errors
Clean & rebuild my project
Refresh the Data Sources pane & confirm I could see the new fields
Re-include the report and open the report designer with the Data Sources pane pinned in view
(This is the key) Drag one of the new fields anywhere onto the report surface
Number 5 forced the report's internal XML copy of the data definition to refresh. Immediately after that, I could build again.
If the report designer is opened, Report Data Pane can be enabled using view menu.
View -> Report Data
It is in visual studio. In the designer page, it is on in the menu bar, there is XTRAREPORTS field. You can show up panels using it
Open report in Report designer
Go to View menu -> Report data
I was in a weird situation in VS2019 where choosing View -> Report Data did nothing, and pressing Ctrl-Alt-D did nothing. The Report Data window had just strangely appeared on the left for no reason, when it was supposed to be on the right, and so I had moved it back to the right and then made it auto-hide. Not long after that it disappeared and would refuse to reappear. Possibly it was off-screen but hard to say.
To fix, I had to resort to using Window -> Reset Window Layout which restored its position and I was able to use it again.
First of all select report file with rdlc extension and then go to View > Report Data
please go to
View > Toolbars > Customize
then select "Data" categories then click "Show data source" in command panel
"Data" menu will be seen in menu panel. click to get the website data source

How to change the prompt value of an RDLC report parameter in Visual Studio 2010

I have upgraded my projects to VS2010 a while ago and i'm using local report server reports (RDLC).
The parameter definition dialogs have moved to the Report Data pane, that was the first barrier to get over.
Now i wonder where i can change the prompt value of a parameter - the text the user is prompted when entering a value for the parameter.
I know i can change it by editing the rdlc file in an xml editor - i just can't belief that they have removed the textbox from the dialog.
See a screenshot of the parameter properties window in VS2010:
Well, apparently i don't have reporting services installed for vs2010, but i've got 2008, so hopefully it's in the same place.
In 2008, there is a window called Report Data that has your parameters, data sources, and data sets. Your parameter/s should show up under the Parameters section. If you right click a parameter and click parameter properties, a new window appears. Under the General section there's a box titled Prompt. I believe this is what you need to change.
Hope this works in VS2010. Let me know if it doesn't.

Resources