I'm using Visual Studio 16.4.5 with SSRS 15.0.1659.0
Currently, I'm trying to pass a URL in native mode with three parameters:
="https://reporting/ReportServer?/Production/Equipment/Prime%20On%20Rent%20No%20Shipper&AttachmentOption=N&Store=" & Fields!StoreNumber.Value & "&Division=" & Parameters!Division.Value
Every time I click the resulting box on the server side, I get:
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
I've tried wrapping it in javascript, even though I don't want to use javascript for this. I just want to be able to open the target report with the parameters in it. What am I doing wrong?
So, a couple of things:
I had the wrong alias for one of the tables in my query, so it couldn't be found.
I had to make the two initial variables accept multiple values so that I could join them in the final URL.
Once I fixed those issues, it worked!
Related
I just installed the community version of Delphi, Delphi 10.3
I want to use FireDAC in stead of ADO,
so I want to test connections to SQL Server using FireDac but it is a complete disaster.
I dropped a FDConnection component on the form, and want to configure it to use Sql Server
There I notice I can choose from many DriverNames but not MSSQL
Why is that ?
So I tried the FireDAC Explorer but this has even more mysteries.
I add a new Connection Definition and there I can use MSSQL, but I cannot save this definition.
The save and save as button are disabled.
So I enter all the parameters I need, and yes, it opens my SQL Server database. I can see all tables, views, procedures... And I can even open a table to see the first 10 rows.
Great, if I could only save this definition...
Everytime I open the FireDAC Explorer my new definition is still there, but all parameters are not stored. I have to enter them all every time again.
But, no problem I think. I copy the parameters from the working definition and paste it in the parameters from the FDConnection on my form.
The parameters look like this
User_Name=xx
OSAuthent=No
Server=123.456.789.987\GTT
Database=DB_Test
DriverID=MSSQL
Name=DB_Test
Hm, interesting. Now it does show MSSQL as drivername. So let's set the connection property to true.
Now I get this error (allthough this is working fine in FireDAC Explorer with these parameters)
[FireDAC][Phys]-300. Driver [MSSQL] is not registered. To register it,
you can drop component [TFDPhysMSSQLDriverLink] into your project.
Well alright, if that is all I need to do.
But, it seems I don't have the component TFDPhysMSSQLDriverLink
I have others for all kind of databases, but not this one.
It seems there is something missing, but the errors don't give me much of a clue
So I am hoping there is someone here that understand the errors and can help me to fix this
EDIT
I found this question here with an accepted answer, but I don't know how to use that answer. I have no clue how to use the License manager to register FireDAC
looking for some FME help if anyone can. I am having a bit of an issue where I am running a workspace through FME server to turn GML into single line sql using a GEODATABASE_SDE writer. Have a few other workbenches doing same thing for different data sets and they work fine. This particular one however runs 21 jobs in server reading in the different files, 2 succeed and write features to the sql database, 19 fail with
An error occurred while attempting to retrieve the connection
parameters from the connection file
I can't figure out why it would work for 2 (different 2 each time) and not the others. The SDE file works fine in Arc Catalogue to connect to the DB.
I have tried rebuilding the writers to make sure that they were pointing at the right SDE connection and did not have some reference to an old one left.
Has anyone encountered this before or have any ideas on what is causing this? Thanks in advance for any help
I'm running into an issue with data binding Web Performance tests. I have two web tests each databound to different CSV files. The first one created initially is running perfectly. But the second web test is throwing the following.
error:
Could not run Web test 'WebTest1' on agent {{SERVER}}: Could not access table 'Data#csv' in data source '{{Datasource}}' of test '6181b289-71fa-478f-8341-eba270b46c2a': No value given for one or more required parameters.
I'm running them locally. No Controllers or Agents are setup and I'm using VS 2010 SP1.
Open the CSV file in the visual studios that is loaded in the web test and change the separator from ; to , for both header and values. For example:
Before:
username;password;shopID;periodID
user1;password11;1;10
user2;password22;2;10
After:
username,password,shopID,periodID
user1,password11,1,10
user2,password22,2,10
I received the above error after creating my .CVS file from the results of a SQL Server query. After inspecting the .CVS with Notepad I found it was formatted as UTF-8. From Notepad simply set the Encoding to ANSI instead of UTF-8 or Unicode and this will resolve the problem.
I've just set up TFS2010 and connected VS2010 to it, then created a New Team Project using the default Agile template. No worries to that point. Then I tried to add a Task. It wanted a value in Title, so I supplied one, no problem there. But then it reported
The field 'Changed By' contains the value 'login-name' that is not
in the list of supported values.
By login-name I mean the name between the single quotes is my Windows Domain login name. I can't even make a guess at a valid value, because this is not a value the user supplies. It's not even displayed on the UI.
When I try to save the Task, I get this
---------------------------
Microsoft Visual Studio
---------------------------
Save failed.
TF20015: The field 'Changed By' contains the value 'pwone' that is not
in the list of supported values.
TF20015: The field 'Activated By' contains the value 'pwone' that is not
in the list of supported values.
---------------------------
OK
---------------------------
Am I incompetent at using this? Is there some configuration I have failed to set? Help! Help! I'm being repressed!
To make things even more confusing, a day later and the whole thing mysteriously works. Neither workstation nor Sharepoint server has been rebooted to the best of my knowledge. It's all too weird for words.
Within TFS there is a job that synchronizes usernames from Active Directory to Work Item Tracking for users that have access to the server. It populates the available values for the Assigned To, Changed By and Activated By fields.
It's possible that this job had a problem or hadn't run yet, which is why it mysteriously started working again the following day.
If it happens again, you can download the Team Foundation Server 2010 Power Tools from here. Then install the Best Practices Analyzer (BPA) component and then run a health scan. It should identify what the problem is.
Can I open the ads_err table from a windows service?
Yes. You should be able to open it just like any other table. You don't mention what development environment (client type) you are using, so I am not able to give more details specific to your situation.
After you have a connection to the server, all that is necessary is to supply the full path to the error log. If you don't want to hard code the path (probably desirable to avoid that), you can retrieve it with sp_mgGetConfigInfo(). The Error Log Path field is the one you would want.
You could also read the error log with SQL by including the path. For example, select * from [c:\ads_err].