ERROR : Cannot get data set while connecting to BI.

Hi,
I am trying to connect to BI trouggh my application. I am following one of the document which i got from SDN. But now i am getting ERROR : Cannot get data set  while connecting to BI.  Can any one tell me why i am getting this error.
when i tried to excecute first time it gave the same error for the bellow given Querry. But after that it got excecuted. Then again It gave the same error. But it got excecuted twise like that after that it dint get excecuted once also.
Querry:  SELECT
[Measures].MEMBERS ON AXIS(0) ,
NON EMPTY [0VENDOR].MEMBERS ON AXIS(1)
FROM [0PUR_C01/0PUR_C01_DB_Q04];
Regards,
H.V.Swathi
Edited by: H.V Swathi on Jun 1, 2009 1:33 PM

HI,
Thanks for ur reply.
NO
i am using this part of code to display the result in IFrame.
IConnectionFactory connectionFactory = null;
     IBIConnection connection = null;
     IBIDataSet dataset = null;
//        get the MDX statement entered by the User
     String mdxStatement = wdContext.currentContextElement().getMDXQ();
     wdComponentAPI.getMessageManager().reportSuccess("mdxStatement  "+mdxStatement.toString());
//        Declare a stringbuffer to store the HTML Code
     StringBuffer l_strXmlFile = new StringBuffer();
     wdComponentAPI.getMessageManager().reportSuccess("l_strXmlFile  "+l_strXmlFile.toString());
     try {
//        Connect to BW System
     Context initctx = new InitialContext();
//        Perform JNDI lookup to obtain connection factory
        wdComponentAPI.getMessageManager().reportSuccess("l_strXmlFile eeeeee ");
     connectionFactory =
     (IConnectionFactory) initctx.lookup(
     "deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");
//        Establish connection using default connection properties
        wdComponentAPI.getMessageManager().reportSuccess("connectionFactory  "+connectionFactory);
     connection =
     (IBIConnection) connectionFactory.getConnectionEx(null);
     wdComponentAPI.getMessageManager().reportSuccess("connection  "+connection);
     IBIOlap olap = ((IBIConnection) connection).getOlap();
     wdComponentAPI.getMessageManager().reportSuccess("olap  "+olap);
//     Execute the MDX statement and retrieve the data set
//     using the execute method of the IBIOlap interface.
dataset = olap.execute(mdxStatement);
wdComponentAPI.getMessageManager().reportSuccess("dataset  "+dataset);
} catch (Exception e) {
e.printStackTrace();
wdComponentAPI.getMessageManager().reportException(
e.getLocalizedMessage(),
true);
} finally {
try {
connection.close();
} catch (Exception e1) {
//     TODO Auto-generated catch block
e1.printStackTrace();
if (dataset == null) {
wdContext.currentContextElement().setResult_Visibility(
WDVisibility.NONE);
} else {
wdContext.currentContextElement().setResult_Visibility(
WDVisibility.VISIBLE);
//     Render the data set.
l_strXmlFile
.append("<html>")
.append("<head></head>")
.append("<body>");
//     Display the MDX that has been executed.
l_strXmlFile
.append("<p><b>MDX Statement that was executed:</b><br> ")
.append("<span class=\"code\">")
.append(mdxStatement)
.append("</span> </p>");
try {
BIDataSetTableModel table =
new BIDataSetTableModel(dataset, false);
l_strXmlFile.append("<p>Result set:</p>");
l_strXmlFile.append(
"<table width=700 border=1 cellpadding=0 cellspacing=0>");
int row = table.getRowCount();
int col = table.getColumnCount();
for (int i = 0; i < row; i++) {
l_strXmlFile.append("<tr>");
for (int j = 0; j < col; j++) {
BITableItem item = (BITableItem) table.getValueAt(i, j);
l_strXmlFile.append("<td class=\"headCenter\">"); l_strXmlFile.append(Helpers.escape(item.toString()));
l_strXmlFile.append("</td>");
l_strXmlFile.append("</tr>");
l_strXmlFile.append("</table>");
l_strXmlFile.append("</body></html>"); } catch (BISQLException e2) {
//     TODO Auto-generated catch block
e2.printStackTrace();
//     read the stringbuffer into bytes
byte[] l_byteData = null;
try {
l_byteData = l_strXmlFile.toString().getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
wdComponentAPI.getMessageManager().reportException(
e.getLocalizedMessage(),
false);
//     Create a web resource and set the value of the
//     context variable "IFrameData" to it's URL
IWDCachedWebResource l_File =
WDWebResource.getWebResource(
l_byteData,
WDWebResourceType.HTML);
try {
wdContext.currentContextElement().setIFrameData(
l_File.getURL());
} catch (WDURLException e1) {
wdComponentAPI.getMessageManager().reportException(
e1.getLocalizedMessage(),
false);
Reagards,
H.V.Swathi

Similar Messages

  • HT2480 Ipad mini - exchange email stopped working randomly  Error: "Cannot get mail. The connection to the server failed."

    I got an iPad mini over Christmas and have had no issues setting up/managing my email until yesterday. I've had my Exchange email working for almost a month, and yesterday I stopped getting emails and getting the error: "Cannot Get Mail. The connection to the server failed."
    I tried resetting the device (multiple times) and deleting and recreating the Exchange account (multiple times). This is getting annoying because it worked fine up until yesterday. I'm not aware of any updates to the device, or any changes that have occurred since yesterday.

    Due to a screen issue, I had my iPhone 5 replaced two days ago. I repeated deleted the mail account and kept adding it but this did not make any difference. When I attempted to setup the new phone with my Google (Gmail via exchange active sync) accounts I was receiving this same "Cannot Get Mail" error. From what I was able to gather, this problem should be affecting Gmail accounts set up via Exchange. When originally purchasing the phone I was assisted and directed to set up my Gmail account through Exchange because it had the ability to use "ActiveSync" and push not only mail and calendars, but all of my contacts as well. I found this article regarding the subject.
    http://www.pcmag.com/article2/0,2817,2413283,00.asp
    What it came down to was having to delete my Gmail via Exchange account and separate it into two different accounts, a regular gmail account for my mail and a CardDAV account for my contacts.
    Here is what I did. Google is changing their system and for new registrars Exchange ActiveSync will not work so you will be unable to register your account via Exchange and have your mail, calenders, and contacts all pushed together. I find this change really annoying. If you are having problems accessing your contacts after deleting the mail account, like I was, here is the work around.
    To circumvent this issue go to Setting > Mail, Contacts, Calendars > Add Account > Other > Add CardDAV Account: Under server ender google.com, then your email user name and password, then click next to verify the information.
    I hope this helps.

  • Sup101 cannot get data eventhough the connection shows open when debugging.

    Hi,
    I am using SUP 2.0,
    Created project sup101, generated code for windows mobile,
    opened it in visual studio 2008, deployed it,
    I get the screen I created and when I try to get the data zero rows are returned. The connection does show as open.
    I have tried to look up the ub file and yes that gets created as well, but the recordset comes up with zero rows even though there is a record with that ID 2001?
    Can you please help?
    Thanks,
    PArag.

    Check the logs in sybase control center to get an idea about the exact error.

  • Ihave an iphone 5.  Everytime i click on my hotmail icon is says...cannot get mail.  The connection to the server failed.  i hit ok and then it downloads my messages.  Also at the bottom the updated date is saying that it is june 4 not june 9th

    I have an iphone 5.  Everytime i click on my hotmail icon is says...cannot get mail.  The connection to the server failed.   I have to hit ok a couple of times and then it downloads my messages.  Also at the bottom the updated date is saying that it is june 4 not june 9th

    i would suggest deleting and readding the mail account in settings > mail contacts calendars

  • HT201320 Hi, I'm trying to set up my email account on my new ipad but getting an error Cannot get mail. Think I've put everything in correctly but obviously need some help

    Trying to set up email and getting error Cannot get MailUsername or password incorrect. I think everything's correct. Anyone got any other settings I should check?

    Managed to sort it thanks. I had 2 issues. - q
    1 was just case sensitive password
    2 had to set server type to POP
    Now working fine, thanks

  • HT6147 After the upgrade to 7.0.6, all my mail boxes get errors saying Cannot Get Mail. The connection to the server failed.

    Please help.

    I'm encountering the very same issue. I updated to 7.0.6 and now I continuously get the 'Cannot get mail. The connection to the server failed'.
    I'm on an iPhone 5 and my email account is Outlook.com set up through the Exchange option.
    I have attempted PhilipRoy's suggestion, but unfortunately it hasn't solved my issue. Please note that this happens both on WiFi and 3G.
    It's driving me nuts.

  • I have been receiving the message ' Cannot get mail. The connection to the server failed' but I am connected to WIFI

    I have been receiving the message ' Cannot get mail. The connection to the server failed' but I am connected to WIFI.  I have also been receiving  'Cannot send mail, an error occurred while delivering this message.

        Hmm, that's odd JeanEB. The error message referts to the connection to your email server not to cellular data or connection to wi-fi. Go to Settings>Mail, Contacts, Calendars> Select your account and type in your password again. If this doesn't resolve it, delete/re-add the email account.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Error when getting data (RSDRI_CUBE_READ) - RSCRM_BAPI

    Hello Gurus,
                I am getting a error when I try to create a extract using RSCRM_BAPI using Process Chain.
                I created a job and used that in the Process Chain, Once I run the Process Chain it is executing and
               the job is deleted and the extract gives me this error in the Monitor.
                Error Message - Error when getting data (RSDRI_CUBE_READ)
                If I run manually I am able to see the extracted records.
                Please help.
    Regards,
    Raj

    Hi,
    "Unknown error when executing MDX" is msg number BRAINOLAPAPI012.
    Check out these 3 SAP notes:
    1091523 MDX: System error in connection with named sets
    1252372 OLE DB for OLAP: Additional corrctions for new MDX parser  
    1282785 MDX: System error "Invalid MDX command with <internal>     
    Also test in transaction MDXTEST to see if your statements are syntactically correct.
    Rgds,
    Colum

  • Yahoo Cannot Get Mail. The connection to the server failed

    iPhone 4s with latest version of iOS.
    A few days ago my Yahoo Mail stopped connecting, and I started seeing the above noted error message (Cannot Get Mail. The connection to the server failed.)  While it won't retrieve messages, it will let me send.  So at least SMTP seems to be working OK.
    I've tried deleting it and adding it back, but to no avail.  I've rebooted the phone.  I've and any combination of options found on these boards.  Yet, the problem persists.  Anyone experience something like this before?  If so, any fix for it?

    I contacted Yahoo.  Gave them all the information.  They acknowledged that they are having an issue and that they are working to resolve it.
    One temporary measure that does work with the Mail App.  Add the Yahoo account manually. In other words, click on Other (at the bottom of the list) instead of Yahoo when adding your account, and use these settings.
    https://help.yahoo.com/kb/SLN4075.html?impressions=true

  • Network Error []: Cannot Get Host Name when running business rules

    Guru's
    We are getting the following error intermittently when we are running business rules (Planning Application >>Tools>>Business Rules) or running SmartView refreshes:
    Network error []: Cannot Get Host Name
    The following is then logged in the Essbase Application logs:
    Local/Application/Database/admin@Native Directory/Error(1042022)
    Network error []: Cannot Get Host Name.
    A quick look at the Essbase Error Messages Doc says it is a network error and we have to consult the network documentation. Unfortunately this is not very descriptive so we logged an SR with Oracle but we don't seem to be getting a resolution.
    The environment is 11.1.2.0 and the architecture is as follows:
    Server 1 - MS Server 2008 x64:
    Planning, Calc Manager, Foundation Services, Framework Web Services, EAS, APS, Web Analysis, FR Web Services
    Server 2 - MS Server 2008 x64:
    Essbase Server
    Server 3 - MS Server 2008 x64:
    Framework Services, FR Print Services
    We have tried doing the following:
    1. Put in the server host names into the hosts file on the Hyperion Servers
    2.  Applied the following TCP/IP settings on all the Hyperion Servers and one of the user machines as a test:
          - Added a new DWORD Value named TcpTimedWaitDelay and set it to 30.
         - Added a new DWORD Value named MaxUserPort and set it to 65534.
         - Added a new DWORD Value named MaxFreeTcbs and set it to 6250
    3. Confirmed that there are no packet drops by monitoring the server NICs so no packet loss could be the cause of this issue
    4. The Essbase Config file has the following settings:
    NETDELAY 2000
    NETRETRYCOUNT 2500
    Has anyone come across this issue and if you managed to resolve it, how did you go about it.
    Thanx

    Hi Rahul
    The issue is happening to a number of calcs so it it not one calc specifically. I will ask the functional consultants to enhance the logging in the business rules so that we can see if the issue happens on a specific member\block etc and yes we do use Xrefs
    We can run this as a calc in EAS without any issues and it's intermittent because this business rule runs 95% of the time in Planning Application >> Tools >>Business Rules without any issues.
    Thanks

  • Iphone 5. cannot get mail. no internet connection available.

    I have the iphone 5. My carrier is Sprint. I can get email only when connected to wi-fi. When no wi-fi is available I get a pop up message that says: cannot get mail. no internet connection available.
    I am sure I am just missing a setting or something to correct this. Any ideas?
    Thank you!

    I experienced this problem firsthand with a Sprint iPhone 5 about a month ago, telling me it had no internet connection and could not check my email (which was Gmail, set up through the native Mail app, using default settings). I can confirm that restarting the phone (holding home + power buttons until restart) temporarily fixed the problem but it quickly returned. Toggling Airplane mode did nothing. The problem did return within the same day after a period of time. I have since switched back to AT&T.
    Interstingly, my sister had the same issue with her brand new Sprint iPhone 5 this week. She called Sprint and the customer service representative confirmed that this is a problem that only affects Sprint iPhone 5 users who use Gmail. The rep told her that it affects Gmail both in the native Mail app and also in the Gmail app, but web use still works (I haven't confirmed this). The rep also said that Sprint is aware of the problem and working on a fix that would be delivered in the form of a "software update" but there was no clarification if that was an iOS update or a Sprint carrier update.
    That's all the info I have now, but if you're a Sprint iPhone user and experiencing this problem, please do call Sprint and let us know what you find out.

  • N96 Error Cannot get enough information about the ...

    I am getting error
    "Error Cannot get enough information about the phone[3]
    "Unspecified error [1]"
    i downloaded the http://static.s2g.gate5.de/nokiamaps-client/nokia_ maps_3.01_09wk44_b01_s60_3.1_lm_rom.sis , but i am getting no signal and i cant sync my favorites...
    anyone?

    problem solve..check this link!!!
    /t5/Maps-Navigation-and-GPS/E75-Maps-Updater-Error-Cannot-get-enough-information-about/m-p/673980

  • Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help

    Have you tried deleting the account and re-adding it on the phone?
    What version of Exchange server are you running?

  • I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls?

    I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls? I did try to delete the account and add back. Also tried to reset/ reboot the iPad but still effortless.

    Hi all, I finally solved the issue. Here I wish to share with you all. First, I delete my hotmail account from mail account. Secondly I reboot my ipad2 with holding sleep and home button at once untill the apple logo is appeared. Then I add back the hotmail account. Done. Hope it helps. Thank you.

  • Error: Cannot get Azure subscription ID and thumbprint. Failed in New-FirewallRuleForWebsite in New-AzureSql.ps1

    I am working through the eBook "Building Cloud Apps with Microsoft Azure" and when I run New-AzureWebsiteEnv.ps1 I get the following error
    Error: Cannot get Azure subscription ID and thumbprint. Failed in New-FirewallRuleForWebsite in New-AzureSql.ps1
    I have already tried adding -ExtendedDetails to Get-AzureSubscription in New-AzureSql.ps1 and New-AzureWebsiteEnv.ps1.
    I am using Azure PowerShell 0.8.16 and Windows 7 Service Pack 1.

    Hi,
    Not too sure if you have tried this:
    In the code you will have a line:
    $s = Get-AzureSubscription –Current
    Change that line to:
    $s = Get-AzureSubscription -Current –ExtendedDetails
    The difference between the two lines is that the –ExtendedDetails will return the Thumbprint required by the code
    Reference:=
    http://blogs.msdn.com/b/devschool/archive/2015/04/10/error-in-fixit-demo-cannot-get-azure-subscription-id-and-thumbprint-urghh.aspx
    Regards,
    Mekh.

Maybe you are looking for

  • Creating table with null and not null values.

    I have to create a table with 5 Null nd 5 Not Null fields.My questionis which fields are place first?Not or Not Null and why???

  • Process chain stops in infopackage with yellow status

    Hi Gurus, We are experiencing some difficulties regarding the use of process chains with warnings. Our SAP BI system is connected to an ETL server which feeds us with data from other systems. We have a query that has a push-button functionality that

  • Include XML payload as URL query string

    Hello Gurus - I have a business requirement that I'm hoping you all can help me with: Scenario: Send XML message from SAP XI to a third party system via the Receiver Plain HTTP Adapter I need to include the actual XML message as a query string in the

  • Depreciation run- urgent

    Hi Friends, Depreciation Isssue - urgent. Our company follows Fiscal year 2009,  current period is 3. I have purchased new asset in current period 3/2009. and I posted manual depreciation under ABMA t.code. When I run depreciation for the same asset

  • [ANN] Kalimages PRO 1.0 - build your professional images database using metadata standards (IPTC and

    Kalimages PRO is an innovative tool to build your own database and search engine for images. Main features: Collect full sets of standard images metadata: - legacy IPTC/IIM - new standard IPTC Core - customized Extensible Metadata Platform (XMP) sche