Storing into vector problem

I am storing my documentID etc into setter methods and vector in my database class. DocumentID field is an auto number field in access database. e.g there are 7 records in the database and by right the documentID should be from 1 to 7. When i retrieve the contents from vector in my servlet class, all 7 records' documentID are 7 but not from 1 to 7. And this occurs when i add the yb instance into a vector. it works alright when i do a System.out.println() within the while loop(before adding into a vector). My qns is why is it that the last record number is being displayed instead of 1 to 7? if my codes were to be the one displayed below, it works:
while(rs.next())
v.add(rs.getString("DocumentID"));
// inside Database class
// e.g all 7 records' DocumentID would display 7 instead of 1 to 7.
while(rs.next()){
YourBean yb = new YourBean();
yb.setDocument(rs.getString("DocumentID"));
yb.setDocName(rs.getString("DocName"));
yb.setStateCode(rs.getString("State_Code"));
yb.setOriginator(rs.getString("Originator"));
v.addElement(yb);
stmt.close();
con.close();
catch(SQLException e){
System.out.println(e);
e.printStackTrace();
return v;

A static field is one that is declared as "static". Like this:private static String document;If you did that then there's only one instance of the variable for the class.

Similar Messages

  • Problem - Values are not stored into Tables when value are accepted from us

    // jsp code
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    // registerbn.setMembers1();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="JavaScript1.2">
    //some validations functions
    </script>
    </head>
    <body>
    <table valign="top" align="top">
    <TR>
    <TD COLSPAN="100%"><jsp:include page="Header.jsp" flush="true"/></TD>
    </TR>
    <TR>
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    <font face="arial" size="1">
    site developed by ADPCell TIFR
    </font>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    <!-- left for password -->
    1)
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Category </font> </b></td>
    <td width="80%">
    <font face="arial" size="2"> <b>
    <input type="radio" name="Category" value="General">General
    <input type="radio" name="Category" Value="Operators">Operators
    <input type="radio" name="Category" Value="Heads">Heads<BR>
    </b> </font>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Budget Category </font> <b> </td>
    <td width="40%">
    <font face="Arial" size="2"> <b>
    <input type="radio" name="BCategory" value="General">BGeneral
    <input type="radio" name="BCategory" Value="Operators">Operators
    <input type="radio" name="BCategory" Value="Head">Head
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Budget Heads
    </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="4">
    <textarea rows="2" name="Bheads" cols="20" size="100"
    style="border-style: solid">
    </textarea></font></b></td></tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Other Category</font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <select size="1" name="OtherCategory" tabindex="20" style="border-style:
    solid" size="2"><OPTION value="EH">EH
    <OPTION value="EO">EO
    <OPTION value="FH">FH
    <OPTION value="FO">FO
    <OPTION value="AO">AO
    <OPTION value="AH">AH
    </select></font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">email </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="email" size="20" style="border-style:
    solid" width="6">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <font face="Arial" size="2"><b>Dob </font></b></td>
    <td width="40%">
    <font face="Arial" size="2"><b>
    <select size="1" name="day" style="border-style: solid"><OPTION value="0">Day
    <% int i;
    for(i=1;i<=31;i++)
    out.print("<OPTION VALUE=\""+i+"\">"+i+"</option>");
    %>
    </select>  
    <select size="1" name="month" style="border-style: solid" ><OPTION value="0">Month
    <OPTION value="1" >January
    <OPTION value="2" >February
    <OPTION value="3" >March
    <OPTION value="4" >April
    <OPTION value="5" >May
    <OPTION value="6" >June
    <OPTION value="7" >July
    <OPTION value="8" >August
    <OPTION value="9" >September
    <OPTION value="10">October
    <OPTION value="11">November
    <OPTION value="12">December
    </select>
    <select size="1" name="year" style="border-style: solid">
    <% int j;
    for(j=1950;j<=2000;j++)
    out.print("<option value=\""+j+"\">"+j+"</option>");
    %>
    </select></b></font></td>
    </tr>
    <br> <br>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Date of Join
    </font></b></td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <select size="1" name="day1" style="border-style: solid"><OPTION value="0">Day
    <% int k;
    for(k=1;k<=31;k++)
    out.print("<OPTION VALUE=\""+k+"\">"+k+"</option>");
    %>
    </select>
    <select size="1" name="month1" style="border-style: solid" ><OPTION value="0">Month
    <OPTION value="1" >January
    <OPTION value="2" >February
    <OPTION value="3" >March
    <OPTION value="4" >April
    <OPTION value="5" >May
    <OPTION value="6" >June
    <OPTION value="7" >July
    <OPTION value="8" >August
    <OPTION value="9" >September
    <OPTION value="10" >October
    <OPTION value="11" >November
    <OPTION value="12" >December
    </select> 
    <select size="1" name="year1" style="border-style: solid">
    <% int l;
    for(l=1950;l<=2000;l++)
    out.print("<OPTION VALUE=\""+l+"\">"+l+"</option>");
    %>
    </select>
    </b></font></td>
    </tr>
    </table>
    <table cellpadding="2" cellspacing="3" width="40%" >
    <tr width="100%">
    <td width="30%">
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    //String action=request.getParameter("Submit1");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPasswd("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_cat("BCategory");
    registerbn.setBut_heads("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setEmail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>
    ------------------ End of JSP Programs ----------------
    // Beans Code
    package beans;
    import java.util.*;
    import java.util.Date;
    import java.util.Vector;
    import java.sql.*;
    public class register
    private String idcode;
    private String user;
    private String passwd;
    private String sec_code;
    private Vector sec_names;
    private String category;
    private String bud_cat;
    private String bud_heads;
    private String other_category;
    private String email;
    private String dob;
    private String doj;
    private String ent_dt;
    private String act_dt;
    private String dbUrl=null;
    private String dbUser=null;
    private String dbPassword=null;
    public void setDburl(String u)
    dbUrl=u;
    public void setDbuser(String us)
    dbUser=us;
    public void setDbpasswd(String Pass)
    dbPassword=Pass;
    public String getIdcode()
    return idcode;
    public void setIdcode(String i)
    idcode=i;
    public String getUser()
    return user;
    public void setUser(String u)
    user=u;
    public String getPasswd()
    return passwd;
    public void setPasswd(String p)
    passwd=p;
    public Vector getSec_names()
    return sec_names;
    public void setSec_names()
    // This function should select valid section code from the database and then populate the sec_names vector.
    public String getSec_code()
    return sec_code;
    public void setSec_code(String s)
    sec_code=s;
    public String getCategory()
    return category;
    public void setCategory(String c)
    category=c;
    public String getBud_cat()
    return bud_cat;
    public void setBud_cat(String b)
    bud_cat=b;
    public String getBud_heads()
    return bud_heads;
    public void setBud_heads(String b)
    bud_heads=b;
    public String getOther_Category()
    return other_category;
    public void setOther_category(String o)
    other_category=o;
    public String getEmail()
    return email;
    public void setEmail(String s)
    email=s;
    public String getDob()
    return dob;
    public void setDob(String d)
    dob=d;
    public String getDoj()
    return doj;
    public void setDoj(String d)
    doj=d;
    public String getAct_dt()
    return act_dt;
    public void setAct_dt(String d)
    act_dt=d;
    public void setMembers()
    Connection conn;
    Statement stmt;
    String query="Select sec_code from web.section";
    sec_details=new Vector();
    try
    conn=DriverManager.getConnection(dbUrl, dbUser, dbPassword);
    System.out.println("connected");
    stmt=conn.createStatement();
    System.out.println("Statement Created");
    ResultSet rs=stmt.executeQuery(query);
    do
    String seccode=rs.getString(1);
    sec_details.addElement(seccode);
    }while(rs.next());
    rs.close();
    stmt.close();
    conn.close();
    }catch(SQLException e)
    System.out.println("Execution Occured" +e);
    catch(Exception e)
    System.out.println("Execution Occured" +e);
    public void saveData()
    Connection conn;
    Statement stmt;
    String id=getIdcode();
    String use=getUser();
    String pass=getPasswd();
    String mail=getEmail();
    String sec=getSec_code();
    String cat=getCategory();
    String oth=getOther_Category();
    String bud=getBud_cat();
    String dob1=getDob();
    String doj1=getDoj();
    String budh=getBud_heads();
    String query="insert into wb_register " + "(idcode, user, passwd, sec_code, category, bud_cat, bud_heads, other_category, email , dob, doj, ent_dt)" + " values('"+id+"','"+use+"','"+pass+"','"+sec+"','"+cat+"','"+bud+"','" budh"','" oth"','"+mail+"','"+dob1+"','"+doj1+"','"+"Sysdate"+"')";
    try
    conn=DriverManager.getConnection(dbUrl,dbUser,dbPassword);
    System.out.println("connected");
    stmt=conn.createStatement();
    stmt.executeUpdate(query);
    stmt.close();
    conn.close();
    catch(SQLException e)
    System.out.println("Exception occured" +e);
    catch(Exception er)
    System.out.println("Exception occured" +er);
    ------------------------End of Beans Program ---------------
    Questions:-
    1) when we are submitting values to form it is not stored into backend (Oracle 9i)
    2) please send some source code for how to fetch values from backend and wants stored into Combo box /select Box
    3) We have faced problem of How call methods of Bean program into JSP programs

    The code to get the values from the database and store them in the combo box or select box would be as follows:
    <%
    zSQL = "select id, name from Users"
    rs = Con.ExecuteQuery(zSQL);
    if(!rs.next()) {
    %>
    <select name="id">
    <option value="0">select the name</option>
    <%
    do {
    %>
    <option value="<%= rs.getString(1) %>"><%= rs.getString(2) %></option>
    <%
    while (rs.next());
    %>
    </select>
    <%
    else {
    out.println("No Record Found");
    %>
    This would help you better.
    and for your first question, please check whether u are able to connect database with your connection method. if you are able to connect to the database, then please check the values (print them on the browser) which are posted from form, if it is also correct then check you r insert statement.
    and for your last question the best tutorial is JAVA API.
    Cheers!
    Rambee

  • I can't see from my PC the .pps files stored into Keynote in my iPad

    Hi all, i would want to know if it's possible to see from my PC the .pps files stored into Keynote in my iPad 2. When i am syncronyzing the iPad with the PC, in the iTunes tab called Applications, in its end part there's a double panel (Share files): on the left side, under 'Applications', a list of the Apps. installed on the iPad; on the right side, under 'Documents', a list of the documents that the selected app. on the left has in the iPad.
    No problem for Quicknote or Documents to go Premium: i can see the docs these apps. have in the iPad, and thus i can use the  'Save in' option to copy them to my PC, and also i can use the 'Add' option to transfer docs from my PC to the selected app.
    The problem is with Keynote application: while i have two docs in this app. in my iPad, i can't see them from iTunes; and also, i can't see in the iPad the docs i transfer to the Keynote app. with the 'Add' button.
    I have uninstalled and re-installed the Keynote app. on the iPad (without rebooting the device between the two things) without result.
    Any help on this matter would be appreciated. Regards.

    I have seen the solution: i have to explicitly share the files from Keynote options:
    - IPad --> iTunes: with the presentation open,  Configuration > Share and print > Send to iTunes.
    - iTunes --> iPad: '+' > Copy from: iTunes.

  • We are getting ¿ stored into our Oracle 10g database  (Microsoft fault)

    We are getting ¿ stored into our Oracle 10g database that is using WE8ISO8859P1 character set.
    Problem is caused by the following:
    Microsoft released software (in particularly MS Word) before considering any ANSI or ISO standard (although they claimed so).
    At that time of pioneering graphical interface - they were the standard. Since then things changed. Microsoft initially targeted US marked, however very soon they wanted to expanded to Europe. For that they needed to get standardized character set instead of one initially being in use. Microsoft re-mapped character set in newer applications using Windows-1252 character set which is compatible with ISO-8851-1 (we are using in our Java Web applications). That cleared obstacles to forward on European market, where extended characters are necessary (like in French, Dutch, German languages...)
    What happened with the initial character codes before Microsoft agreed with ISO to standardize characters? Well - Nothing.
    So what are the consequences of that?
    If we are using Microsoft Word document in conjunction with one of the oldest character set (universe) the ice-age character mapping is still there. So when we "cut and paste" the content to another application, characters sets are not mapped anymore. Especially French language "is sensitive to this" The Microsoft character set in Word decimally coded 146 ( ' ) is very often used in French.
    Therefore if the text is generated in MS Word using old character mapping (universe) which we do, and using method of "cutting and paste" we are mismatching character set interpreted by other, newer applications.
    Initially in the MS words (apostrophe) ' had code 191; then later after implementing Windows 1252 character set being moved to code 146 in accordance to ISO. Well ISO threat character coded 191 as ¿. So if you are using MS Word universe character set, ' looks like ' but in newer applications or ISO compatible applications it looks like ¿.
    Can anyone provide me with periodically cleanup routines that replace garbled characters entered by Microsoft applications into Oracle database ?
    Thanks
    Brendon

    A simply update should work.
    SQL> CREATE TABLE CHARTESTING(COLUMN1 VARCHAR2(30));
    Table created.
    Elapsed: 00:00:00.01
    SQL>
    SQL> INSERT INTO CHARTESTING (COLUMN1) VALUES (CHR(191)||CHR(146)||DBMS_RANDOM.STRING('A',5));
    1 row created.
    Elapsed: 00:00:00.01
    SQL> COMMIT;
    Commit complete.
    Elapsed: 00:00:00.00
    SQL> SELECT * FROM CHARTESTING;
    COLUMN1
    ┐ÆTeoqw
    Elapsed: 00:00:00.06
    SQL> UPDATE CHARTESTING SET COLUMN1=REPLACE(COLUMN1,CHR(191),'*');
    1 row updated.
    Elapsed: 00:00:00.00
    SQL> SELECT * FROM CHARTESTING;
    COLUMN1
    *ÆTeoqw
    Elapsed: 00:00:00.00
    SQL>After numerous attempts you will have to trust me that the characters are correct, my sqlplus isn't working for displaying the characters.

  • I need help with the remake of an old logo into vectors!

    Hello everybody,
    This is my first post here! I hope I'll get some information about my problem.
    So, I need to remake an old and pretty ugly logo, for a friend of mine, into vectors, because right now he has it only as jpg. It works for most places, but since he wants to upgrade his website, he needs a png with transparent background. I've been trying to work around this for a couple of days now, but I simply cannot get the desired result. Today I decided to try and draw over using pen tool, but as you will see from the original file, it has this "fade away in dots" effect, which I have no idea how to do. If it's possible for someone, I would really appreciate the help. I apologize for, probably the stupid way of doing it, but I am still learning how to work with the program and I'm still an amateur!
    Thank you in advance and have  a great day!
    Here are the pictures.
    ORIGINAL JPG
    The drawing I made using Pen Tool, not smoothed

    Is this really the only way of doing it? I tried looking up the font used for this, but the logo was originally made in the early 90's and the font was probably custom made, just for the logo. Any other ideas instead of making every circle because that's gonna take a looong time. I had the idea of using the feather effect, but I couldn't find a way to apply it on only one side of the object. Is there such an option?
    @Test Screen Name - Can you think of some way to do it with Photoshop? I am aiming at some sort of gold 3D look with reflections and so on.
    This is turning into a nightmare...

  • I just updated my iPhone 4 to iOS6.  In the process, I ran into a problem and had to restore factory settings.  After syncing the phone, I see that 218 apps need to be updated. When selecting "update all," it says "manage local device storage usage." How?

    I just updated my iPhone 4 to iOS6.  In the process, I ran into a problem and had to restore factory settings.  After syncing the phone, I see that 218 apps need to be updated. When selecting "update all," it says "Cannot Download.  There is not enough available local storage to download these items.  You can manage your local device storage usage in Settings."
    How can this be the case when I haven't changed any apps from before updrading to iOS6, and I don't have any music yet on the phone?  Why is it telling me there is not enough local space?

    Hi RileyAvaCadenRiver,
    If you recently updated your iPhone to iOS7, you will need to update iTunes on your computer to iTunes 11.1 or newer for it to correctly recognize the iPhone. You may find the following link helpful:
    Apple: iTunes 11.1.1
    http://support.apple.com/kb/DL1614
    Regards,
    - Brenden

  • When I plug my iPhone 4s into my PC, I get an error message that says iTunes needs a newer version of Apple Mobile Device Support. It wants me to uninstall both the AMDS and iTunes and then reinstall iTunes. Has anyone else run into this problem recently?

    When I plug my iPhone 4s into my PC, I get a message that says iTunes needs a newer version of Apple Mobile Device Support. It wants me to uninstall both the AMDS and iTunes and then reinstall iTunes. iTunes won't recognize my phone and so I can't synch it. Has anyone else run into this problem recently and how did you resolve it? Thanks!

    Thank you both. I suppose I should have prefaced my question with the concern that I've read a number of other posts from people who have had a similar issue and when they tried to follow the directions, they ran into a multitude of other problems. As you might imagine, I'm hoping to avoid the creation of new problems as I try to solve this one. Thanks again.

  • I have a Macbook pro 2009 with Snow Leopard.  Which system can I install without running into complicated problems which I will not be able to solveby myself? (Mountain Lion, Mavericks, Yosemite?)

    I have a Macbook pro 2009 with Snow Leopard.  Which system can I install without running into complicated problems which I will not be able to solve by myself- a person with limited problem solving abilities. (Mountain Lion, Mavericks, Yosemite?)

    It will make it easier to help you w/ your problem to know the  size and RAM installed.
    "Yesterday I couldn't update the maps on my Garmin because it said the OS I had wouldn't work"
    What OS will your Garmin work with? Funny there was someone else that did that and upgraded to Yosemite and regretted it.
    I'd say Lion if your Garmin is compatible.
    Both Lion and Mountain Lion are downloadable from the Apple Store:
    http://store.apple.com/us/product/D6106Z/A/os-x-lion
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion
    The OSs will get more resource hungry the higher you go.

  • I tried to update the latest update 1/27/14 and it ran into a problem.  I am not able to get to my library.  I tried to download Itunes and it won't  work .   What should I do?

    I tried to update the latest update 1/27/14 and it ran into a problem.  I am not able to get to my library.  I tried to download Itunes and it won't  work .   What should I do?

    Are you sure it was error 0604 since I never heard of that error, it does not appear in the list of errors in the following and a search of Apple's support site gets no hits.  However, error 1604 is list and users have reported that error number.  If 1604 is the error number the following tell yu wnat to do when you click on that error number:
    iOS: Resolving update and restore alert messages

  • Outlook 2013 something went wrong sorry we ran into a problem

    my outlook started hanging and causing problems a few days ago where sent messages were sitting in outbox without sending. and when you closed and reopened outlook the messages has vanished completely without sending. I'm unable to get outlook
    to open.  I keep getting the message something went wrong sorry we ran into a problem. All other office 2013 programs will function correctly. I have also tried to open the control panel/mail (outlook 2013) (32 bit) icon, but this pauses
    for a while and then brings up no window to configure an account. I managed to get my exchange account set up in the mail app but I'm not interested in using the mail app when i should be able to utilize all the functionality of outlook.
    I have spent a couple days reading all the posts and tried uninstalling office 2013 pro and the mail app thinking i'd clean install the 64-bit version of office but to no avail. Looks like the preloaded office 13 cannot be uninstalled, so I then
    downloaded the O15CTRRemove tool which worked in removing office 2013, but did not fix the problem of outlook not opening. This is driving me crazy and I have tried many suggestions from the online forums, and have got outlook to open a couple of times where
    it was then asking for a product key, and when the key was entered outlook would close straight away and not allow it to open again. I have tried running the repair tool many times, and this does not work. Every other program I have had zero issues with; autocad, 
    adobe suite, everything runs perfect. I just want to get my outlook all set up.Please advise!

    Hi,
    Please check whether you can send message in OWA. If there is no issue in OWA, it should be an Outlook issue. It seems that there is just one user encontered this issue in your environment. If so, please start Outlook in safe mode by using "Outlook /safe"
    in Run windows to check whether the issue persists. If it fails, please change a computer to try again.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • System.InvalidOperationException: Call to Excel Services returned an error. --- Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry. We ran into a problem completing your request

    0
    HI All,
    I  am having problem with the power pivot dashboard.
    power pivot dashboard processing job fails with the follwoing error message.
    SP 2013 with 2008 r2
    SQL 2014 power pivot on new analysis server.
    Data refersh of cube and database works finw form the power pivot gallery.
    The Execute method of job definition Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob (ID 726034a7-b9a9-45a6-b720-640b3f785e49) threw an exception. More information
    is included below.  Call to Excel Services returned an error.
    ULS error:
    EXCEPTION: System.InvalidOperationException: Call to Excel Services returned an error. ---> Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry.
    We ran into a problem completing your request. ---> Microsoft.Office.Excel.Server.WebServices.ExcelServerApiException: We're sorry. We ran into a problem completing your request.   
     at Microsoft.Office.Excel.Server.WebServices.ApiShared.ExecuteServerSessionMethod(Boolean hasSessionId, String sessionId, CoreServerSessionMethod coreWebMethod, String name,
    Boolean skipFeatureCheck)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookInternal(String workbookPath, Boolean editingMode, String uiCultureName, String dataCultureName, Boolean
    newWorkbook, Boolean suppressRefreshOnOpen, Boolean openExclusive, Status[]& status)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookEx(String workbookPath, String uiCultureName, String dataCultureName, Boolean exclusive, Status[]&
    status)    
     at Microsoft.AnalysisServices.SPClient.ExcelApi.<>c__DisplayClassa.<OpenWorkbookEx>b__9(ExcelService svc, Status[]& status)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)     -
    -- End of inner exception stack trace ---     -
    -- End of inner exception stack trace ---   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall, String methodName, Object[] parameters)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.OpenWorkbookEx(String fileUrl, String uiCultureName, String dataCultureName, Boolean exclusive)   
     at Microsoft.AnalysisServices.SPClient.ASSPClientProxy.OpenWorkbookModelForRefresh(String workbookPath, SessionLifetimePolicy lifetimePolicy)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.RefreshUsageCube(GeminiServiceApplication application)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.Execute(Guid targetInstanceId)
    Thanks
    Ravi

    HI Ravi,
    Did you find the solution?
    Thanks in advance
    Regards,
    Faraz Javaid

  • Error: Microsoft word web app -Sorry we ran into a problem - IE 11

    Hi,
    I am using Windows 8\Office 2013 32bit\IE 11.
    When opening word docs in SharePoint 2013, the Word Web App shows the error "Microsoft word web app -Sorry we ran into a problem" and does not open the file. 
    SharePoint site is a http one. The document is getting opened in IE 9 (checked in different machine).
    Excel also displays an error, but opens the file.   
    How to fix this?
    Thanks

    Hi ,
    Have you checked the related uls log when this issue occured?
    In addition to Fabio's suggestion, please also check the following post discussion and troubleshooting article, see if they could help.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f7be5f88-8c98-464e-8596-60956b5e98fd/sharepoint-2013-office-web-apps-problem-unable-to-openviewedit?forum=sharepointgeneral
    http://technet.microsoft.com/en-us/library/ff431687.aspx
    Thanks,
    Daniel Yang
    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]
    Daniel Yang
    TechNet Community Support

  • Excel Services "We're Sorry. We ran into a problem..." after applying updates

    Excel Services had been configured and working fine.  This past weekend we applied all of the microsoft updates to the Sharepoint Server and it's related database server.  Since then, Excel Services has been giving us the dreaded "We're Sorry.
    We ran into a problem..." error.
    All services are running.  I tried restarting everything.  Went back and checked all the relevant Sharepoint configs. I can't find anything in the ULS logs that looks relevant.
    Any thoughts?

    Hi Steven,
    Did you run Product and Configuration Wizard on each SharePoint server after installing updates?
    If not, please run it first and then do an IISRESET to see how it works.
    If above cannot work, I recommend to verify the things below:
    Check if the Excel service has been associated with the web application with issue. If not, associate the service application with the web application.
    Grant Excel Services access rights to the SharePoint Content database.
    Verify that the account has correct permissions in SQL Server.
    For detailed steps for the options above, please refer to the link below:
    http://algrandi.azurewebsites.net/index.php/excel-services-application-crashes-sp-20102013/
    Please also check ULS log to see if the issue below occurs:
    http://blogs.msdn.com/b/spike/archive/2015/02/12/sharepoint-2013-excel-services-w3wp-exe-fails-with-quot-exception-code-0x80131623-quot.aspx
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Has anyone run into the problem of downloading or opening an E.pdf file? I am running on 10.6.8 and am unable to open the file. Any suggestions?

    Has anyone run into the problem of downloading or opening an E.pdf file? I am running on 10.6.8 and am unable to open the file. Any suggestions?

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • Converting 3D fx into vectors

    So I've got objects with 3D "bevel and extrude" appplied to them.
    Is there a way I can convert them into vectors? Cause now they dont actually act like they're vectors...
    I tried to convert them into bitmap and then convert that into vector but that didnt worked out the way I desired.
    Is there a solution to this?
    Thanks alot

    >...it basically means i need to
    redraw the thing...
    Well... one
    could argue that, since you relied on an effect the first time around, you will now be truly drawing (rather than
    redrawing) it.
    I know I could get slapped silly around here for suggesting such a thing, but this could be a wonderful learning experience for you.

Maybe you are looking for

  • How can I set 'Adobe PDF printer' as one of my printer choices?

    I've given it half an hour. Can't seem to figure out how I can set 'Adobe PDF printer' as one of my printer options. I'm not sure if I need to download an Adobe file, and what folder I might need to place it in, and if I also need to add a specific d

  • Can't delete folder I created in Home directory

    I created a music folder as an alternate to iTunes in my Home directory.  Recently it started acting funny: wouldn't open in finder, wouldn't allow me to rename it, and now won't let me move or delete it.  I tried unlocking it and checked that I have

  • Where is the auditd configuration file?

    Acorrding to a documentation here, there is a file called /etc/sysconfig/auditd. It's the configuration file of auditd. But : jack ~ $ locate audit | grep etc /etc/audit /etc/libaudit.conf /etc/audit/audit.rules /etc/audit/auditd.conf not such file o

  • FCP crashing when opening photos in viewer

    This is getting crazy, Final Cut will crash when I try to load a photo into the viewer canvas. Its doesn't happen everytime I open a picture, but enough to make it a real inconvenience and slowdown my workflow. Most of the pictures I use are .png and

  • How To extract LRO's onto Excel?

    Hi,<BR><BR>Does anyone know a way to pull out the LRO's on to Excel?<BR><BR>I created an excel macro for the end users where they will click a button and LRO's pops up one after another. The users can add/view/modify 'Cell Note' for a cell then click