Using Excel as data source
Hi,
i have created a crystal report that uses Excel as data source. Reason i used excel is for easy updating of data by non IT users. The report runs perfectly on my computer, but when i upload it to Infoview, there is error when i run the report from Infoview:
"The database logon information for this report is either incomplete or incorrect."
"Unable to retrieve Object.
The database logon information for this report is either incomplete or incorrect."
May i know what causes the error? There is no user id/password to access the excel file.
I have also tried saving the excel in the same server as the crystal report server, but i still face the same error.
Pls help!
Thanks
You would have created a connection in your local system to access the XLS data
You should be creating a similar connection in the server as well and then update the rpt file with the connection details in CMS
Thanks,
Ganesh
Similar Messages
-
Using Excel & ODBC data source to get data
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.user11307988 wrote:
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.Adding to sb92075's brief but accurate statement, from one of my recent presentations (note - no need for an ODBC connection):
'Need to add a reference to Microsoft ActiveX Data Objects 2.8 Library before starting
'*** This section might be in the top portion of the user form, worksheet code, or module:
'Declare a connection object in the general section to hold the connection to the database
Dim dbVMFG As ADODB.Connection
'Declare a set of variables to hold the username and password for the database
Dim strUserName As String
Dim strPassword As String
Dim strDatabase As String
Dim i as Integer
Dim intResult As Integer
Dim strSQL as String
Dim lngRow as Long
On Error Resume Next
strDatabase = "MyDB"
strUserName = "MyUser"
strPassword = "MyPassword"
'Connect to the database
'Oracle connection string
Set dbVMFG = New ADODB.Connection
dbVMFG.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=" & strDatabase & ";User ID=" & strUserName & ";Password=" & strPassword & ";ChunkSize=1000;FetchSize=100;"
dbVMFG.ConnectionTimeout = 40
dbVMFG.CursorLocation = adUseClient
dbVMFG.Open
If (dbVMFG.State <> 1) Or (Err <> 0) Then
intResult = MsgBox("Could not connect to the database. Check your user name and password." & vbCrLf & Error(Err), 16, "Excel Demo")
Else
strSQL = "SELECT" & VBCrLf
strSQL = strSQL & " ID AS RESOURCE_ID," & VBCrLf
strSQL = strSQL & " DESCRIPTION" & VBCrLf
strSQL = strSQL & "FROM" & VBCrLf
strSQL = strSQL & " MY_TABLE" & VBCrLf
strSQL = strSQL & "WHERE" & VBCrLf
strSQL = strSQL & " DESCRIPTION LIKE '%10%'" & VBCrLf
strSQL = strSQL & "ORDER BY" & VBCrLf
strSQL = strSQL & " ID"
'Add a new worksheet to the new workbook, add after the last sheet
ActiveWorkbook.Sheets.Add
ActiveWorkbook.ActiveSheet.Name = "JustATest"
snpData.Open strSQL, dbVMFG
If snpData.State = 1 Then
'Slow Method------------------------------------
lngRow = 0
'Header Row
For i = 0 To snpData.Fields.Count – 1
lngRow = lngRow + 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i).Name
ActiveSheet.Cells(lngRow, i + 1).Font.Bold = True
Next i
'Detail Rows
Do While Not snpData.EOF
lngRow = lngRow + 1
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i)
Next i
snpData.MoveNext
Loop
'End Slow Method------------------------------------
'Fast Method----------------------------------------
'Do not use this and the slow method!
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(1, i + 1).Value = snpData.Fields(i).Name
Next i
ActiveSheet.Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(1, snpData.Fields.Count)).Font.Bold = True
ActiveSheet.Range("A2").CopyFromRecordset snpData
'Auto-fit up to 26 columns
ActiveSheet.Columns("A:" & Chr(64 + snpData.Fields.Count)).AutoFit
'End Fast Method----------------------------------------
snpData.Close
End If
End IfA couple of notes:
1. Do not repeatedly connect to the database, execute a SQL statement, and disconnect from the database - connect once and stay connected.
2. Use bind variables where possible in SQL statements for constants (literals) which might change from one execution to the next - let me know if you need s code example showing bind variable usage in Excel.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
Using a SQL data source and XML data source in the same template
I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
Thanks for any help or suggestions you may have.
RhondaHi Pablo
Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
1. You have to have R12 and
2. You'll need to wait for the patch
On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
Regards, Tim -
Bursting using a Concatenated Data Source
Greetings,
I am trying to burst a report using a concatenated data source. I have a bursting SQL query set up that works fine, but I am unsure how to handle the "Split By" option. I have a data model that pulls data from multiple queries, like this:
DETAILS_A
select * from table_a
where payee_id in (:p_payee_id)
DETAILS_B
select * from table_b
where payee_id in (:p_payee_id)
So, if I choose to "Split By" Details_A_Row/Payee_ID, then the data from Details_A is split appropriately, but the reports I generate don't split the information from Details_B properly. I end up with reports where one payee has information for another payee from the Details_B data source. How can I specify that the report should also split/filter the info from Details_B?
To put it another way, what I'd really like to do is go through a list of parameters (payee IDs in this example) and generate a report for each parameter. Is Bursting the most effective way to do this?
From searching the forums, it seems like I might be able to accomplish this using Data Templates as my Data Model instead of SQL Queries. Am I on the right track with that? If so, you guys have any helpful links on how to create Data Templates?
I am using BI Publisher version 10.1.3.4
Any help is appreciated!
MartinFor data template samples, check the following out and then download the zip file (you may not be able to run the reports, but you can view the code)
http://blogs.oracle.com/xmlpublisher/2009/06/data_template_progression.html
Thanks,
BIPuser -
Which user id is used in each data source?
Using SQ: SSRS 2008 R2 - Beginner - Is there a report or query that provides which user ID is associated with the data source of each report? I need to be able to list out all the data sources being used and which user id is being used in the data source
configuration instead of going to each report and using manage to review this. Any help is greatly appreciatedThank you - This is useful - but the username column is encrypted - how do I unencrypt
as per my knowledge there is no way to decrypt it and below link confirm my understanding :)but there is work around also that have shared on technet;
https://social.msdn.microsoft.com/Forums/en-US/f65b4d50-abaa-400b-a09d-ae1d7d1ea041/decrypt-the-connectionstring?forum=sqlreportingservices
WITH XMLNAMESPACES -- XML namespace def must be the first in with clause.
(DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2006/03/reportdatasource'
,'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner'
AS rd)
,SDS AS
(SELECT SDS.name AS SharedDsName
,SDS.[Path]
,CONVERT(xml, CONVERT(varbinary(max), content)) AS DEF
FROM dbo.[Catalog] AS SDS
WHERE SDS.Type = 5) -- 5 = Shared Datasource
SELECT CON.[Path]
,CON.SharedDsName
,CON.ConnString
FROM
(SELECT SDS.[Path]
,SDS.SharedDsName
,DSN.value('ConnectString[1]', 'varchar(200)') AS ConnString
FROM SDS
CROSS APPLY
SDS.DEF.nodes('/DataSourceDefinition') AS R(DSN)
) AS CON
-- Optional filter:
-- WHERE CON.ConnString LIKE '%Initial Catalog%=%TFS%'
ORDER BY CON.[Path]
,CON.SharedDsName;
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com -
Pls. identify some seeded views used as Existing Data Source in DBI Reports
Hi!
Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
Thanks.Jon632 wrote:
Hi!
Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
Thanks.
You can find the list of seeded views in eTRM website -- http://etrm.oracle.com/pls/etrm
Are there seeded tables/views of DBI dimension objects in Oracle EBS?
Thanks,
Hussein -
Hi,
Me and a collegue is administrering our new enterprise BI portal in SharePoint 2013 (On Premise) and have a problem with using a specific Excel file including general ledger data as data source through a BISM file.
This particular BISM file can't be saved without getting the error message "There were errors found while validating the page: Cannot connect to the server or database."
BISM files against other Excel sheets and sources (for example SSAS tabular databases) works well.
Can anyone help us pinpointing whats wrong here, this is a really important stakeholder in our organization requesting this reporting?
Cheers!Hi E.SWARD ,
My self created a Power pivot excel then i want to use this excel to create BI file . Still i am getting the same error . Pls help me to resolve this issue
Cannot connect to the server or database.
I am getting the similar error , if i use Tabular analysis server instance .
Subhash -
Bank row was added in webi rich client when using excel as data provider
reproduding steps:
1.open webi rich client.
2.Create a new webi report,then select "local data source"
3.select an excel file as data source.
4.run query.
For example,there are 5rows in excel,but in webi report there are 6 rows,and the last row is bank which is added by webi.
question
1. mcro has been defined in the excel file,is there any impact by using macro?
2.I want to know why this happens,>could you please test the following solution if you have multiple data providers in the report.
>We need to manually link the dimensions then in the resulting crosstab/table we are need to apply >filters and select only the values but not the #empty values.
I have only one data provider in the report.
And, I have do the following test,
test1:Delete the last row which is blank row of the excel file,refresh webi report, the last blank row is still there.
test2: press ALT+F8,delete marco in the excel file,refresh webi report, the last blank row is still there,then delete the last blank row in the excel file ,save excel file,refresh webi,the last blank row is disappear. -
MS Excel as data source - Cannot create chart views
Hi,
I created a model with sql server and excel as the data sources. Most of the numerical data is coming from excel.
In Answers, I created a table view and it showed me all the data (Eg months, budget amount, plan amount, actuals amount ). But when I tried to create a chart view, it is giving me an error like it requires atleast one measure to create or draw a chart. I am taking Month on x -axis ad all the other columns like budget, plan , actual on y axis.
Not sure y its behaving like this
Did anyone encoured similar issue?
Please help...
Thanks
RadhaEvents can be used in CE to trigger one report after another.
In CMC, define a new event, Schedule type, based on success. Then schedule your first report, setting Events to Trigger Upon Completion to include this new event. Sechedule your second report to run at the same time, except select the new event in the Events to Wait For section. The second report will wait until the first report completes successfully before starting to execute.
Another possible way is to use Object Packages. However, if such a package is run on a report server that allows multiple reports to run simultaneously, I think the multiple reports in the package will run at the same time. (This would have to be verified, as I am not positive.) But if the report server that the object package is scheduled to run under was single threaded, they would probably execute in order.
HTH,
Carl -
Importing from Excel as data source
Hi,
I developed rpd using Excel as a data source,rpd is consistent & i'm able to view the datas correctly in rpd.
But in Presentation Services it was throwing me an error when im combining columns from two different tables.
SELECT TransLog.Device_ATM_POS saw_0, RespCodes.R_C_NAME saw_1 FROM JPMC ORDER BY saw_0, saw_1
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: S1000 code: -3079 message: [Microsoft][ODBC Excel Driver] Type mismatch in expression.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
Also my Date Format while viewing data is (e.x: 28-OCT-08); In presentation services,the error is,
SELECT TransLog.TRL_DATE_LOCAL_TXN saw_0 FROM JPMC ORDER BY saw_0
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 01-OCT-09 does not match the specified format. (HY000)
Please guide me to solve this issue.
Thanks in advance,
PrincyYour first problem comes from the ODBC driver.
The driver see the data in the columns of your join has two different data type. Check here:
http://support.microsoft.com/kb/141284
For the second error, your date string must follow the format in the nqsconfig.ini.
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;
DATE_DISPLAY_FORMAT = "yyyy/mm/dd" ;
TIME_DISPLAY_FORMAT = "hh:mi:ss" ;I assume that with ODBC you get a DATETIME by default.
Then the data (the content and not the excel format) that you must
have in your excel sheet is "yyyy/mm/dd hh:mi:ss".
You can try to change it with a DATE data type in the physical layer of OBIEE and to have a string value of this format "yyyy/mm/dd".
Success
Nico -
How to avoid using dataset as data source
Hi all,
using dataset cause producing report slow. could anyone tell me how to use a stored procedure directly as data source?
Thank you very much
ClaraYou may also want to determine where exactly is the slow part of this happening. Remember that to get a report, there is a number of steps, other than connecting and retrieving data from the datasource.
E.g.;
Load of the runtime, load of the report, processing of the report, formatting of the report, etc.
If you do find that datasets are the issue, than Don's suggestion is excellent.
Ludek -
How do I use a shared data source in my dataset in this new UI?
I'm new to SSRS 2012 and am having trouble with the UI. All of my experience is with SSRS 2005, and this is quite different.
So I created a shared data source in my new project. Next I added a report (non-wizard, I'm going for hand-crafted). Looking at the UI I have a report data window on the left side of VS 2010, and in it are a couple of menus and a tree navigation pane. If I
select the new menu, and then dataset (since I want to add the data to my report first) I get the Dataset property window. After selecting 'Use a dataset embedded in my report' a new panel is displayed where I can set up a new dataset. But from what I see
here all I can do is create a new data source, but I want to use my shared datasource. I would think it would just be in the data source drop down presented, but that is empty (I had an image that illustrated all this but I keep being told I need to 'verify
my account', and after doing so I'm still getting that error... oh well, I don't have enough time to keep verifying my account here).
In 2005 I could choose a shared datasource, and it doesn't seem logical that this functionality would be removed. What am I missing here?
Any help would be much appreciated.First right-click on your reports' Data Sources and add a reference to the Shared Data Source, by selecting "Use Shared Data Source Reference" in the "Add Data Source" dialog.
David
David http://blogs.msdn.com/b/dbrowne/ -
Sharepoint 2013 Excel External Data Source Refresh Issue
I have been facing this issue for quite some time now.. i have created an Excel sheet in Excel-13 and have imported data from an external data source [SQL server 2012].
Everything is working fine, with the excel sheet on the desktop. Data refreshes, every-time i open the excel file and also at regular intervals that i have configured in the data source properties.
The problem begins when i save that excel sheet on my sharepoint server. the issues that i am facing are :
1. Changes made into the original data source, are not reflected immediately inside the excel sheet inside the browser. after 5-10 minutes, it reflects the changes..
2. The data doesn't refreshes automatically. After i update my data inside the sql server table, i have to manually trigger the refresh of the data connection when viewing the excel sheet inside the browser, even though i have marked "Refresh when opening
the file", and refresh every 1 minute inside the excel sheet. Any solutions ??
I have been troubled a lot by this issue, and seek for some quick solution.. Any help here ??I found the solution finally, my self ..
Issue - 1 : It's going to take atleat 5-minutes to refresh the data connection, that is generally not a big time span.
Issue - 2 :
--> Set Your connection to refresh everytime the file is opened. go to internet explorer -> file -> internet options -> general -> Browsing History -> Settings -> Check for newer versions of stored pages... Check 'Every time I visit the
webpage'.
Now everytime i update your original data source, wait for 5-10 minutes and refresh my web page containing the excel sheet.. The Contents of the excel sheet are updated as desired.. -
Report using two different data sources won't work.
I'm trying to build a report that shows information from a production table and an archive table.
Tables are in different databases, which are defined as their own Data Sources in Publisher.
Two data sets containing the same query but using different Data Sources are defined in the Data Model.
When selecting option 'Concatenated SQL Data Source' the report never completes.
If any of the two Data Sets is selected as the Main Data Set, the report shows information related to that source only.
Any hints on how to make this work would be appreciated.
Thanks.
ccastilloMore details on this issue:
The production database has a synonym pointing to the archive database. I build a query using a UNION ALL statement linking both tables.
For the same set of parameters, this query completes in a couple of minutes outside BI Publisher, but never ends (I cancel after an hour) inside Publisher.
Is there any special considerations for the use of synonyms inside Publisher? -
Using DAO using a JDBC data source with struts
Hello,
I have created a number of Data Access Objects and Transfer Objects to use in a non EJB, struts web application I am developing. I had tested these with a kind of a Service Locator custom class to provide access to a JDBC connection. My custom class is a bit clunky and not very configurable. I would like to use a data source using the struts config XML file e.g.
<data-sources>
<!-- configuration for commons BasicDataSource -->
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="description"
value="My MySQL Database Connection" />
<set-property
property="driverClassName"
value="com.mysql.jdbc.Driver" />
<set-property
property="url"
value="jdbc:mysql://localhost/databaseName" />
<set-property
property="username"
value="myUsername" />
<set-property
property="password"
value="xxxxxxxxx" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
</data-source>
</data-sources>This is great, and precisely the kind of thing I would like to use. However, this datasource is only available AFAIK through a HttpServletRequest instance like in the example I found below...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception
javax.sql.DataSource dataSource = null;
java.sql.Connection myConnection = null;
try {
dataSource = getDataSource(request);
myConnection = dataSource.getConnection();
// do what you wish with myConnection
} catch (SQLException sqle) {
getServlet().log("Connection.process", sqle);
} finally {
//enclose this in a finally block to make
//sure the connection is closed
try {
if(myConnection != null)
myConnection.close();
} catch (SQLException e) {
getServlet().log("Connection.close", e);
return (mapping.findForward("success"));
}That would be great if I wanted to use the database connection anywhere near a struts Action (wrong tier!). I want access like that to to a data source in my DAOs. Is it possible for me to use the data-sources aproach to access the DB from my DAOs or will I need to use something like JNDI to do this in a similar way but separate from struts. If so I have a big gap in my knowledge as far as JNDI goes which I need to fill and that will be my next question
I'm relatively new to using patterns inn Java and any help or pointers would be great.
Thanks :)Create a JAAS Authentication Entry in the Server configuration.
This should then appear in the drop-down when specifying your DataSource.
Maybe you are looking for
-
What cable do i need to watch streaming video via my ipod to my t.v.
help
-
HT201210 during restoring my iphone is not restoring at the step of restoring frimfare
While restoring my iphone it stops during frimware restoring and I tried many times its not going over that step
-
Hi Experts When running the program in forground using the WE19 T code it is working fine the idoc status is showing as 53 in the log, But when running from the unix system the status is showing as 64. Thanks & Regards, Shiva vs.
-
I do not have 'mailto' in my applications folder. How do I install it?
I cannot send a link as there is no default mail setting in firefox. I have reloaded the software and checked the applications list but it does not contain the 'mailto' so I cannot adjust. I have set Thunderbird as the deafult mail in windows and thi
-
13" MacBook Pro 2012 Not Recognising USB Devices on OSX 10.9.1
Hello, Since updating to OSX 10.9.1, one of the USB ports of my MacBook is not always recognising devices (external HDDs and Logitech Unifying Receiver), often when the other port is used. It is the port on the right. First I noticed this problem wit