What's the error in this package

dear all,
can you plz tell me what's the erro in this package plz
SQL> CREATE OR REPLACE PACKAGE discounts
  2  IS
  3  g_id NUMBER := 7839;
  4  discount_rate NUMBER := 0.00;
  5  PROCEDURE display_price (p_price NUMBER);
  6  END discounts;
  7  /
Package created.
SQL>
SQL>
SQL> CREATE OR REPLACE PACKAGE BODY discounts
  2  IS
  3  PROCEDURE display_price (p_price NUMBER)
  4  IS
  5  BEGIN
  6  DBMS_OUTPUT.PUT_LINE ( 'Discounted '
  7  ||TO_CHAR(p_price*NVL(discount_rate, 1)));
  8  END ;
  9  discount_rate:= 0.10;
10  END ;
11  /
Warning: Package Body created with compilation errors.
SQL>
SQL> show errors;
Errors for PACKAGE BODY DISCOUNTS:
LINE/COL ERROR
9/1      PLS-00103: Encountered the symbol "DISCOUNT_RATE" when expecting
         one of the following:
         begin end function package pragma procedure form
         The symbol "begin" was substituted for "DISCOUNT_RATE" to
         continue.
SQL>

if you want declare a private variable you need to declare at package body and remove from the package specification
something like this
@10g> CREATE OR REPLACE PACKAGE discounts
  2    IS
  3   g_id NUMBER := 7839;
  4    PROCEDURE display_price (p_price NUMBER);
  5    END discounts;
  6  /
Package created.
@10g> 
@10g> CREATE OR REPLACE PACKAGE BODY discounts
  2    IS
  3    discount_rate NUMBER := 0.10; /* Private declaration */
  4  
  5    PROCEDURE display_price (p_price NUMBER)
  6    IS
  7    BEGIN
  8    DBMS_OUTPUT.PUT_LINE ( 'Discounted '
  9    ||TO_CHAR(p_price*NVL(discount_rate, 1)));
10    END ;
11  END ;
12  /
Package body created.You can't assign values to variables out of procedure unless you declare and assign a initial value.
Edited by: dask99 on Oct 26, 2009 8:23 AM

Similar Messages

  • What is the error with this code ??

    i'm trying to execute the following AS3 code:
    var itemsArr:Array = new Array ();
    var i:int; 
          var loaderAds:URLLoader = new URLLoader();
          loaderAds.load(new URLRequest("ads.txt"));   
          loaderAds.addEventListener(Event.COMPLETE, completeHandlerAds);
          function completeHandlerAds(eventAds:Event):void {
              var loaderAds:URLLoader = URLLoader(eventAds.target);
              var varsAds:URLVariables = new URLVariables(loaderAds.data);
                itemsArr = varsAds.names.split(";");
                        for (i = 0; i < (itemsArr.length); i++) { 
                                trace("itemsArr, Processing: " + itemsArr[i]);
           var loaderProps:URLLoader = new URLLoader();
          loaderProps.load(new URLRequest(itemsArr[i]+".txt"));   
          loaderProps.addEventListener(Event.COMPLETE, completeHandlerProps);
          trace("one: " + itemsArr[i]);
          function completeHandlerProps(eventProps:Event):void {
                  trace("two: " + itemsArr[i]);
          }// end of fn for props
                        }//end of "for" loop of ads names
            }//end of fn for ads names
    But i get the following output:
    adsNames Array: ad0,ad1
    adsNames, Processing: ad0
    ad0
    adsNames, Processing: ad1
    ad1
    null
    TypeError: Error #2007: Parameter name must be non-null.
         at flash.display::DisplayObject/set name()
         at MethodInfo-279()
         at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio  n()
         at flash.events::EventDispatcher/dispatchEvent()
         at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    null
    TypeError: Error #2007: Parameter name must be non-null.
         at flash.display::DisplayObject/set name()
         at MethodInfo-279()
         at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio  n()
         at flash.events::EventDispatcher/dispatchEvent()
         at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    As you see, the "red text" is errors, Can you tell me the reason for it ?
    And also, tracing "itemsArr[i]" in the second time, always give "null", also in the first time, it give the correct value, Why ?

    the red text not appear after i posted the topic, but you can see the errors on the output
    and, you've to create to text files, first called "ads.txt" and put in it "names=ad0;ad1"
    second one called "ad0.txt" and put anything in it, and another called "ad1.txt" and put anything in it
    all these files should be in the same dir of flash file

  • What's the error of this file-upload code?

    hi,
    I have written following code for file selection:
    <form action="display.jsp" method="POST" enctype="multipart/form-data">
    <input type="file" name="File1">
    <input type="submit" name = "button" value="Submit">
    </form>And my project another file display.jsp which code is:
    <%@ page import="org.apache.commons.fileupload.*"%>
    <%@page import="java.io.*" %>
    <%@page import="java.util.*" %>
    <%
         out.println("Content Type: "+request.getContentType());
         boolean isMultipart=FileUpload.isMultipartContent(request);
         DiskFileUpload upload=new DiskFileUpload();
         List items=upload.parseRequest(request);
         Iterator iter=items.iterator();
         while(iter.hasNext()){
              FileItem item=(FileItem)iter.next();
              if(item.isFormField()){
                   out.println("SIZE: "+item.getSize());
                File fNew= new File(application.getRealPath("/"), item.getName());
                 out.println(fNew.getAbsolutePath());
                item.write(fNew);
              else
         out.println("Field ="+item.getFieldName());
    %>After that, i put on common-fileupload-1.1..jar on the project's /WebConcontent/WEB-INF/lib/ directory. And i have also add the common--fileupload-1.1.1. jar in the project build path. Further that i have got following error:
    Error is:
    exception
    org.apache.jasper.JasperException: org/apache/commons/io/output/DeferredFileOutputStream
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: org/apache/commons/io/output/DeferredFileOutputStream
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         org.apache.jsp.display_jsp._jspService(display_jsp.java:78)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
         org.apache.commons.fileupload.DefaultFileItemFactory.createItem(DefaultFileItemFactory.java:102)
         org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500)
         org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
         org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
         org.apache.jsp.display_jsp._jspService(display_jsp.java:53)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Why i have got this error? IS there anybody can help me? What will be the solution?Please Help me?
    With regards
    Bina

    java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
    Means you are missing a class file from the class path. Most likely cause is a missing jar file. The Apache Commons utilities often have dependancies on other Commons projects. This looks like it is looking for the Apache Commons IO jar file. Download the jar file and add it to the WEB-INF/lib directory.

  • What's the problem for this package????

    My Package is :
    CREATE OR REPLACE PACKAGE MY_PAQ IS
    TYPE RESULT IS REF CURSOR;
    FUNCTION MY_FUN
    RETURN RESULT;
    END MY_PAQ;
    CREATE OR REPLACE PACKAGE BODY MY_PAQ IS
    FUNCTION MY_FUN
    RETURN RESULT
    IS
    C RESULT;
    BEGIN
    OPEN C FOR SELECT * FROM MY_TAB;
    RETURN C;
    END MY_FUN;
    END MY_PAQ;
    SQL> SELECT MY_PAQ.MY_FUN FROM DUAL;
    SELECT MY_PAQ.MY_FUN FROM DUAL
    ERROR at line 1:
    ORA-00902: invalid datatype
    I like that my function returns a set of rows from a table(s)
    thanks in advance
    Mario

    Mario,
    Package seems okay. However since the function returns an open cursor, one suggested option is as follows:
    sqlplus > variable test_cursor refcursor;
    use this bind variable and call the function
    sqlplus > exec :test_cursor := MY_PAQ.MY_FUN;
    sqlplus > print test_cursor;
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mario Alberto Suarez ([email protected]):
    My Package is :
    CREATE OR REPLACE PACKAGE MY_PAQ IS
    TYPE RESULT IS REF CURSOR;
    FUNCTION MY_FUN
    RETURN RESULT;
    END MY_PAQ;
    CREATE OR REPLACE PACKAGE BODY MY_PAQ IS
    FUNCTION MY_FUN
    RETURN RESULT
    IS
    C RESULT;
    BEGIN
    OPEN C FOR SELECT * FROM MY_TAB;
    RETURN C;
    END MY_FUN;
    END MY_PAQ;
    SQL> SELECT MY_PAQ.MY_FUN FROM DUAL;
    SELECT MY_PAQ.MY_FUN FROM DUAL
    ERROR at line 1:
    ORA-00902: invalid datatype
    I like that my function returns a set of rows from a table(s)
    thanks in advance
    Mario<HR></BLOCKQUOTE>
    null

  • What's the error in this code?

    I keep getting an error message at "line 1 column 97" which is the letter "i" in the second "if."
    begin if :P23_START_DATE is null or :P23_START_DATE = ' ' then :P23_START_DATE:= '01-JAN-2001';
    if :P23_END_DATE = is null or :P23_END_DATE = ' ' then
    :P23_END_DATE = '31-DEC-2099';
    select 'http://apexdevapp1.ci.raleigh.nc.us:7777',
    user_name, count(ID) total
    FROM eba_ver2_cust_activity
    where ACTIVITY_DATE <= to_char(to_date(:P23_END_DATE,'dd-mon-yyyy'),'dd-mon-yyyy')
    and ACTIVITY_DATE >= to_char(to_date(:P23_START_DATE,'dd-mon-yyyy'),'dd-mon-yyyy')
    group by
    user_name,
    'http://apexdevapp1.ci.raleigh.nc.us:7777'
    end;
    Honestly, I don't see where the problem is. Help me please.
    Steve "the n00b" in Raleigh NC

    ackness wrote:
    You could forgo the IF statements altogether by doing using NVL and TRIM this:
    begin
    select
    'http://apexdevapp1.ci.raleigh.nc.us:7777',
    user_name, count(ID) total
    FROM eba_ver2_cust_activity
    where ACTIVITY_DATE BETWEEN NVL(TRIM(:P23_START_DATE), '01-JAN-2001') AND NVL(TRIM(:P23_END_DATE), '31-DEC-2099');
    group by
    user_name,
    'http://apexdevapp1.ci.raleigh.nc.us:7777';
    end;
    also you can simplify the GROUP BY by
    begin
    select
    MAXX('http://apexdevapp1.ci.raleigh.nc.us:7777') URL,
    user_name, count(ID) total
    FROM eba_ver2_cust_activity
    where ACTIVITY_DATE BETWEEN NVL(TRIM((:P23_START_DATE), '01-JAN-2001') AND NVL(TRIM((:P23_END_DATE), '31-DEC-2099');
    group by
    user_name;
    end;Ackness, I tried your first suggestion, and got this when I applied the changes.
    1 error has occurred
    Failed to parse SQL query:
    BEGIN SELECT 'http://apexdevapp1.ci.raleigh.nc.us:7777', user_name, count(ID) total FROM eba_ver2_cust_activity where ACTIVITY_DATE BETWEEN NVL(TRIM(:P23_START_DATE), '01-JAN-2001') AND NVL(TRIM(:P23_END_DATE), '31-DEC-2099'); group by user_name, 'http://apexdevapp1.ci.raleigh.nc.us:7777'; end
    ORA-06550: line 5, column 115: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).
    I can't for the life of me figure out where the invalid character is after "begin." All I can see is a blank character. Thanks for your help.
    Steve "the n00b"

  • What is the error in this one line of code!

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    I am using this line of code in my programe but i am getting the following error.
    C:\shahzad\Easter.java:28: illegal start of expression
    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    Please help me solvingg this problem
    thanks.

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    [] brakets ae used to index arrays, are you using an array somewhere????
    arr=5; for example....
    in either event youl need to make changes.
    assuming no array is involved simply change [] to ()
    if still causing problems try adding extara()
    s= (s-(s/28))*( (1-(s/28)) * ( (29/s)+1) * (21-(q/11)) );

  • What is the error in this program??????

    class FindArea
    public static void main(String args[])
    float radius=7.0f;
    float area=(22/7)*(radius)*(radius);
    System.out.println(area);
    When i execute the above program i am getting output as 147.0 why it is happening???? I dont understand.....
    Actually it should come...154!!!!!!!!

    When you divide one int by another the result is "truncated" (the decimal part is
    thrown away). If you don't want this to happen you have to tell the compiler to
    treat your integer as a double (or float). This is done in the first two cases, but not
    the third.public class IntOrDouble {
        public static void main(String[] args) {
                // prints 15.0
            double answer1 = ((double)3 / 2) * 10;
            System.out.println("answer 1 = " + answer1);
                // prints 15.0
            double answer2 = (3.0 / 2) * 10;
            System.out.println("answer 2 = " + answer2);
                // prints 10.0 because 3/2 is 1
            double answer3 = (3 / 2) * 10;
            System.out.println("answer 3 = " + answer3);
    }Test: so, what will (double)(3/2)*10 print?

  • What's the error in this snippet? very urgent!

    import java.io.*;
    import java.net.*;
    public class HttpClient {
         private String msg =null;
         private int gsm =0;
         private DataOutputStream out = null;
         private Socket HttpSocket = null;
         private String message = new String("Hello Socket");
         public HttpClient(String msg,int gsm) {
              this.msg = msg;
              this.gsm = gsm;
         try {
              HttpSocket = new Socket("127.0.0.1",3333);
              out = new DataOutputStream(HttpSocket.getOutputStream());
         } catch(UnknownHostException e) {
              System.out.println("Don't know about host:127.0.0.1");
              System.exit(1);
         } catch(IOException e) {
              System.out.println("Couldn't get I/o connection for 127.0.0.1");
              System.exit(1);
    out.writeChars(message);
    out.close();
    HttpSocket.close();
    /*When i compile the following errors are detected:
    C:\Work\sms\HttpClient.java:29: <identifier> expected
    out.writeChars(message);
    ^
    C:\Work\sms\HttpClient.java:30: <identifier> expected
    out.close();
    ^
    C:\Work\sms\HttpClient.java:31: <identifier> expected
    HttpSocket.close();
    ^

    Its just some declaration errors...
    just do as follow:
        public HttpClient(String msg,int gsm)
            this.msg = msg;
            this.gsm = gsm;
            try
                HttpSocket = new Socket("127.0.0.1",3333);
                out = new DataOutputStream(HttpSocket.getOutputStream());
                // guess you shall change this with out.writeChars(msg)
                out.writeChars(message);
                out.close();
                HttpSocket.close();
            catch(UnknownHostException e)
                System.out.println("Don't know about host:127.0.0.1");
                System.exit(1);
            catch(IOException e)
                System.out.println("Couldn't get I/o connection for 127.0.0.1");
                System.exit(1);
        }good luck!

  • What is the error message "This item cannot be shared while it is still referencing media on the camera" mean?

    When I tried to create a movie, I got this message: "This item cannot be shared while it is still referencing media on the camera".  What does it mean? 
    How do I resolve it?

    eDude.com wrote: ... What does it mean? ....
    It means that you cannot share something unless it resides on your computer.
    eDude.com wrote:... How do I resolve it?
    Import all clips that you plan to use in your finished project to your Mac before you edit and share your finished work. 
    For help see iMovie '11: Overview: Importing video and iMovie ’11: Import Video.

  • What' s the error in this procedure

    set serveroutput on
    create or replace PROCEDURE p1
    (v_quote IN number,
    v_stock IN Number,
    v_approval OUT number)
    IS
    BEGIN
    V_approval:=v_quote + v_stock;
    dbms_output.put_line(v_approval);
    END;
    call p1(7,8);

    But your procedure has 3 arguments, not 2. You must specify all of them, the last being a variable where the result can go. Perhaps you want something like this:
    SQL> create or replace PROCEDURE p1 (v_quote IN number,
      2                                  v_stock IN Number,
      3                                  v_approval OUT number) IS
      4  BEGIN
      5     V_approval:=v_quote + v_stock;
      6  END;
      7  /
    Procedure created.
    SQL> var  approval number
    SQL> exec p1(7, 8, :approval);
    PL/SQL procedure successfully completed.
    SQL> print approval
                APPROVAL
                      15(by the way, you shouldn't double post. Especially 6 minutes apart)

  • What is the error in this code

    hi everone
    I write this code in push button
         declare
              x varchar2(222);
         begin
              x:=get_application_property(:system.mode);
              message(x);
              end;
    to know the system mode
    but the resullt was exeception ora-06502

    simple write
    x := :system.mode;
    or
    message(:system.mode);
    message(:system.mode);Best way to resolve the issue is always check Forms online help first

  • What is the error in this trigger

    create or replace trigger tt1
    after insert on EXERCISE2_T
    referencing new as new
    for each row
    declare
    v_excd EXERCISE2_T.EX_CD%type:=(CASE EX_CD
        WHEN 'X' THEN 'Extracted';
        WHEN 'F' THEN 'Failed';
        WHEN 'S' THEN 'Skipped';
        WHEN 'C' THEN 'Cancelled';
        ELSE 'no');
    begin
    insert into DWH_DEX2_RD_T(DK_EX2,
    EX2_CD,
    EX2_NM) values(:new.EX_ID,:new.EX_CD,v_excd);
    end;error
    3/30 PLS-00103: Encountered the symbol ";" when expecting one of the following:
    * & = - + < / > at else end in is mod remainder not rem when
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between || multiset member SUBMULTISET_

    create or replace trigger tt1
      after insert
      on exercise2_t
      referencing new as new
      for each row
    declare
      v_excd                        exercise2_t.ex_cd%type
        := case ex_cd
        when 'X'
          then 'Extracted'
        when 'F'
          then 'Failed'
        when 'S'
          then 'Skipped'
        when 'C'
          then 'Cancelled'
        else 'no'
      end;
    begin
      insert into dwh_dex2_rd_t
                    dk_ex2, ex2_cd, ex2_nm )
           values (
                    :new.ex_id, :new.ex_cd, v_excd );
    end;
    /In other words: the semi-columns and the case-END.

  • What is the error in this?

    SQL> declare
      2  vcount number:=0;
      3  begin
      4  select count(*) into vcount
      5  from emp;
      6  if vcount>1 then
      7  raise_application_error(-20100,'error');
      8  end if;
      9  end;
    10  /
    declare
    ERROR at line 1:
    ORA-20100: error
    ORA-06512: at line 7

    There is no error your block has executed successfully.
    Thanks,
    Karthick

  • What's the error??

    Hello All,
    Could some one tell me what is the error in this procedure?
    CREATE OR REPLACE PROCEDURE STUDENTS_COUNT AS
    TOT NUMBER;
    BEGIN
    TOT:=0;
    SELECT COUNT(*) INTO TOT FROM STUDENTS;
    CASE
    WHEN TOT = 0 THEN RAISE_APPLICATION_ERROR(-20001,'SORRY!NO STUDENTS FOUND');
    WHEN TOT >= 1 AND TOT <= 5 THEN RAISE APPLICATION ERROR(-20001,'ONLY FEW STUDENTS');
    WHEN TOT >6 THEN RAISE APPLICATION ERROR(-20001,'GOOD NO OF STUDENTS');
    END CASE;
    END ;
    Thanks
    Balaji

    Hi,
    First of all there in nothing much wrong in your procedure, Except the "When" clause should not be end up by line terminator ( i.e. ";" )
    So the correct syntax is :-
    CASE
    WHEN TOT = 0 THEN RAISE_APPLICATION_ERROR(-20001,'SORRY!NO STUDENTS FOUND')
    WHEN TOT >= 1 AND TOT <= 5 THEN RAISE APPLICATION ERROR(-20001,'ONLY FEW STUDENTS')
    WHEN TOT >6 THEN RAISE APPLICATION ERROR(-20001,'GOOD NO OF STUDENTS')
    END CASE;
    More over if you are Using Oracle 8i then oracle does not support Case Expressions in PLSQL. Even SQLs with CASE expression can not be used in PLSQL. But Oracle 9i version do support the usage of CASE Expression in PLSQL.
    Sp program your business logic which is supported by you current oracle version.
    Regards
    Ripudaman

  • I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem"

    I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem with this package.  The error code is 2324."

    Hi hongkongpom,
    Just wanted to say that after posting the problem, I had a chat with an iTunes' Tech Support, her name is Rebekah.  My problem was resolved after that.  Will list the chat history below in hopes that it may help you as well.
    Good luck!
    Samia  
    Chat Transcript
    Friday, October 4, 2013 05:55 AM
    Duration: 81 minutes 28 seconds
    Rebekah:
    Welcome to AppleCare chat support. Please give me a moment to look over your information.
    Rebekah:
    Hi, Samia! My name is Rebekah. If we get disconnected, please chat us back. http://www.apple.com/support/ipod/contactEnter the case number from the initial email we sent you. This gives the next advisor you chat with immediate access to your case history.
    Rebekah:
    Could you please confirm your serial number? I want to be sure we provide the best service possible for you, Samia!
    SAMIA:
    Sure, it's 8L8395UY2C5
    SAMIA:
    My problem is with iTunes.
    Rebekah:
    Thanks for that confirmation. Just a heads up, this is iOS Tech Support. We do support iPod touches, iPads, and iPhones, but not the iPod classic. But no worries! I can get you in touch with a phone Advisor who can get you in touch with the department that specializes in iPod classics and would be able to better assist you. Would that be OK?
    SAMIA:
    I wasn't able to install the new version of iTunes (version 11.1.1). The installation keeps failing. The they suggested the I install it manually and that failed too. I will attach the message I received.
    SAMIA:
    I don't have a problem with iPod.
    SAMIA:
    Just iTunes
    Rebekah:
    No problem! We can certainly troubleshoot iTunes as much as possible. It may come to the point that you may have to transferred, but we can do as much as possible during this chat!
    Rebekah:
    Thanks for the screenshot. It is a bit small so I am unable to fully see the message that you are receiving. What is the error message you are receiving?
    SAMIA:
    This is the message I received in case you weren't able to open the attachment: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2324."
    Rebekah:
    Thanks for that info!
    SAMIA:
    Pleasure!
    Rebekah:
    What version of Windows (XP, Vista, 7) do you have?
    SAMIA:
    Windows 7
    SAMIA:
    Windows 7 Home Premium
    Rebekah:
    Thanks for that confirmation. I do apologize for the delay, Samia. I am researching this error code now. You mentioned trying to install iTunes manually. To be sure I am on the same page, what steps did you take to do that?
    SAMIA:
    Well when the indsatalltion failed I was given instructions to select Download Only from Tools and then install manually. When I did it, I window popped up with the following items: - AppleApplicationSupport
    SAMIA:
    - AppleMobileDeviceSupport64
    SAMIA:
    - Bonjour64
    SAMIA:
    iTunes64
    SAMIA:
    SetupAdmin
    SAMIA:
    I selected Repair in all of them instead of Remove and all worked but iTunes64
    SAMIA:
    That's when I received the message that I sent you earlier.
    SAMIA:
    By the way, this is the fir st time something like this occured. I never had problems with installation before.
    Rebekah:
    I completely understand what you're saying. Since that Repair did not resolve the issue, our best option is to uninstall iTunes and its components and redownload it. To do this, we will follow the steps in this article: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Rebekah:
    First, we will want to quit iTunes and/or Apple Software Update if those are open at this time.
    SAMIA:
    Rebekah, the instructions you gave says, "For Windows XP, follow these steps to remove and reinstall iTunes and other software components for Windows XP."
    SAMIA:
    I closed all applications
    SAMIA:
    Also, my iTunes doesn't open anymore after the new failed installation.
    Rebekah:
    The section that says "For Windows XP…" is in case we opened up the wrong article, as we have the one for Windows Vista, 7, or 8. There is a link to click ("these steps") in those directions that would take us to the article for uninstalling on a Windows XP.
    Rebekah:
    So no worries! We have the right article!
    Rebekah:
    On the computer, we will want to click on Start > Control Panel. In Control Panel, we will click the "Uninstall a program" link.
    SAMIA:
    I thought so after doing a little exploration.
    SAMIA:
    done
    Rebekah:
    Alright, we'll want to select iTunes from the list of currently installed programs. Then we will click Uninstall. When asked if you would like to remove iTunes, let's click Yes.
    Rebekah:
    After the uninstallation is complete, we don't want to restart your computer if you're prompted.
    SAMIA:
    Done
    Rebekah:
    Then if you see other iTunes entries on the list, we'll want to remove them the same way.
    Rebekah:
    Then we will remove all instances of Apple Software Update the same way you removed iTunes.
    SAMIA:
    Okay, but do I have to remoce iCloud as well?
    SAMIA:
    Rebekah, I received the same error message again when uninstalling
    Rebekah:
    We actually do not need to remove iCloud. After the Apple Software Update, we will want to remove all instances of Apple Mobile Device Support
    Rebekah:
    How strange! Are you able to click past that and allow the process to continue or has it stopped it completely?
    SAMIA:
    I am unable to uninstall iTunes either
    SAMIA:
    Stopped completely
    SAMIA:
    I treied clicking Repair
    Rebekah:
    Alright, after trying the Repair option, let's see if it will allow us to continue uninstalling or not.
    SAMIA:
    I tried that but unfortunately, it isn't working. I still get that same message with error code 2324.
    Rebekah:
    This error code is not something that I am finding in my sources, Samia. So there is a chance that it is being caused with the Windows computer itself. However, I did find a link that may be able to help with uninstalling iTunes from Windows' support site: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    SAMIA:
    Rebekah, you're a genius! It worked! iTunes is no longer there. What next?
    Rebekah:
    Awesome! I'm glad that worked!
    Rebekah:
    To be sure I am on the same page, what was the last component we uninstalled?
    SAMIA:
    iTunes
    SAMIA:
    Shall I remove the Apple Application Support, Apple Mobile Device Support, and Apple Software Update
    Rebekah:
    That is correct! However, we do want to uninstall it in the order I mentioned above. So Apple Software Update first, Apple Mobile Device Support next, and then Apple Mobile Device Support.
    SAMIA:
    Got it, but is the second one to uninstall Apple Mobile Device Support OR Apple pplication Support?
    Rebekah:
    The second one is Apple Mobile Device Support.
    Rebekah:
    The Application Support will be the last component we uninstall.
    SAMIA:
    Thanks! I'm on it.
    SAMIA:
    Done! ll 3 are gone, well 4 with iTunes. Now what?
    Rebekah:
    Awesome! Also, I just noticed that I accidentally typed Apple Mobile Device Support twice, I do apologize for any confusion! Now we will remove all instances of Bonjour and then remove all instances of Apple Application Support.
    SAMIA:
    There was only 1 instance with Bonjour. I don't know what the instances are for Apple Application Support
    Rebekah:
    Yes, Bonjour is often only listed once. Is the Apple Application Support listed at all?
    SAMIA:
    No
    SAMIA:
    Since I removed it
    Rebekah:
    Oh, perfect! If it was removed, we should be set!
    Rebekah:
    We have removed iTunes and its components now! From here, our next step is to restart the computer. Then once you reboot, you can redownload iTunes from apple.com/itunes
    Rebekah:
    That should allow you to download iTunes!
    SAMIA:
    Shall I downloaad the latest vesion?
    Rebekah:
    You will want to first restart the computer as shown in the article. That will ensure that this process goes smoothly and that everything was removed correctly! Then you can try downloading iTunes again.
    SAMIA:
    Okay, thanks Rebekah!
    Rebekah:
    You're very welcome! I'm glad I could help! And of course if you have any issue after the reboot and download, you can always chat us back, as chat is open 24 hours! You will just need to give your case number and the next Advisor would have all my notes!
    SAMIA:
    Thanks again for all your help, for I couldn't have managed with out it. Have a nice day!
    Rebekah:
    You're very welcome! I know how important iTunes is and I'm glad we could get you on a path to resolution!
    Rebekah:
    I hope you have a lovely day!
    Rebekah:
    It's been a pleasure speaking with you! Thanks for chatting with us Samia. If you don't have any more questions, select End Chat from the upper left corner of the chat window.
    SAMIA:
    Will do, thanks.

Maybe you are looking for

  • Safari Crashing Constantly

    I haven't been a Mac user for long so any help anyone could give me would be appreciated. My safari keeps crashing randomly to the point that it is becoming extremely frustrating. Here is a report: Thanks! Process: Safari [683] Path: /Applications/Sa

  • Would a photo with 70MB in pixel dimensions but low resolution print clearly?

    Hi there, Here is a snapshot of the image size window: Is it true that if pixel dimension is very large in size than the resolution number under document size doesn't matter ? I really woudl appreciate your help in telling me if my photo will print c

  • External DB [SecurID.dll]: Failed to load 'aceclnt.dll'

    Hi all, ACS refuse to start, possibly after windows 2000 upgrade. The error message in the csauth log is : ADMN 05/05/2006 08:42:11 E 0360 1824 External DB [SecurID.dll]: Failed to load 'aceclnt.dll' ADMN 05/05/2006 08:42:11 E 0547 1824 AuthenLoadLib

  • Problem in Declare as a Record

    Hi, I my scenario, we need to declare the document as a record through Approval workflow. 1. We have one content approval workflow, we are triggering the workflow when the item is updated. 2. here we are change some fields, like date, metadata and ap

  • BAPI to update Employee position?

    Hi All, what is the BAPI to update an employee's job title/position. Thanks Thruna Moderator message: please (re)search yourself before asking. Edited by: Thomas Zloch on Nov 4, 2010 10:51 PM