Troubles to retrieve data from a sharepoint List 2013
Im having some troubles when i try to retrieve data from a list in sharepoint 2013.
SPSite osite = new SPSite(@"http://contoso.com");
SPWeb web = osite.OpenWeb();
SPList list = web.Lists["Calendar"];
SPListItemCollection collection = list.Items;
foreach (SPListItem item in collection)
Console.WriteLine(item["Title"]);
And im getting this error: System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
I did a research in MSDN and i could connect to a diferent list in SharePoint 2010 using Visual Studio 2010, but now im using Visual Studio 2012 to connect to SharePoint 2013 and i dont get the same result.
Im using the DLL Microsoft.SharePoint. 15.0.0.0
Thanks!
I am not able to trace what could be causing the issue, as I would probably need to look at the entire code. But I quickly put together few lines of code and they seem to work for me on SP 2013 as well as 2010. I have modified your code on these lines, can
you please try the following and let me know if it works:
SPSite osite = new SPSite("http://contoso.com");
SPWeb web = osite.OpenWeb();
string Url = web.ServerRelativeUrl + "/lists/Calendar";
SPList list = web.GetList(Url);
SPListItemCollection collection = list.GetItems();
foreach (SPListItem item in collection)
Console.WriteLine(item["Title"]);
The following link talks about the SPList.GetItems method, hope this helps.
http://msdn.microsoft.com/en-us/library/ms457534(v=office.15).aspx
Vishal
Similar Messages
-
Retrieve data from nested tables
Hi All,
I have big trouble to retrieve data from nested tables..
From java code developer are passing struct data type to Oracle procedure.. So equal data type in oracle has been created as created as object
CREATE OR REPLACE TYPE TXNDATA AS OBJECT
TRAN_ID NUMBER ,
EVENT_ID NUMBER ,
EVENT_CD VARCHAR2(10 BYTE))and create a procedure which has a IN parameter as TXNDATA
now i need to retrieve the column data's through SELECT clause such as
TYPE Proc_txn IS TABLE OF TXNJOURNALDATA;
EVENT_JOURNAL_SEQ Proc_txn;
select * from table(cast(EVENT_JOURNAL_SEQ));but above SQL will give all column data's but i need to retrieve only 2 column values such as
select EVENT_ID , EVENT_CD from table(cast(EVENT_JOURNAL_SEQ))how can i achieve the above result set?
Thanks & Regards
Sami.use a table alias in your query
SQL> set serveroutput on
SQL> create TYPE TXNDATA AS OBJECT
2 (
3 TRAN_ID NUMBER ,
4 EVENT_ID NUMBER ,
5 EVENT_CD VARCHAR2(10 BYTE));
6 /
Type created.
SQL>
SQL> create type txnjournaldata
2 as table of txndata;
3 /
Type created.
SQL>
SQL> declare
2 txn txnjournaldata := txnjournaldata (
3 txndata(10, 20, 'One')
4 ,txndata(10, 20, 'Two')
5 );
6 begin
7 for rec in (select tx.event_id
8 , tx.event_cd
9 from table (txn) tx
10 )
11 loop
12 dbms_output.put_line (rec.event_id||' - '||rec.event_cd);
13 end loop;
14 end;
15 /
20 - One
20 - Two
PL/SQL procedure successfully completed.Edited by: Alex Nuijten on Oct 24, 2011 12:24 PM -
Retrieve data from a list in SharePoint 2013 provider hosted App using CSOM
I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to get
data from a list hosted in SharePoint using CSOM. But I get ran insecure content error.
here is my code in Default.aspx
<script type="text/javascript" src="../Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript" src="../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../Scripts/SP.Core.js"></script>
<script type="text/javascript" src="../Scripts/INIT.JS"></script>
<script type="text/javascript" src="../Scripts/SP.Runtime.js"></script>
<script type="text/javascript" src="../Scripts/SP.js"></script>
<script type="text/javascript" src="../Scripts/SP.RequestExecutor.js"></script>
<script type="text/javascript" src="../Scripts/App.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Get title via CSOM" onclick="execCSOMTitleRequest()" /> <br />
<input id="Button2" type="button" value="Get Lists via CSOM" onclick="execCSOMListRequest()" />
</div>
<p ID="lblResultTitle"></p><br />
<p ID="lblResultLists"></p>
</form>
</body>
</html>
and App.js is:
var hostwebUrl;
var appwebUrl;
// Load the required SharePoint libraries
$(document).ready(function () {
//Get the URI decoded URLs.
hostwebUrl =
decodeURIComponent(
getQueryStringParameter("SPHostUrl")
appwebUrl =
decodeURIComponent(
getQueryStringParameter("SPAppWebUrl")
// resources are in URLs in the form:
// web_url/_layouts/15/resource
var scriptbase = hostwebUrl + "/_layouts/15/";
// Load the js files and continue to the successHandler
//$.getScript(scriptbase + "/MicrosoftAjax.js",
// function () {
// $.getScript(scriptbase + "SP.Core.js",
// function () {
// $.getScript(scriptbase + "INIT.JS",
// function () {
// $.getScript(scriptbase + "SP.Runtime.js",
// function () {
// $.getScript(scriptbase + "SP.js",
// function () { $.getScript(scriptbase + "SP.RequestExecutor.js", execCrossDomainRequest); }
function execCrossDomainRequest() {
alert("scripts loaded");
function getQueryStringParameter(paramToRetrieve) {
var params = document.URL.split("?")[1].split("&");
var strParams = "";
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == paramToRetrieve)
return singleParam[1];
function execCSOMTitleRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
//Load Web.
context.load(this.web);
context.executeQueryAsync(
Function.createDelegate(this, successTitleHandlerCSOM),
Function.createDelegate(this, errorTitleHandlerCSOM)
//success Title
function successTitleHandlerCSOM(data) {
$('#lblResultTitle').html("<b>Via CSOM the title is:</b> " + this.web.get_title());
//Error Title
function errorTitleHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM call: " + errorMessage);
function execCSOMListRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
// Get the Web lists.
collList = this.web.get_lists();
//Load Lists.
context.load(collList);
context.executeQueryAsync(
Function.createDelegate(this, successListHandlerCSOM),
Function.createDelegate(this, errorListHandlerCSOM)
//Success Lists
function successListHandlerCSOM() {
var listEnumerator = collList.getEnumerator();
$('#lblResultLists').html("<b>Via CSOM the lists are:</b><br/>");
while (listEnumerator.moveNext()) {
var oList = listEnumerator.get_current();
$('#lblResultLists').append(oList.get_title() + " (" + oList.get_itemCount() + ")<br/>");
//Error Lists
function errorListHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM Call: " + errorMessage);
Any solution is appreciated.Hi,
To retrieve data from list in your provider-hosted app using SharePoint Client Object Model(CSOM), you can follow the links below for a quick start:
http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx
http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
Best regards
Patrick Liang
TechNet Community Support -
How to retrieve data from inside the folders in SharePoint SSRS
Hi ,
How to get the data from inside the folders and subfolders.
How can I do that.
https://social.msdn.microsoft.com/Forums/en-US/15451351-4ee2-428c-a0b7-135810e4cbfa/action?threadDisplayName=ssrs-reports-sharepoint-list-datasource-how-to-retrieve-items-from-subfolders
Here the information is not given.
Regards
VinodHi Vinodaggarwal87,
According to your description, you want to retrieve data from sharepoint list in a sub folder. Right?
In this scenario, we should select the XML data source type and in the connection string provide the
List.asmx service URL when creating data source. Then we need to use the List web Service and specify "recursive" for ViewAttribute in Lists.asmx. For detail steps, please refer to the links below:
Generate SSRS report on SharePoint List with folders using List Service.
SSRS: how to specify ViewAttributes when creating a report against a SharePoint's list
If you want to set the ViewAttribute on CAML query level. You need add the view tag outside of query tag:
<View Scope="RecursiveAll">
<Query>
<Where>...</Where>
</Query>
</View>
Reference:
View Element (List)
ViewAttributes Recursive Scope not working SharePoint 2013 CAML Query to fetch all files from document library recursively
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Oracle form: how to retrieve data from database to pop list
I have problem in retrieving data from database to item list in
oracle forms.
Can anyone help me.
thanks.The next is an example but you can find this information in
Forms Help:
DECLARE
G_DESCS RECORDGROUP;
ERRCODE NUMBER;
rg_id RECORDGROUP;
rg_name VARCHAR2(40) := 'Descripciones';
BEGIN
rg_id := FIND_GROUP(rg_name);
IF Id_Null(rg_id) THEN
G_DESCS := Create_Group_From_Query (rg_name, 'SELECT
DESCRIPCION DESCRIPCION, DESCRIPCION DESC2 FROM FORMAS_PAGO);
ERRCODE := POPULATE_GROUP(G_DESCS);
POPULATE_LIST('FORMAS_PAGO.CMBDESCRIPCION',G_DESCS);
END IF;
END;
Saludos.
Mauricio. -
SP 2013 Designer Workflow problems retrieving data from Web Service
Hi all,
I am creating a SharePoint 2013 Designer Workflow, and I am having trouble retrieving data from a web service. The web service URL is
http://services.odata.org/V2/Northwind/Northwind.svc/Customers and the problem I am having is with the SharePoint Designer Workflow “Call HTTP Web Service” action URL. The URL I am
having problems with is shown below:
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax
or
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax&$format=json
The SharePoint 2013 Designer workflow works OK if I try to retrieve two items like "CompanyName" and "ContactName", but when I try to retrieve three or more items the workflow doesn’t work it just pauses
with no error message. The URL that works OK is shown below:
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CompanyName,ContactName
or
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CompanyName,ContactName&$format=json
Does anyone know why I cannot retrieve more than two items from a web server? Am I making a mistake with the URL?
I hope you can
ColinHi Amit,
According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
For troubleshooting this issue, please provide the more detailed code.
Here are some similar posts, please check if they are useful:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
How to submit InfoPath form data to multiple SharePoint lists at one time?
Hi,
I'm looking for a way to submit certain data in InfoPath form to separate SharePoint lists at the same time. I have a form that has two views with many data in them. I want to keep these data in separate SharePoint list besides keeping them in the XML. I know that you can submit to a form library using SharePoint document library data connection, but I'm not sure if you can use several data connections for submitting data to multiple SharePoint lists. Is it only possible to do using code? If yes, can anyone show a sample. I have never coded in InfoPath, though I used C# a lot in .Net.
Thank you!Regards,
R.D.M.This is an old thread but I tripped over a codeless method to do this with OOB InfoPath 2010 and SP 2010.
Assuming your main InfoPath form is published to a document library with the promoted fields that you want to see.
Publish your form to a new document library to capture the secondary data fields that you want separated out.
Using the Publishing Wizard do the following:
Go to – File then Publish
Select SharePoint Server “ Publish form to a SharePoint Library”
Enter location of your SharePoint or InfoPath Forms Services Site:
accept the default in this field from the first published event
Next screen, keep the default or change it, Form Library, Site Content Type or Admin Approved
Next screen, What do you want to do?
Create a new form library
Add new document library name and description
Next screen, Remove all promoted fields not applicable to the new library and add all of the ones you want to see data for.
Click Next and Publish
Come back into the form: If you don’t have buttons added directly to the form to submit or update, add them.
Create a new Action rule on the button
Label the rule to keep it straight
Condition, occurs when button clicked
Add action, Submit data
Use data connection to the second library created
Create a second new Action rule on the same button
Label the rule to keep it straight
Condition, occurs when button clicked
Add action, Submit data
Use original data connection to the library
Then you can add another action to close the form or do whatever you need.
Republish the form to both libraries to set the template for both.
File – Publish – SharePoint Server
Select Secondary library from drop down follow the rest of the prompts
Follow step 5a again, select Primary library from drop down, Add back in all of the promoted fields needed for the primary library and follow the prompts.
DOCUMENT YOUR FORM WELL FOR MAINTENANCE
Special considerations, your primary library needs a unique ID to reference in your secondary library.
Your secondary library will need a unique ID that is not related to the primary if you are going to store multiple records for a single primary library reference.
Example: One form, multiple updates. -
Retrieve data from a non-peoplesoft application using HTTP Get
I need to retrieve data from a non-peoplesoft application. They want us to submit a HTTP GET request to their URL with a series of parameters. I am thinking about using HTTP Targert connector to accomplish this. Does anyone have sample peoplecode?
Currently we are on 8.51.10 Tools...
If there is any better way .. please let me know ..I have used HTTP Get to get XML file from a government sanction list by hitting URL http://www.treasury.gov/ofac/downloads/sdn.xml
There is a delivered PS program that does that for vendor sanctions. I had to get the online setup correctly by creating a new custom Node with HTTP Target Connector. The program name is BSP_IMPORT. The below code is responsible for the calling the node and retrieving the data. Play around with the code below see if you can get it to meet your needs.
BSP_IMPORT_AET.BANKNODE.Value is just the custom external code that I created.
PMT_FLAT_FILE_INBOUND message is just a none rowset based message to use the web service call.
Local TR:FileUtilities:FTP &oFTPUtil = create TR:FileUtilities:FTP();
+/* HTTP */+
+/*******************************************************************************/+
Local Message &msgHTTP;
Local Message &msgResult;
+&msgHTTP = CreateMessage(Message.PMT_FLAT_FILE_INBOUND);+
+&oFTPUtil.PopulateFTPGetIBInfo(&msgHTTP, BSP_IMPORT_AET.BANKNODE.Value);+
+&msgResult = %IntBroker.ConnectorRequest(&msgHTTP);+
+/* check to see if the file is wrapped */+
+&strAllLines = &msgResult.GenXMLString();+
+&strAllLines = Substitute(&strAllLines, Char(26), " "); /* Added this line to remove invalid characters */+
+/*******************************************************************************/+
Edited by: Maher on Mar 20, 2012 3:28 PM -
How to retrieve data from a read-only Excel file
Hi Developers,
I'm trying to retrieve data from a read-only Excel file. I used the same code that I used to retrieve data from a normal Excel file, but it can't work.
My code is as followed:
try
InputStream KpExcel = new FileInputStream("kp.xls");
HSSFWorkbook Kpwb = new HSSFWorkbook(KpExcel);
HSSFSheet Kpsheet = Kpwb.getSheetAt(0);
catch(Exception e)
e.printStackTrace();
System.out.println("Exception: "+e.getMessage());
The error I received is as followed:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
at photoproductionsystem.IncomingWIPPanel.getKp(IncomingWIPPanel.java:118)
at photoproductionsystem.IncomingWIPPanel.<init>(IncomingWIPPanel.java:76)
at photoproductionsystem.TabbedDisplay.<init>(TabbedDisplay.java:47)
at photoproductionsystem.Display.create(Display.java:73)
at photoproductionsystem.Display.init(Display.java:44)
at photoproductionsystem.Display.main(Display.java:229)
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
... 15 more
Can someone please help me with my problem? Thanks a lot in advance!Madeline wrote:
how do I ask at Apache mailing list?I wonder why it seems to be a strange idea to some people to look at the software vendor's site for product support. :p
http://poi.apache.org/mailinglists.html -
I have set-up an ECT in SPD2013 on SP2013. It is a SQL Data source called ProjectWebApp. I have BCS/SSS set-up. I can create an ECT OK in SPD. I can add the ECT to a custom list.
The problem is when I add a new item in the list the following error message appears in red
An error occurred while retrieving data from ProjectWebApp. Administrators, see the server log for more information
I cannot filter or return any results. There is data in the DB.
Another test I do is to try and create a new App/List using the "External List" template. When
I select the ECT a red message appears "External Content Types are not available". which is odd since I can add an ECT to a list as mentioned above.
Any ideas?
Tx
Andrew
Andrew PayzeHi Andrew,
Please try the option Allow unlimited length in document libraries in the column settings:
http://littletalk.wordpress.com/2011/08/18/external-content-type-an-error-occurred-while-retrieving-data-from-a-system-administrators-see-the-server-log-for-more-information/
If it doesn't help, please refer to the link below and raise the External content type Read List operation thresholds:
http://lightningtools.com/bcs/business-connectivity-services-end-user-implications-part-one-threshold-limit-errors/
Please provide error message in ULS log for further troubleshooting.
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Retrieving data from OBIEE server using ODBC
Hello.
I am having difficulty retrieving data from OBIEE 11g using the ODBC connection. My intention is to read OBIEE Server data via a SQL statement issued from an Oracle database using gateways.
I have read and followed the material here:
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/odbc_data_source.htm#CACBFCJA
I have also tried this from Excel 2007, but have not succeeded:
http://gerardnico.com/wiki/dat/obiee/import_data_from_obiee_to_excel
I have setup a gateway in Oracle and a database link. Iknow it is connecting because when I change the password to something invalid, I get a message about not being able to connect due to username/password.
I have taken a query from Answers (the advanced tab) and tried running it from Sql Developer. The nsqserver.log file ends up with the following Notification:
[nQSError: 13013] Init block, 'DUAL Num (=3)', has more variables than the query select list.
As an experiment, I am using the SampleApp, and have generated the following query in Answers:
SELECT s_0, s_1, s_2, s_3 FROM (
SELECT
0 s_0,
"A - Sample Sales"."Products"."P3 LOB" s_1,
DESCRIPTOR_IDOF("A - Sample Sales"."Products"."P3 LOB") s_2,
"A - Sample Sales"."Base Facts"."1- Revenue" s_3
FROM "A - Sample Sales"
) djm ORDER BY 1, 2 ASC NULLS LAST
Is there a way to issue this query from a database client like SQL Developer? I have setup a database link called obiee via gateways to the ODBC connection, and add @obiee after the table name in the above query, but get the nqs error above.
Thanks for any help. I can provide addl info if such would be useful.
AriThat would explain my difficulty. I went to the link:
http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/biee.htm#CHDIFHEE
that describes the deprecated client. I am confused by the statement there:
"one of the many widely available third-party ODBC/JDBC tools to satisfy previous NQClient functionality"
My understanding of ODBC is not very strong, so please bear with me. The statement above is talking about a client tool, but there also needs to be an ODBC driver available for BI Server. I may be a bit confused between driver and client, and what piece nq handles. I don't understand the comment about third-party ODBC when it comes to the driver piece, as that must be coded for BI Server. When I go to create a new DSN, the only driver that makes sense for me to select is:
Oracle BI Server 11g_OH<id>
That all works fine to setup a DSN. But I am unable to connect from Excel, etc., using this DSN.
Put more simply, should I be able to connect to BI Server via ODBC - not using the deprecated BI ODBC client, but using other clients? Is there ODBC connectivity at all in OBIEE 11g?
Thanks,
Ari -
Crystal Reports - Failed to retrieve data from the database
Hi There,
I'm hoping that somebody can help me.
I've developed a crystal report from a stored procedure which I wrote. I can execute the stored procedure within SQL Server and within the Crystal Reports designer without any errors. Furthermore, I have imported the report into sap and can run it within SAP from the server without any errors. SAP version 8.81 PL5
The issue is that when it's run from a client machine, I get the following error: "Failed to retrieve data from the database. Details: Database Vendor Code: 156. Error in the File RCR10010 {tempfile location}
Here's a list of things which I have tried, all to no avail:
- Checked user permissions to ensure that they have proper authorizations
- Re-set the datasource connection and re-imported the report to SAP.
- Exported the report and reviewed the datasource connection and re-imported to SAP.
- Tried to run the report on multiple machines to ensure that it's not machine specific
- Tried to run the report using different users to ensure it's not user specific.
- Tested other reports built from stored procedures on client machines to ensure that they work.
Any assistance in this would be GREATLY appreciated.
Thank youAfter further testing, we found that the report could be run within SAP on any work station which had the CR designer installed on it.
As it turns out, the procedure which I wrote has temp tables in it. The runtimes built into the SAP client install do not support creating temp tables when executing the report from within SAP. Which is why the report could not retreive data.
To work around this, I installed external runtimes which were the same version of the Crystal Report and now the report can be run within SAP from any workstation which has the external runtimes (and not just the runtimes within the SAP client).
I hope this makes sense. -
Dynamic parameter - Failed to retrieve data from the database
I'm running a report with dynamic parameters and this report ran successfully for 2 days . For no apparent reason they stopped and the error message was received. There was no interference from head office soI'm at a loss to explain why the viewer / reports suddenly stopped working.
Now I get the following message:
Prompting failed with the following error message:
'List of values failure: fail to get values. Cause of error: Failed to retrieve data from the database. Error in file UNKNOWN.RPT: Failed to retrieve data from the database.'
Error source: prompt.dll Error code: 0x8004380D
The report is running on a Oracle database using CR-Viewer XI Product version 12.01.1.r228_v20071114
I know there is a problem with dynamic parameters and citrix, but this is not run on citrix.
Please help anypne
Edited by: tstegen on Sep 30, 2009 2:48 PMIs this report based or Enterprise based LOV?
If you have report published to BOEnterprise, then it automatically creates a chain of objects for any dynamic parameter:
Data Connection,
Data Foundation,
Business View,
Business Element
and LOV.
Each of this objects have configurations like users rights, permissions and some have logon configuration. Failing any of those elements may cause LOV to fail.
One of the tests you may try is to test relevant Business View by connecting Crystal reports to it.
Are you familiar with Business View Manager? -
Failed to retrieve data from the database when adding jdbc datasource
I'm having problems adding some tables to the selected tables list using the database expert.
I get the error messages "Failed to retrieve data from the database" followed by "Unknown Database Connection Error".
I thought it may be a permissions issue as it only affects some tables, but I can access the same tables fine using the same user through Oracle SQL Developer.
The database is Oracle 10g Express Editions
Crystal version is 12.0.0.683
Running on Windows XP
Any suggestions would be much appreciated.Hi Stuart
Please refer SAP note 1218714 for this issue. The link to this article ia as follows:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333733313334%7D.do
You can search for this note on the SDN site.
Hope this helps.
Thanks! -
Failure to retrieve data from the database (Vendor Code 6550)
I am having a trouble with two of the 6 reports that I have created. I am using Crystal XI and Oracle 10g. The underlying database object is a stored procedure that accepts as input a start time as a TIMESTAMP, an end time as a TIMESTAMP and a furnace number as a number. I have a cursor ref as a return parameter.
When I run the stored procedure in Oracle I get the selected records and can view them on the screen.
When I refresh data on the report in Crystal XI developer, the designer asks me for the start and end time and furnace number. When I input these values the report displays properly.
When I launch the report from my VB .NET 2005 application I am asked for the username and the password for the database (this is another problem I need to solve as this information I put into the program seems to be ignored in my program) then I receive the following failure message:
Failure to retrieve data from the database (Vendor Code 6550)
When I launch the other reports, they only ask me for the username and password then they display the proper data.
The main difference between my other reports and the two that are returning the above failure code is that the other reports are to either tables or views. The two that don't work are tied to stored procedures. I there any way that I can solve this problem or at least get more information?
Any help would be greatly appreciated. Let me know if you need any other information.I have a similar problem, the only difference is that the crystal report error is only thrown when I try to load the sub reports at my web application. When I deploy my report to the Web application the main report loads up fine but when I try to launch the sub reports from the main report it can no longer load.
But when I use the Crystal report developer I am able to load the main report and it's associated sub reports without any issues.
My issue only occurs when I try to load the sub report in the web application. The following sections shows how my reports look like both in my .NET web application and also at the Crystal Report Development IDE.
Failure: Loading my Reports from .NET Web Application
1) When I load from the web application I am able to load the main report as per the print screen below.
2) When I try to click on the hyper links to enter the sub reports I am now able to load them, both sub reports cannot load and will throw the same error "
Failed to retrieve data from the database. Details: [Database Vendor Code:
6550 ] Failed to retrieve data from the database. Details: [Database Vendor
Code: 6550 ] Failed to retrieve data from the database. Error in File OAWR3011A
{CEC8A94A-4490-4640-95FB-2739A679978B}.rpt: Failed to retrieve data from the
database. Details: [Database Vendor Code: 6550 ] "
Success: Loading my Reports from Crystal Report Development Tool
1) This is my Main Report Loaded from the Crystal Report Development Tool, the first two hyperlinked fields are links to my sub reports, step number 2 and number 3 shows my sub reports when I load it using Crystal Report Developer
2) Sub Report 1 Loaded Successfully, when I click on the fields in the first link
3) Sub Report 2 loaded successfully when I click the second field hyper link
Maybe you are looking for
-
Need help with network user accounts on Mac server App on Yosemite, any tips?
I've been trying to set up a small network with the Server app on Yosemite. I don't want to do anything crazy with the server, I'd just like to know how I can set up network user accounts so that they can login from other Mac computers on the same ne
-
Can we have Slider at dashboard level? - OBIEE 11g
Hi All, We are working on OBIEE 11g (11.1.1.3.0), we have one requirement where we want to have dashboard level slider i.e. slider controlling all the graphs on dashboards. Currently we have around 9 charts in dashboard and all of them have their ind
-
Capital one Cli after 3 month mark
My 3rd statements just posted for my 3 capital one cards, discharged june 2015. Got an instant increase on my capital one platinum for $500, 2-3 day message on my quick silver one rewards.
-
Exchange DB Architecture and Management
Hello, everyone! Anybody knows how to manage an Exchange DBs at begining stage to provide maximum size of DB at 400 GB in future? It is need to easy manage an DB for example to decrease time DB to be prepared for taking an snapshot of VM's virtual di
-
Question related to project performance reporting
Hi, We have implemented peoject management and project accounting module with Grants module for one of the semi public sector client. Now we are planning to enable project performance repporting. I assume below things 1. If Grant is implemented, Proj