#MULTIVALUE error in some cells only

I am getting #MULTIVALUE error in few cells in a cross-tab report whereas the rest of the cells show correct results. What can be the reason for this.
My cross tab report consists of : Physician(Dimension) as a Section, Metrics(dimension) in the rows and Month(dimension) as columns.
The body contains measures- Rate and Scale. Each Metric has got a defined scale of 0-4 based upon a range of the Rate.
Scale ia a variable created by me as =[Rating Scale] In ([Provider] Where([Rate] Between([Lower Target Pct];[Upper Target Pct]))
The report looks like:
                    Jan                   Feb                          Mar
              Rate  Scale
Metric1  
Metric2
When i try to include the Rate of YTD, the data in the Rate shows correct results wheares the Scale certain cells are appropriate but rest of them throughs #MULTIVALUE error.
I am not able to comprehend whats going wrong in here.
Can anyone pls resolve this issue.

Actually , there is no formula for Scale. Its in-built dimension but to get the correct result in the cross-tab( No irregularities are found for teh results in the horizontal and the vertical report format), I created the variable for scale as follows:
=Scale ForEach(Provider) Where(Rate Between Lower Target AND Upper Target). After using this variable, I got correct results for the monthly/quarterly data wheareas for the YTD it gives #MULTIVLAUE for few cells, where the scale is different for the every months./quarters. It gives correct result where the rate falls in teh same scale zone for all the months/quarters for a certain Metric.
For .Ex.
Metric                   Q1                           Q2                  Q3                      YTD
                     Rate     Scale  
Tetanus        94         3                     92     3                91  3                 93       3
BRC              71        2                      91      3               98    4               83       #MULTIVALUE
I am not able to fathom that why its not taking the YTD into consideration even though I created a different variable for the scale of YTD in which I used the YTD(rate) instead of the actual(Rate).

Similar Messages

  • #multivalue error for detail object in webi report

    Hi,
    I am facing #multivalue error in my webi report.
    I am using 2 queries 
    Query 1
    Account Number
    Cost Center
    Query 2
    Account Number
    Order Number
    Now I want to display Account Namer,Cost Center and Order Number in the report.
    So I merged Account Number from both the queries, and created a detailed object "Order" and associated it with [Query 1].[Account number].
    But Order displays values for some accounts, and displays Nulls and #MULTIVALUE error for some accounts.
    Please through some light on this issue.
    I tried every possible solution from my side, but couldn't get it work. It is happening because there is a 1:N relationship between Account Number and Order. I can not use any aggregate function because it will give only the Max or Min value, but I want list all the value of for each Account Number. Avoid Duplicate Row Aggregation was also checked but it didnot help.
    Thanks.

    Hi Shreya,
    There are few things that you need to consider while displaying the data.
    1 - Can an Account Number be associated to more than one Order Number?  If yes, then your solution will not work and that's the reason you are seeing #MULTIVALUE (i.e. Multiple Order Numbers for the same account number)
    2 - Why would you want to create two data providers?  Would it not be possible for you to bring in all the 3 objects in the same data provider?  The only reason I could think of is that they are not related
    3 - Always make the lower granularity objects common across the data providers.  I do not know about the relation between different entities of your database, but I would suggest something like
    Query 1 - Order Number, Account Number
    Query 2 - Order Number, Cost Center
    and merge Order Number...and create detailed object for either Account Number / Cost Center.  It all depends on the relation between the tables.
    Hope the above pointers help you.
    Regards,
    Srivatsa

  • FormatDate function returning #MULTIVALUE error

    I need to display the raw date returned by a Universe Element in DD-MMM-YYYY format into a cell positioned in the Page Header.
    So used the below formula, which is returning "#MULTIVALUE" error to the cell.
    =FormatDate([Bank Business Date]; "dd-MMM-yyyy"), where [Bank Business Date] is the Date element from the Universe whose data type is "date time"
    However, I am not facing this issue in another report where the data type of the Universe Element is "date"
    Any guidance is appreciated to address my above issue

    Hi Rajeswarudu
    Is this error arising in Webi  or Universe ?
    Make sure the dates should be not overlapped with the same values in a single cell

  • OBIEE access denied for some users only

    Hi All,
    we are using OBIEE 10.1.3.4 version on windows envorinment .The users can access the OBIEE reports using 'PORTALPATH' session varible in RPD.For some of the users are got "access denied" while they are accessing for thir particular dashboard.Eariler these user got access this dashboard with out any errors.We dnt changed in our system anything from last three months.
    We have no idea why we are getting these error for particular users only.Its Prod issue we need to reslove these error ASAP.
    we are getting these error"acess denied for user to path/shared/shared/_test/testdashboard
    Error Codes:09XNZMXB"
    but last one year its working without any issues .From our side we dnt did any changes in production like RPD level,Catalog level and config file changes , we have no idea why suddenly we are getting these kind of error for some users only not for all users.
    Could u please advice me how to reslove this PROD issueASAP.
    Thanks,

    Well its Prod (you have a dashboard called testdashboard in Prod?) anyway - someone might have changed the presentation catalogue permissions on the dashboard. All it takes is for someone to remove 'Everyone' or change a Group permission and it could effect.
    If they changed the Parent folder and cascaded the changes down this might cause this issue.
    You have a folder called 'Shared' - check the groups that the people are in have 'Traverse' , 'Read' or higher. Also chek dashboard permissions themselves from Settings-Manage Interactive Dashboards - Check the Padlock icon.
    Are you users getting allocated into the correct WEBGROUPS ? Is this assisngment done explicitly in the webcat or via an RPD Variable ? Have you checked NQQueryl.log to make sure any init blocks are completing successfully?
    Either persmissions have changed or group memebership is not completing.
    Good luck
    Alastair

  • #MULTIVALUE error when I add Text in a cell

    Hi,
    There is a funny error occurring in the report.
    I have build this report on Excel sheet. The sheet has ONLY 4 rows,(and it always will have 4 rows).
    Following is the format of the Excel sheet:
    Plant    Division           Comment1           Comment2   Week
    1            10                   A                        E                 4
    2            10                   B                        F                 4
    3            10                   C                        G                4
    1            20                   D                        H                 4
    In the report I have made a connection on the Excel sheet. I have made made the fields Plant,Division,Comment1 and Comment2 as Dimensions and Week as Measure.
    In 4 different cells, with 4 combinations on Plant and Division, I want the following output:
    - Comment1: A
    - Comment2: E
    When I put the formula: =([Comment1] where ([Plant]="1" and [Division]="10")) + ([Comment2] where ([Plant]="1" and [Division]="10"))
    it returns Correct Results.
    But when I add Text values in the formula it returns #MULTIVALUE error:
    Example:        ="- Comment1: "+ ([Comment1] where ([Plant]="1" and [Division]="10"))
    Where am I going wrong?
    Thanks,
    Amrita

    Hi Amrita,
    This is because when you are going only with the formula, it will provide you the value for one cell and blank for other.
    But when you are going with the comments as well, you will get 4 values for this. (one for each row)
    1. -Comment1:
    2. -Comment1:
    3. -Comment1:
    4. -Comment1: A
    So when you are selecting this in a single cell it will throw you #Multivalue error.
    Hope it is understood.
    Regards,
    Subrat

  • Why do borders for some cells allow changes in line thickness, but other cells are locked in only one thickness?

    It looks like you should be able to choose different line thickness for cell borders, but for some cells you can get three choices (0.5, 1, 2 pt), but in other cases you can only do 0.5?
    I can't make a consistent thickness border around the outside of all my cells!

    VS,
    Yes, I have lots of ideas. After all that work you probably don't want to hear them.
    1. I would use PDF versions of rotated text boxes, inserted into the cells as background Fill rather than floating the actual text boxes over the table.
    2. I would never merge a cell, or divide, a cell. Too many problems await you down the road if you do that. There are many ways in Numbers to avoid having to do those things. These are things we must do in Excel to get by, but we don't have to do them in Numbers.
    3. There is a Line Type called "Thin" that has only one size, and another line type shown as a heavier solid for which the weight can be adjusted. It's possible that you have some places where you need to change the line type.
    I believe that your difficulty may come from the merging of cells causing some ambiguity as to which border needs to be selected to change the display. This would be a bug, because you should be able to just select the border and edit it, but your table may have become so complex that the program has lost track of things in the course of all your changes.
    My suggestion is to print your table just as it is, for reference, and start over in a new document, not an imported one. Don't merge or split. Use multiple simple tables and the occasional text box for annotation. You will be on your way to doing things the "Numbers Way".
    Jerry

  • #Multivalue error in BO webi.

    Hi
    We are having a webi report based on two Bex queries. One query on top of a multiprovider and another on a DSO. The DSO contains rate category information and mutiprovide contains customer deatils. "Rate Category" is the common field between the two sources. So we have a merged dimension on top of Rate Category.
    In the report we need to display the winter and summer rates used for a particular customer based on his recent rate category in seperate cells outside the table. Based on the recent meter reading date, we are picking the value of rate category using the below formulas.
    [recent MR date] = max(meter reading date)  // measure variable
    [recent rate category] = if (meter reading date = recent MR date) then [customer].[rate category] //dimension variable.
    Once the recent rate category is got, using the below formula we are doing a look up on the another bex query(which is built on DSO)
    [recent winter rate] = if (recent rate category = [DSO].[rate category]) then [winter rate] //measure variable.
    Upon using these formulas we are getting #multivalue error.
    Please suggest some solution for the above issue.

    Hi Vinayak Gole,
    Check the following Property.
    Right click on the table and check the  “Avoid duplicate rows aggregation” option.
    Then save it and reopen the report .
    Regards,
    Anish

  • What is multivalue error

    Post Author: chnagaraju
    CA Forum: Deployment
    while creating a report  now and then i am getting multivalue error.what is that? and how can i resolve that one.

    Post Author: indrasol
    CA Forum: Deployment
    #MULTIVALUE error occures when you try to place a formula or Column that returns more than one value in a cell that outputs only one value.
    I hope this will answer your question

  • Re: Multivalue error

    Hi All,
    My data provider conatins both customer id and material id, but I  no need to show material id in the block. The requirement is I need show the gross marin based on the customer id and material.
    for this I have written a formula i.e 
    =Sum([Gross Margin]In([CustomerId];[Material ID]))In([Material ID])
    but I'm getting multi value error , for some combinations I'm getting the values which has only one material id.
    Thanks in Advance
    Regards,
    Ranganath
    Edited by: Ranganath on Nov 14, 2011 11:29 AM
    Edited by: Ranganath on Nov 15, 2011 8:28 AM

    Hi Rohit,
    here's the example: when i place the material id in the block i'm getting the following o/p.
    custo_id>>>>>>>material id>>>>>>>qty>>>>>revenue>>>>>>>grossmargin
    10001>>>>>>>>M001>>>>>>>>>>2>>>>>>>>4000>>>>>>>>>150
    10001>>>>>>>>M002>>>>>>>>>>1>>>>>>>>1000>>>>>>>>>400
    10002>>>>>>>>M005>>>>>>>>>10>>>>>>>>9000>>>>>>>>>1000
    10003>>>>>>>>M001>>>>>>>>>>4>>>>>>>>8000>>>>>>>>>300
    10003>>>>>>>>M006>>>>>>>>>5>>>>>>>>>>3000>>>>>>>>600
    >>>>>>>>>>>>>>>>>>>>>totals: 22>>>>>>>>>25000>>>>>>2450
    when i remove the material id in the block for gross margin i'm getting the followig values
    i'm getting the following o/p
    custo_id>>>>>>>>>>>>>>>qty>>>>>revenue>>>>>>>grossmargin
    10001>>>>>>>>>>>>>>>>>>2>>>>>>>>4000>>>>>>>>>2450
    10001>>>>>>>>>>>>>>>>>>1>>>>>>>>1000>>>>>>>>>2450
    10002>>>>>>>>>>>>>>>>>10>>>>>>>>9000>>>>>>>>>2450
    10003>>>>>>>>>>>>>>>>>>4>>>>>>>>8000>>>>>>>>>2450
    10003>>>>>>>>>>>>>>>>>5>>>>>>>>>>3000>>>>>>>>2450
    for this i created a variable and written a formula for Gross margin
    =Sum([Gross Margin]In([Customer Full Name];[Material ID]))In([Material ID])
    custo_id>>>>>>>>>>>>>>>qty>>>>>revenue>>>>>>>Grossmargin
    10001>>>>>>>>>>>>>>>>>>3>>>>>>>>5000>>>>>>>>>#Multivalue
    10002>>>>>>>>>>>>>>>>>10>>>>>>>>9000>>>>>>>>>1000( because it has only one material i.e M005)
    10003>>>>>>>>>>>>>>>>>>9>>>>>>>>11000>>>>>>>>>#Multivalue
    but what i want is
    custo_id>>>>>>>>>>>>>>>qty>>>>>revenue>>>>>>>Grossmargin
    10001>>>>>>>>>>>>>>>>>>3>>>>>>>>5000>>>>>>>>>550(M001 gross margin val 150 and M002 gm val 400)
    10002>>>>>>>>>>>>>>>>>10>>>>>>>>9000>>>>>>>>>1000( M005 gm value)
    10003>>>>>>>>>>>>>>>>>>9>>>>>>>>11000>>>>>>>>>900(M001 and M006 gm val 300+600)
    Regards,
    Ranganath
    Edited by: Ranganath on Nov 15, 2011 10:51 AM

  • #Multivalue error with merged dimension

    Hello Experts,
    I have a report which has two queries 1 and 2. Query 1 has Year,Month,DB,UserID and NOQ(measure) obejcts. Query 2 has User ID and Username Objects.
    The requirement is to display Username along with UserID and other objects in Query 1.
    I have merged UserID from both queries and the merged object is named as "LANID" and non merged dimensions are created as Detail Objects for year month and DB with associated dimension as LANID.
    If I drag year-detail,month-detail,DB-detail,UserID (from LANID) and Username,I get #MULTIVALUE error in  month column for User IDs which have multiple records for the same year,different months and same DB.
    I came across a similar thread,http://www.forumtopics.com/busobj/viewtopic.php?p=856502 where Dave Rathbun mentions that merged dimensions work only where there is unique record or same level of granularity between two dataproviders which is not the case here.
    Request you to share any workarounds (asap) to achieve this.
    Thanks,
    Sowrabha

    Is there some sort of aggregation occurring that's causing multiple values for one row?
    Check the table settings and select "avoid duplicate row aggregation" and see if that helps.
    Also, with merged dimensions when you're missing individual query objects with merged objects, dimensional context becomes unknown or the wrong context is assumed, so you may be able to clear up the error by adding in a dimensional context (such as [Month-Detail] In ([User ID]).
    I hope that helps,
    Carly

  • #MULTIVALUE Error while merging

    Hi,
    I merged two dataproviders and changed a dimension to Detail and added the detail object to the existing block.It gives me a #MULTIVALUE error.
    I found an article which addresses this issue, but i failed to understand how it could be achieved.
    below is the link to the article.Can someone kindly illustrate the point?
    Thanks!
    http://www.sdn.sap.com/irj/boc/index;jsessionid=(J2EE3417500)ID2135563850DB11704404452781121703End?rid=/library/uuid/80fe4156-743f-2b10-15a9-e96f47dbab16&overridelayout=true

    Sarma,
    The article is trying to explain that in a previous release of WebI, that somehow merged dimensions tolerated two values to populate the same cell.  With XI R2 SP2 and onward, WebI was changed to no longer tolerate a "cartesian" output and would instead put "#Multivalue" to give notice.  The simple explanation of what causes #Multivalue is that you are attempting to populate a cell with two values at the same time.  The hard part is in determining why it is happening.  The only way to see what's happening is to get to the data, and you get to the data by creating another tab to your report for the purposes of discovery.  In the new tab start a new grid and one at a time place objects from your data panel into a grid and observe what happens.  Once you get a #Multivalue response, then you've identified your culprit and can then determine why it's happening.  The fix is usually determining the proper metric to use in dissecting your data properly.  Essentially, #Multivalue now serves its purpose as helping to keep you from "hurting yourself" in performing analysis that is not correct.
    Thanks,
    John

  • Multivalue# Error in the count value

    Hi,
    Please help me on this. I am getting Multivalue# Error in the code below.
    =If (Count([Subclass ID]) <=5;"Subclass: " + [Subclass ID]; " No of Subclass Selected: " + Count(Subclass ID))
    Thanks you in advance.
    Rose

    Hi Rosemarie,
    WEBI aggregates only duplicate rows and when we try to aggregate non duplicate rows it throws #Multivalue error.
    The #Multivalue error comes for different reasons:
    1) If you are displaying output of formula in single cell then you will get #Multivalue error when formula returns multiple values.
    2) If your data contain non duplicate values and you are trying to aggregate the data using sum, count and removing the column that contain distinct value.
    I checked this with Island and resort marketing Demo universe.
    I Took country and Future Guests and applied formula similar to yours:
    =If(Count([Futureguests])<=5;"Subclass "[Futureguests];"No of subclass"Count([Futureguests]))
    When I removed the column Future Guests from the report I got #Multivalue error because this is the column that distinguishes the records.
    It you want to avoid this,
          1) Check the option u201Cavoid Duplicate row aggregationu201D  by selecting Block-> properties-> Display
                                       OR
          2) Add the column Subclass ID in the report
                                      OR
          3) Use Count(Subclass ID) like  this.
    =If (Count([Subclass ID]) <=5;"Subclass: " + count([Subclass ID]); " No of  Subclass Selected: " + Count(Subclass ID))
    I Hope this Helpsu2026.
    Thanksu2026
    Pratik

  • SUM function resulting WRONG values when some cell contains a string

    A very strange problem that can result in wrong financial calculations and big mistakes...
    If we have SUM function for some range of cells and one of them is treated as text string (I mean it's number in fact but Number is sure it's text string). than SUM function calulates ALL cells except this sell silently without errors and results in wrong result.
    For example we have cells and values
    A B
    =====
    1| 15 USD
    2| 0 USD
    3| 37 USD
    4| 1 USD
    5| 3 USD
    here the function SUM(B1:B5) should provide the result "56 USD"
    But if cell B5 is treated as text string (it can be still displayed as "3 USD" so we don't know it's treated as text string for some reason) than SUM(B1:B5) swill answer "53 USD".
    The problem is we DON'T know cell B5 is treated as text and we are fully sure that we have the correct sum of all 5 cells, in reality we see sum of 4 cells only....
    I think anybody working with financial or other important data can imagine how dangerous this SUM behaviour is.... I encountered several times that when importing data from Excel or by other ways numbers are imported as text strings. So if I have a lot of cells I'm not sure if all those cells are correctly styled or some of them for some unknown reason is treated as text string.
    In Microsoft Excel there is a very right solution. In MS Excel if any cell in the SUM is wrong format the SUM function simply provides error as a result. But in Numbers SUM doesn't tell us about error, it simply provides us with a wrong result!
    With formal logic the way SUM works in Numbers is total idiotism. If I ask to SUM B1:B5 than I definitely ask to sum ALL 5 cells, not 4, not 3, not 6 but 5 definite cells. If Numbers can't sum those exactly those 5 cells the only answer of the function should be ERROR.
    But Apple Numbers answers me some result of summing those cells that it's able to sum. Apple Numbers SUM function is not confused that I asked for SUM of 5 (not 4 or 3) cells and I expect to have this sum as a result.
    In fact Apple uses the right logic when we use another formula. If we use =B1B2+B3+B4B5 and any cell contains text string that we'll have error result the sam as in Microsoft Excel. So in this example Numbers behaves correctly.
    So why SUM (B1:B5) can provide totally different result as =B1B2+B3+B4B5?

    alexb2 wrote:
    So when I set format for my number as my local currency it's displayed as 123 XXX (XXX is my currency but it's not in latin). I see it's not only displayed but also stored as 123 XXX. That's different from Excel that stores only numbers in cells and shows number with prefix or suffix - Numbers storex number with prefix or suffix.
    No, you get this behavior because the original sheet is displaying values as currencies. I assumes that the import process pass it as a string because he doesn't recognize it as a currency value. As far as I know, Numbers stores the currency entries as a pure number and an indicator of the used currency.
    Here is an example.
    (a) the description of the numerical value (I underlined it: 456)
    <sf:number-cell sf:flags="4" sf:value="456" sf:col="1" sf:row="2">
    <sf:cell-style-ref sfa:IDREF="SFTCellStyle-46"/>
    <sf:content-size sfa:w="58.659881591796875" sfa:h="14"/>
    </sf:number-cell>
    (b) the description of the format (I underlined the used currency: XAM)
    <sf:cell-style sfa:ID="SFTCellStyle-46" sf:cell-style-default-line-height="12" sf:parent-ident="tabular-Basic-body-cell-style-id">
    <sf:property-map>
    <sf:SFTCellStylePropertyNumberFormat>
    <sf:number-format sfa:ID="SFTNumberFormat-23" sf:format-type="1" sf:format-string="#,##0.00 &#xA4;;-#,##0.00 &#xA4;" sf:format-decimal-places="2" sf:format-currency-code="XAM" sf:format-negative-style="0" sf:format-show-thousands-separator="true" sf:format-fraction-accuracy="-3" sf:format-use-accounting-style="false"/>
    </sf:SFTCellStylePropertyNumberFormat>
    <sf:SFTCellStylePropertyImplicitFormatType>
    <sf:number sfa:number="256" sfa:type="i"/>
    </sf:SFTCellStylePropertyImplicitFormatType>
    <sf:SFTCellStylePropertyFormatType>
    <sf:number sfa:number="257" sfa:type="i"/>
    </sf:SFTCellStylePropertyFormatType>
    </sf:property-map>
    </sf:cell-style>
    Of course, if the original currency string is not recognized, it can't be described as such a feature and the value is treated as a simple string.
    So may be at some moment my 123 XXX is treated like string value.
    Yes, find and replace is a nice tool when importing data - thanks for the tip. the last problem is with already Numbers files that were imported not today (or even createde as Numbers file) where some cell becomes string value after some editing.
    Here again, if you edit a currency string and replace it to a not recognized one, the result will be logically a string.
    There is an other way to give this result:
    copy a value from a cell formatted as XAM currency (just an example)
    paste it in a cell whose format is currency Euro (once again it's just an example).
    The result will be a string.
    The culprit is not the program, it's the user.
    I had several times this situation and last time I found error only because I have my budget in 2 programs - in Numbers and in another special budgeting program. As each program has advantages I have in fact 2 instances of the same budget.
    And when I changed some string in Numbers and another program I noticed the sum is different. I was sure it's another program somewhere buggy but noticed than Numbers simply ignores one of the budget strings and sums without it... In fact it was even not the string I changed, I remember I changed the buggy string about a week ago but I haven't compared budgets that time so my budget had a mistake for some time till I noticed it. If I used only Numbers without copy of budget in another program may be even today I won't notice the mistake.
    The same situation happened not once.
    I think that the choice made by Apple for SUM() is correct. You feel that it is wrong. It's useless to debate more, we will not change the behavior of the function.
    I try to give a workaround.
    The neater one is to add columns as I described in my first response.
    The given formula will clearly flag cells which aren't containing numerical values. If you move the SUM from the original range to the new one, the oddities will be flagged automatically.
    Here is an alternate workaround:
    The currency is XAM.
    In B4 I introduced a typo so the value is no longer a numerical one.
    Given that, the sum in the footer doesn't count the 34 (which is the normal behavior).
    In column C1 I entered =1*B
    which flagged the bad cell.
    The alternate is to use an auxiliary table like aux1
    In A1 I entered:
    =IF(ISERROR(INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main"))),"",IF(ISBLANK(INDIRECT(A DDRESS(ROW(),COLUMN(),,,"main"))),"",1*INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main") )))
    Exactly the same formula in B1, C1, D1, …
    So, the table will automatically grab the contents of the main table (just take care to insert more columns in aux1 than in main)
    In the footer row of aux1, insert a sum formula for columns where there is required.
    Looking at this footer will flag columns where a value may be "wrong" so, it will be necessary (but easy) to scan the column's content to find the red triangle(s).
    Yvan KOENIG (from FRANCE lundi 13 octobre 2008 13:27:40)

  • I spend a long time to try to sync my itunes music on my ipod 160 GB Classic, but after waiting so long get a pop up message that itunes stop syncing because of error 46, some times giving me 58, 1469, and many other numbers, please help macbook pro

    i spend a long time to try to sync my itunes music on my ipod 160 GB Classic, but after waiting so long get a pop up message that itunes stop syncing because of error 46, some times giving me 58, 1469, and many other numbers, please help am using macbook pro

    That is precisely what my mid-2010 MacBoook Pro 13 was doing before the drive finally died after an Apple Genius rebooted it a dozen or so times. I have since read about the exact same thing happening to others, including a writer for The Atlantic magazine who had never had an issue with a Mac before. Do a back-up ASAP to make sure you don't lose anything and see about replacing the HDD. It is only about $140 for a new drive. The real issue is if you lose your data, too. So, make sure you do that back-up!

  • Error about Source Level only if 5.0?  I'm using Java 1.6?  Maps

    Hello everyone. I was just trying to run some simple Source Code from my book here:
    package mapa;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    public class MapTest
         Map<String, String> phonebook = new HashMap<String, String>();
        // constructor
        public example2(String n[], String nums[]) {
           for(int i=0; i< n.length; i++)
               phonebook.put( n, nums[i] );
    public static void main(String[] args) {
    // data
    String [] names = { "Lefty", "Guarav", "Wong", "Rupamay" };
    String [] extns = { "4873", "4810", "3769", "0" };
    // get an instance of this class
    example2 ex = new example2( names, extns );
    // dump out the map
    System.out.println("map: " + ex.phonebook);
    // get the mappings
    Set<Map.Entry<String,String>> s = ex.phonebook.entrySet();
    // iterate over the mappings
    // for (Iterator i = s.iterator(); i.hasNext(); ) {
    for (Map.Entry me : s) {
    Object ok = me.getKey();
    Object ov = me.getValue();
    System.out.print("key=" + ok );
    System.out.println(", value=" + ov );
    and i'm getting the following errors when I run it in Eclipse:
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         example2 cannot be resolved to a type
         example2 cannot be resolved to a type
         Syntax error, parameterized types are only available if source level is 5.0
         The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
         Syntax error, 'for each' statements are only available if source level is 5.0
         at mapa.MapTest.main(MapTest.java:24)Line 24 is:
      example2 ex = new example2( names, extns );I've compiled things with Eclipse before such as Networking programs and they worked fine, not sure whats wrong with this example.
    Thanks!

    Oops it looks like on that line they are using the Class itself, and they had it renamed to Example2 not MapTest. I changed the code to the following but still getting errros:
    package mapa;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    public class MapTest
         Map<String, String> phonebook = new HashMap<String, String>();
        // constructor
        public example2(String n[], String nums[]) {
           for(int i=0; i< n.length; i++)
               phonebook.put( n, nums[i] );
    public static void main(String[] args) {
    // data
    String [] names = { "Lefty", "Guarav", "Wong", "Rupamay" };
    String [] extns = { "4873", "4810", "3769", "0" };
    // get an instance of this class
    MapTest ex = new MapTest( names, extns );
    // dump out the map
    System.out.println("map: " + ex.phonebook);
    // get the mappings
    Set<Map.Entry<String,String>> s = ex.phonebook.entrySet();
    // iterate over the mappings
    // for (Iterator i = s.iterator(); i.hasNext(); ) {
    for (Map.Entry me : s) {
    Object ok = me.getKey();
    Object ov = me.getValue();
    System.out.print("key=" + ok );
    System.out.println(", value=" + ov );
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         The constructor MapTest(String[], String[]) is undefined
         ex.phonebook cannot be resolved or is not a field
         Syntax error, parameterized types are only available if source level is 5.0
         The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
         ex.phonebook cannot be resolved or is not a field
         Syntax error, 'for each' statements are only available if source level is 5.0
         at mapa.MapTest.main(MapTest.java:24)

Maybe you are looking for

  • Last_page button is not working in table control-urgent

    hi  all, iam displaying the data in table control.in my pf-status i have first_page,next_page,prev_page and last_page.out of 4 buttons 3 buttons are working finr except last_page. any body can send me the code for this program.iam sending my program

  • Getting error -34 when trying to restore my ipad

    I am getting an error (-34) when trying to restore my backup to my ipad after update to ios 5.  Seems to be the same issue as:  https://discussions.apple.com/thread/3374362 I have plenty of free space on my 64gb ipad but the settings keep getting def

  • Strange clicking sound on my Lumia 930 arround the...

    When my camera is not activated, if I mildly shake my Lumia 930 I can hear a strange clicking sound on the upper part of the device, just arround the camera lense. Can it be the lenses just shaking, because when the camera is activated  that sound di

  • Can't open attachments in other apps from mail

    recently I can't see other apps in mail when I try to do the "open in" functionality. For example if I receive a pdf document and I want to save to Dropbox I used to see the Dropbox app. Now I don't see it anymore.. I don't see any off the microsoft

  • BADI after saving the billing document

    Hi Experts, Please tell me the BADI name which will be triggered after saving the billing doc Here once the customer billing document will be saved, BADI will update the equipment master. Regards, Sandeep Edited by: Sandeep Ballewar on Jul 1, 2010 11