The data set name is missing in the data region 'DataSetName' - sql-server-2005

I added an additional, new DataSet to my report and have been getting this cryptic error ever since.

The issue was that when the report had elements setup using the first data set I'd defined when the report was created. Adding an additional data set reset the DataSetName value to be blank. In this case for my Table but it could be for a List, etc.
To correct:
Open the report in SQL Server Business Intelligence Development Studio (AKA Visual Studio)
View the object details in the Properties Window (View > Properties Window or press F4)
Check the DataSetName value (under the Data section)
Update the value to point to the correct Data Set

Examine your RDLC file, open it in a XML editor. Most specifically, take a look at the Dataset section. See if there are some old ones that are still there. You can edit this file directly, but be careful what you do.
You can also attempt to run the RDLC file through a XML validator, and see if it comes up with any errors. Make sure to validate against the RDLC file's schema. (http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition/ReportDefinition.xsd)

I had a bit of trouble finding the correct properties window that contained this value, so I will add the following:
On the Layout Tab, press F4 to bring the properties box up.
In the dropdown at the top of the properties box, find your table and select it.
You should now see that data section about halfway down, along with the DataSetName property the error is complaining about.

I know this is a decade late, but this is to possibly help the next guy that is searching the internet for answers (like me).
In SSRS, right-click any unused/white area of the report then choose Select-> and the Group level (not group level content) that you are getting the error about.
In the properties window (Menu->View->Check Properties) for the Group Level, scroll down to General the DataSetName. Select the drop down arrow and choose the original dataset.

Related

Show tree structure in Azure Monitor Workbook

If I navigate to the "Logs"-section in Azure to find the entries of my Azure Monitor, I get a tree structure that looks like this:
In this example I am just showing all exceptions without any formatting.
By default I can expand an entry and then expand the stack trace etc.
I want to get the same behaviour inside of a workbook.
But here my items do not have any tree like structure. I just get a list of items like this:
The only thing I found was to change the column settings like this:
But this is not doing what I want. I think my exceptions do not have an id-parent id structure.
Any proposals how I can just show the same result in the workbook like in the normal query editor?
The grid control used by workbooks doesn't currently have that "Expand" behavior that the logs view does for expanding a single row inline.
The closest thing you can do, in the column settings for the grid, you can set a column to be a link, and have that link either:
open up the "cell details" view to get a side panel with the contents of that specific cell (useful if the cell contains json or other content)
open up the "generic details" view that shows all of the contents in that row
so for example in this example making the "tablename" column a text renderer (you can use links with any kind of renderer though), and making it open up the "generic details" view with these settings:
will result in a popup on the side that looks like:
(in this case i only have 2 columns so it isn't very exciting!)

Why did I have to manually set the .value from the .text on losing focus in an unbound textbox

I have an unbound textbox to accept the delete older than: number of days. It is in the report header. I set it to 30 days but I want the user to be able to change it. I was banging my head trying to figure out why entering 40 was not being accepted and it reverted back to 30 every time. I finally decided on using the lost_focus event to set .value to .text. That worked.
Further research showed that when the textbox get's focus text and value are both the same, 30 in my case. Changing the number in the text box to 40 shows the values of text at 40 and value at 30. Unless I specifically set Value to the value of text Access changes text to the value of value. This is different behavior than other places in Access such as forms.
Can anyone tell me why this might be? I can't find any setting that might do this. Is it because it's in a report header? what is the difference between this and every other text box I've ever used?
From a "best practices" viewpoint, Access Reports are not intended to be used interactively despite the ability to manipulate some unbound controls. Although workarounds can be implemented that function sufficiently well, such solutions are often incomplete and buggy and function differently depending on the active view: Report View vs. Print Preview. Appropriate design patterns include using Access Forms for specifying report options which then open the Report in a static configuration.
This may not satisfy the question "Why?" if seeking a deeper answer as to why Microsoft implemented inconsistent binding behavior in Access, or why they allowed interactive controls in reports at all if they don't behave the same way as in forms. But Access has plenty of other quirky behaviors that have no known/published explanation.
Regarding the priority of the Value property updating the Text property (and not vice versa): Value is the key field because it contains the actual data for the control (bound or unbound). Although it is natural to have a single control for both display and input (uh, that's how almost all controls work), the processes of displaying data and parsing user input are two distinct functions. The visual representation returned by the Text property can be manipulated using the various formatting properties, and technically could display an incomplete representation of the underlying Value data. If there are any conflicts between the stored Value property and the Text property, it is natural that the existing Value property has precedent.
My guess is that the automatic binding behavior was "relaxed" for reports to allow more flexible custom reporting output. First consider an Access Form in Datasheet view: An unbound Form control shows the same value for all records. Even if the control is edited while on a particular row, the updated value is displayed for all rows. The same control object is essentially repainted for each row and there is no concept of individual instances of the control that can hold different values. Bound controls have built-in code that repaint the control with data from the particular row, but there are still not multiple instances each "holding" the individual values. The visual output differs from an intuitive object-oriented paradigm where our minds what to assign each visual row its own in-memory instance of the controls--it just doesn't work like that in Access.
Unlike the Form behavior just described, the Report's Print Preview (and actual printed output) allows unbound controls to display different data per row using the Detail_Format() event. Within the Detail_Format() event, one can set the Value property of a control at which time the Text property is automatically updated according to various formatting properties. This update Text is then output for the current row. Perhaps (just guessing) that this behavior would not function properly if the Text property updated the value property. I suspect it would cause recursive events during report generation. Because reports are not meant to be interactive, relevant text-input parsing code was "disconnected" so that it doesn't behave like on a form.
All that explanation doesn't make Access any less frustrating nor remove its limitations, but at least learn to adapt and design things in the "Access-esque" way rather than fighting it.
your best bet is to design a form with the unbound combo boxes and have your data displayed in a subreport. I like to design my reports so that when values are updated the query for the recordsource of the report is generated doing this requires 2 queries to exist, one with all data possible and a filtered one as subreport recordsource. This will control the data for printing and also allow users to close or navigate away from the report and return to the data later.
Private Sub ComboBox1_AfterUpdate()
Dim Query1 as Object
Dim Temp_Name as Variant
Temp_Name = SubReport.SourceObject
SubReport.SourceObject = Empty
Set Query1 = Me.Form.Application.DBEngine.Workspaces(0).Databases(0).QueryDefs ("SubReport_Query")
Query1.SQL = "Select * Unfiltered_Query WHERE Field1 <= " ComboBox1 & ";"
SubReport.SourceObject = Temp_Name
End Sub

SSRS not displaying data but displays data when query runned in tsql

I have a SSRS report that do not display data in preview mode. However, when I run the same query in SQL Server 2008 R2 I can retrieve the results
What could cause this?
I also used Set FMTOnly to off because I use temptables.
if you use "SQL Server Business Intelligence Development Studio" not "Report Builder" then on reporting services (where is you table):
click View -> Properties Window (or just press F4)
select the tablix
on properties window find "General" and in the "DataSetName" choose your "Dataset"
On tablix fields set values from your "DataSets"
Or just do like here(from 8:50): http://www.youtube.com/watch?v=HM_dquiikBA
The Best solutio
Select the entire row and change the font to arial or any other font other than segoe UI
default font
default font
no display in preview
no display in preview
changed font first row
changed font first row
first row is displayed in preview
first row is displayed in preview
changed secon row font
changed secon row font
data is displayingig
data is displayingi
A workaround should be:
1) Select the parameters and click on View Report (you will not see nothing or some cells will display content and some not)
2) Click on Print Layout (next to the printer)
You will be able to see content. If you have expand/collapse functionality and then you will not be able to interact with the UI.
I faced similar issues. If you remove/delete the parameter, open the dataset definition and refresh the fields, the parameter should be recreated. Then run the report. It worked for me.

How do I set up a dynamic file path in SSIS for an Excel file?

The name of the file changes based on months. Every month you have a new file.
I:\Test\Data_201303.xlsx
How do I set up a connection manager that will work with variable file paths?
Look for the "expression" property on the connection manager. That's where you set it to USER::VariableName.
More detail: if you "edit" the connection manager it will show you the edit window. That's not the one you want. Look at the "properties" window, which is where you will find the "Expressions" entry, in front of an empty box.
Click on the empty box, and it will show you a button with three dots on it. Click on that button. This pulls up the "Property Expression Editor". There is a dropdown with properties like "ConnectionString" on the left. On the right, there is ANOTHER button with three dots. Click on that button to pull up the "Expression Builder". If you have declared any variables, you will find them listed in the upper left hand corner, e.g., as User::VariableName, and you can then drag them into the Expression box, where they will appear as #[User::VariableName].
Not obvious, but doable.
You need to set the expression for the ServerName or ExcelFilePath property to modify ConnectionString of Excel connection manager dynamically using an SSIS package variable.
Here are some SO answers that deal with looping multiple Excel files :
How to loop through Excel files and load them into a database using SSIS package?
How to import Excel files with different names and same schema into database?

Rdlc Report in dotnet

I am generating rdlc report in dotnet2.0 C#. My doubt is I want to freeze the Table header (like Excel freeze) in the rdlc report. Since my table data is more, I need this option.
Although this is old, it still came up in Google search when I was looking for a similar issue. So I'm posting this here just in case...
In SSRS 2008 the option to freeze a row or a column is FixedData = true. See this article for details: http://support.microsoft.com/kb/955822
Also, if your ReportViewer control is allowed to stretch to the entire HTML page, it will likely set the height of the internal table to include all rows in the dataset (or for however may rows fit on "ReportViewer page"). In that case the scroll bar is enabled for the entire page, and the report cannot keep top rows frozen. Instead place the ReportViewer control inside some viewing container and add a script to adjust width and height on window resizing.
set your fixheader property true
for this Select Table > property > fixheader = true
Second way open your rdlc file in xml edition
put the fix header as show below in your header tags
<header>
<FixedHeader>true</FixedHeader>
</Header>