UDF for Replace first 4 char

Hi Friends,
Can anyone please provide me UDF for following Condition
my input is 123456 or 1234567.i need read first 4 char and replace it by sw..the output should be sw56 or sw567
Thanks in adv.
Reg,
dinesh
Edited by: Dineshbabu.M on Feb 18, 2011 2:20 PM

Hi,
This simple UDF will do what you want:
The UDF takes a single String array as input, say s[ ] and it has a single ResultList item result as output.
The complete code is as follows:
s[0]="sw"+s[0].substring(4,s[0].length());
result.addValue(s[0]);
Pass the output of the UDF to the required target field. That's it.
HOPE IT HELPS YOU BUDDY!!!
THANKS
BISWAJIT
Edited by: 007biswa on Feb 18, 2011 7:04 PM

Similar Messages

  • UDF for replacing special or junk characters

    Hi
    Is there any stanard function for replacing any junk characters with zero? If not, I needed UDF for fulfilling this requirement.
    My requirment is .... Am sending some files to r/3 using XI. In the source(txt file) some time some fields have some junk characters. I must make it to zero, the field which has junk. How can I acheive it? is there any UDF using which I can fulfill my requiremnt.
    Thanks.

    Hi,
    Use this UDF
    Here a is the input value.
    String b = "";
    b = a.replaceAll(",", "0");
    b = a.replaceAll("@", "0");
    Like all the special characters you can take and replace with zero.
    return b;
    Or
    Use the regular expression to check whether special characters occurs in the string then replace with zero
    http://www.j2ee.me/developer/technicalArticles/releases/1.4regex/
    Regards
    Ramesh.

  • I just purchased the Mac Mini Server with the intention of replacing Lion Server with Lion for the first hard drive while installing Windows 7 thru Bootcamp on the second hard drive. Is it possible for me to do this? Thanks.

    I just purchased the Mac Mini Server with the intention of replacing Lion Server with Lion for the first hard drive while installing Windows 7 thru Bootcamp on the second hard drive. Is it possible for me to do this? Thanks.

    I would use Parallels or VMWare and use the second drive to hold the virtual machine. That way the VM only uses the space that it needs and you can still use the remainder of the drive for other things, not to mention that you would not need to reboot to run windows.
    Also Time Machine does not back up a boot camp partition.

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • Setting up a Time Capsule for the first time and replacing it with an existing Router

    Hey there,
    I have got a new TC which I will be setting it up for the first time. I have a very old beetle router. I would be using the TC as a wireless hard drive and also as my WiFi Router. After reading the setup guide, I am confused about which option to choose. Moreover, available references on the internet do not provide any clear-cut solution.
    My basic aim is to replace my router with the TC and use its in-built WiFi hardware. Since I have an EPSON printer which is connected to my router wirelessly, I am not willing to change its settings. Please guide me which option to choose regarding the same.
    Thanks in advance

    Since you have a modem/router, you must continue to use the Beetel modem/router on your network.
    The Time Capsule can connect to the Beetel modem/router using a wired Ethernet cable connection and produce a separate wireless network.  You would NOT want the Beetel router and Time Capsule to both try to produce the same wireless network if they are located close together, since this will likely create interference problems that may prevent devices from connecting to either the Beetel orTime Capsule wireless network.
    The exception to having the Beetel modem/router and Time Capsule produce the same wireless network would be if you can locate the Time Capsule at least a room or two away from the Beetel modem/router.  An Ethernet cable can be run up to 300+ feet or about 100 meters with no signal loss, so you should be able to locate the Time Capsule anywhere you want.
    Are you able to consider this option?
    Another option.....if you cannot locate the Time Capsule in another room......would be to configure the Time Capsule to use the same wireless network name and password as the Beetel network and turn off the wireless on Bettel modem/router.
    Important.....there is no guarantee that the printer will be able to connect to the Time Capsule wireless network, so you should expect to start over and set up the printer again.
    Yet another option would be to turn off the wireless service on the Time Capsule and use the Beetel wireless to back up your computers to the Time Capsule, which will act as a wired hard drive for the network. If you select this option, the Time Capsule can be located close to the Beetel modem/router.

  • I'm modifying someone else's website for the first time (noob = yes).  I only have ftp access to the site server.  Before uploading changes, is there a easy/quick/recommended/etc way to make a copy of the files I'm about to replace?

    Great, first post, sorry for the title.  But to repeat it:
    I'm modifying someone else's website for the first time (noob = yes).  I only have ftp access to the site server.  Before uploading changes, is there a easy/quick/recommended/etc way to make a copy of the files I'm about to replace?

    You can use the Dreamweaver FTP (or a different FTP client) to completely copy the original website to your development computer, then, before making changes, you can copy the whole thing to a directory called something like "website original"
    If you want to run both the old and new sites on the remote server, this is often possible. Add a folder/directory to the server and call it something like "new" and upload the new files there until you are ready to replace the old site
    All of this you can do with FTP

  • HT1349 I recently bought an iPhone and my charger is not working. It worked for the first time but now it is now it is not working. Can i get it replaced in India because i bought this phone from US?

    I recently bought an iPhone and my charger is not working. It worked for the first time but now it is now it is not working. Can i get it replaced in India because i bought this phone from US?

    The warranty is only good in the U.S.
    You woulod have to send it to someone in the U.S.  They could take it in and if it is defective, then it would be replaced.

  • What is the best hard drive replacement for a first generation mac mini 1.25 mhz 40gb hard drive 1gb ram year 2005

    What is the best hard drive replacement for a first generation mac mini 1.25  40 gb hard drive 1 gb ram year 2005?

    You posted this same question 24 hours ago, which has a reply.  Did you have questions on that answer or did you want further discussion? You could reply to that thread, there's no need to start a new thread.

  • After syncing a replacement iPad for the first time, my apps have a "waiting " on the screen I can access them but not on opening screen

    After syncing a replacement iPad for the first time, my apps now have a"waiting" message . I can still access from settings but not on the opening app page

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
    You may need to delete the game app and redownload (you won't be charged).
     Cheers, Tom

  • Help: I want to auto schedule a load using file watcher but it runs only once for the first time and after that it is not running at all

    Hi All,
    I am trying  to execute the below code as provided from one of the blogs. i am able to run the job only once based on a file watcher object(i.e. for very first time) and after that the job is not running at all and if  i schedule the job to run automatically based on interval of 10 or more minutes it is executing properly). Please let me know or guide me if i have missed any step or configuration.that is needed.
    Version of Oracle 11.2.0.1.0
    OS : Windows 7 Prof
    Given all the necessary privileges
    BEGIN
      DBMS_SCHEDULER.CREATE_CREDENTIAL(
         credential_name => 'cred',
         username        => 'XXXX',
         password        => 'XXXX');
    END;
    CREATE TABLE ZZZZ (WHEN timestamp, file_name varchar2(100),
       file_size number, processed char(1));
    CREATE OR REPLACE PROCEDURE YYYY
      (payload IN sys.scheduler_filewatcher_result) AS
    BEGIN
      INSERT INTO ZZZZ VALUES
         (payload.file_timestamp,
          payload.directory_path || '/' || payload.actual_file_name,
          payload.file_size,
          'N');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_PROGRAM(
        program_name        => 'prog1',
        program_type        => 'stored_procedure',
        program_action      => 'YYYY',
        number_of_arguments => 1,
        enabled             => FALSE);
      DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
        program_name        => 'prog1',
        metadata_attribute  => 'event_message',
        argument_position   => 1);
      DBMS_SCHEDULER.ENABLE('prog1');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_FILE_WATCHER(
        file_watcher_name => 'file_watcher1',
        directory_path    => 'D:\AAAA',
        file_name         => '*.txt',
        credential_name   => 'cred',
        destination       => NULL,
        enabled           => FALSE);
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_JOB(
        job_name        => 'job1',
        program_name    => 'prog1',
        queue_spec      => 'file_watcher1',
        auto_drop       => FALSE,
        enabled         => FALSE);
      DBMS_SCHEDULER.SET_ATTRIBUTE('job1','PARALLEL_INSTANCES',TRUE);
    END;
    EXEC DBMS_SCHEDULER.ENABLE('file_watcher1,job1');
    Regards,
    kumar.

    Please post a copy and paste of a complete run of a test case, similar to what I have shown below.
    SCOTT@orcl12c> SELECT banner FROM v$version
      2  /
    BANNER
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    PL/SQL Release 12.1.0.1.0 - Production
    CORE    12.1.0.1.0    Production
    TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
    NLSRTL Version 12.1.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl12c> CONN / AS SYSDBA
    Connected.
    SYS@orcl12c> -- set file watcher interval to one minute:
    SYS@orcl12c> BEGIN
      2    DBMS_SCHEDULER.SET_ATTRIBUTE
      3       ('file_watcher_schedule',
      4        'repeat_interval',
      5        'freq=minutely; interval=1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@orcl12c> CONNECT scott/tiger
    Connected.
    SCOTT@orcl12c> BEGIN
      2    -- create credential using operating system user and password (fill in your own):
      3    DBMS_SCHEDULER.CREATE_CREDENTIAL
      4       (credential_name     => 'cred',
      5        username          => '...',
      6        password          => '...');
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- create table to insert results into:
    SCOTT@orcl12c> CREATE TABLE ZZZZ
      2    (WHEN      timestamp,
      3      file_name varchar2(100),
      4      file_size number,
      5      processed char(1))
      6  /
    Table created.
    SCOTT@orcl12c> -- create procedure to insert results:
    SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE YYYY
      2    (payload IN sys.scheduler_filewatcher_result)
      3  AS
      4  BEGIN
      5    INSERT INTO ZZZZ VALUES
      6        (payload.file_timestamp,
      7         payload.directory_path || '/' || payload.actual_file_name,
      8         payload.file_size,
      9         'N');
    10  END;
    11  /
    Procedure created.
    SCOTT@orcl12c> -- create program, define metadata, and enable:
    SCOTT@orcl12c> BEGIN
      2    DBMS_SCHEDULER.CREATE_PROGRAM
      3       (program_name          => 'prog1',
      4        program_type          => 'stored_procedure',
      5        program_action      => 'YYYY',
      6        number_of_arguments => 1,
      7        enabled          => FALSE);
      8    DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
      9       program_name         => 'prog1',
    10       metadata_attribute  => 'event_message',
    11       argument_position   => 1);
    12    DBMS_SCHEDULER.ENABLE ('prog1');
    13  END;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create file watcher:
      3    DBMS_SCHEDULER.CREATE_FILE_WATCHER
      4       (file_watcher_name   => 'file_watcher1',
      5        directory_path      => 'c:\my_oracle_files',
      6        file_name          => 'f*.txt',
      7        credential_name     => 'cred',
      8        destination          => NULL,
      9        enabled          => FALSE);
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create job:
      3    DBMS_SCHEDULER.CREATE_JOB
      4       (job_name          => 'job1',
      5        program_name          => 'prog1',
      6        queue_spec          => 'file_watcher1',
      7        auto_drop          => FALSE,
      8        enabled          => FALSE);
      9    -- set attributes:
    10    DBMS_SCHEDULER.SET_ATTRIBUTE ('job1', 'PARALLEL_INSTANCES', TRUE);
    11  END;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- enable:
    SCOTT@orcl12c> EXEC DBMS_SCHEDULER.enable ('file_watcher1, job1');
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- write file (file must not exist previously):
    SCOTT@orcl12c> CREATE OR REPLACE DIRECTORY upncommon_dir AS 'c:\my_oracle_files'
      2  /
    Directory created.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file1.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    1 row selected.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file2.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    22-OCT-13 10.14.08.580000 PM
    c:\my_oracle_files/file2.txt
            57 N
    2 rows selected.

  • Query to Lookup Ship To in a UDF for the Inventory Transfer

    Good Day Experts!
    I created a UDF for the Ship To Code in the Inventory Transfer Window.  The problem is I do not know how to create a query to be used in the Formatted Search for this UDF wherein it will lookup all the Ship To Codes in the table CRD1 of that particular  Customer selected in the Inventory Transfer window.  The objective is to choose a Ship to code just like in the sales document.
    My next problem would be how to display automatically the whole Ship To Address in another UDF based on the Ship To Code chosen in the UDF Ship To Code.
    Your inputs would be highly appreciated.
    Regards,
    Jen

    To get the Complete ShipTO Address, use the following Code
    SELECT T0.cardname+CHAR(13)+isnull(T0.Address,'')+CHAR(13)+
    cast(T0.Building as varchar(100))+CHAR(13)+isnull(T0.city,'')+CHAR(13)
    +isnull(T0.zipcode,'') as Address FROM CRD1 T0
    WHERE T0.CardCode =$[OWTR.CardCode] and  T0.cardtype='S' and
    T0.Address=$[OWTR.UDF1]
    Here Replace UDF1 with the Name of the UDF in which Shipto Address Names are shown as per my previous post.
    Hope you understand

  • Help in using listagg function for more than 8000 char.

    Hi Friends,
    Need you urgent help in using listagg function for more than 8000 char.
    I did the below sample SQL and in "e_orig" and "d_orig" for upto 4000 char it is working fine but I have to use it for more than 8000 char. and it is giving error,
    I checked the listagg function is having limitation of 4000 char.
    I tried but I am unable to achive this. Can someone provide me a sample example to achive this
    select d.dname,d.loc,e.hiredate
    ,listagg(e.ename,',' ) within group (order by e.deptno) over (partition by e.deptno) as e_orig
    ,listagg(e.ename, ',') within group (order by e.sal) over (partition by e.deptno) as d_orig
    from emp e, dept d
    where e.deptno=d.deptno;[ This is my first post, I gone through the guideline for posting a post , and try to go according to that ( I have not pasted here create table and insert as I have used basic table emp, dept for example), please let me know if still I should give this, I will take care from my next post ]
    Thanks in advance

    Interesting, I didn't know you could do that, but...
    BluShadow wrote:
    You could write some PL/SQL code that does it all for you, but that would involve loops and would be slow.Well, objects are written in PL/SQL aren't they? And presumably there'll be implicit looping too? So it's not at all obvious that this method will be faster than doing the joining in PL/SQL in memory. The only way to find out is to benchmark them - so I have done that.
    I noticed that OP's ref cursor actually only ever retrieves a single record for a bound department number, so I decided the best thing would be to test using a procedure that passes an output string back. I selected all (109) employees and put spaces in to ensure above 4000 characters. I also noticed that as he is using PL/SQL he probably can use a VARCHAR2 type, but just not ListAgg in the query, so I wrote short procedures as follows:
    SimpleAggChr     - bulk collect and array processing, VARCHAR2 output
    ClobAggPrc     - the custom aggregation method, CLOB output
    SimpleAggClob     - bulk collect and array processing, CLOB output
    I then wrote a driving script that calls them in the order above and times each call (I like benchmarking so I have my own timing object to make it easy). I then print the lengths for checking, and my object writes the timings to my output table. Running a few times I got varying results, but generally it looks like there isn't a lot to choose between them for performance.
    Here's the procedure code:
    CREATE OR REPLACE TYPE char100_list_type AS TABLE OF VARCHAR2(100)
    CREATE OR REPLACE PROCEDURE SimpleAggChr (x_out OUT VARCHAR2) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggChr;
    CREATE OR REPLACE PROCEDURE SimpleAggClob (x_out OUT CLOB) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggClob;
    SHO ERR
    PROMPT ClobAggPrc
    CREATE OR REPLACE PROCEDURE ClobAggPrc (x_out OUT CLOB) IS
    BEGIN
      SELECT clobagg(first_name || '                                        ' || last_name || ',')
        INTO x_out
        FROM employees
       ORDER BY salary;
    END ClobAggPrc;
    SHO ERRand the driving script:
    SET SERVEROUTPUT ON
    SET TIMING ON
    DECLARE
      l_enames_c1     CLOB;
      l_enames_c2     CLOB;
      l_enames_v     VARCHAR2(32767);
      l_timer     timer_set_type := timer_set_type ('Aggregation');
    BEGIN
      Utils.g_id := 'Aggregation';
      SimpleAggChr (l_enames_v);
      l_timer.Increment_Time ('SimpleAggChr');
      ClobAggPrc (l_enames_c1);
      l_timer.Increment_Time ('ClobAggPrc');
      SimpleAggClob (l_enames_c2);
      l_timer.Increment_Time ('SimpleAggClob');
      DBMS_Output.Put_Line ('SimpleAggChr returned string of length ' || Length (l_enames_v));
      DBMS_Output.Put_Line ('ClobAggPrc returned string of length ' || Length (l_enames_c1));
      DBMS_Output.Put_Line ('SimpleAggClob returned string of length ' || Length (l_enames_c2));
      l_timer.Write_Times;
    END;
    SET TIMING OFF
    SET LINES 150
    SET PAGES 1000
    COLUMN id FORMAT A30
    COLUMN line_text FORMAT A120
    SELECT line_text
      FROM output_log
    WHERE id = 'Aggregation'
    ORDER BY line_ind
    /and the results:
    SimpleAggChr returned string of length 5779
    ClobAggPrc returned string of length 5779
    SimpleAggClob returned string of length 5779
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:27.05
    LINE_TEXT
    Timer Set: Aggregation, constructed at 03 Nov 2011 16:27:07, written at 16:27:35
    ================================================================================
    [Timer timed: Elapsed (per call): 0.02 (0.000016), CPU (per call): 0.01 (0.000010), calls: 1000, '***' denotes corrected
    line below]
    Timer              Elapsed          CPU          Calls        Ela/Call        CPU/Call
    SimpleAggChr          9.84         0.36              1         9.84400         0.36000
    ClobAggPrc            9.37         0.32              1         9.37400         0.32000
    SimpleAggClob         8.25         0.22              1         8.25000         0.22000
    (Other)               0.00         0.00              1         0.00000         0.00000
    Total                27.47         0.90              4         6.86700         0.22500
    13 rows selected.

  • I got a new laptop and downloaded iTunes, when I put new music on it for the first time, my entire music library disappeared, leaving me with only newly downloaded music in my library. My iPod still has all my old music.

    Recently, I bought a new laptop (a Lenovo), so I downloaded iTunes to it. When I bought new music from iTunes for the first time on the new computer, I went to my music library and there was no music, except for the new songs I had just bought. I have no idea what happened, I've had hundreds of songs I've bought from iTunes or downloaded from bought CDs over the years, which are all still on my iPod (nano, from 2008), and suddenly they just didn't seem to exist. I have yet to access the iTunes account on my previous laptop to see if my music is still there, but I would assume yes. When I went to sync my iPod to my iTunes to at least get the new songs to the iPod (so that my complete library can be on at least one device), I realized that in order to sync my iPod to my iTunes, I would be deleting all my old music and replacing it with the new. So now, I only have a few new songs on my laptop's iTunes, and only my old songs on my iPod. In both cases I paid for all the music, so I don't want to just delete any of it. Is there any way to fix this?

    Also-I tried to use my backup hard drive, but I wasn't able to drag/transfer/send/move any of my muic files onto my iTouch when the iTouch was connected to my computer.  I can't figure out why it won't let me do that. 
    The only thing I can see when I open my iTouch on my computer is my file with photos.  I can't see videos, music, or anything else.  What's going on?

  • Time Machine: Repeated errors when backing up for the first time using a new external firewire drive

    My Iomega 500GB firewire external drive failed on me last week and I have just replaced it with an identical model. I used to use the old drive with Time Machine on my MacBook Pro running 10.5.8 with no issues, until the drive had a hardware failure and stopped spinning up, hence the replacement.
    Two days ago I tried using Time Machine for the first time with the replacement external drive. The backup failed and each subsequent backup attempt has failed since then with a different error each time. The drive cannot be ejected using Finder (Finder says disk is in use and cannot be ejected even when no processes are running except for Finder and Time Machine has been disabled), by dragging it to the dock (hangs computer which can only be fixed by a hard reboot), in Disk Utilities (drive cannot be unmounted) or in Terminal ("no such file or directory").
    The first backup attempt failed after 3 hours of "preparing" with the message "The backup was not performed because an error occured while creating backup directory".
    I tried repairing the disk in Disk Utilities and Disk Utilities said the drive was OK ("the volume Time Machine Backups appears to be OK"). I tried ejecting the drive (hard reboot of computer and disconnecting the drive), plugging it back in again and trying again.
    This time it started backing up, then failed after a few minutes with the message "an error occured while copying files to the backup volume". I had a look at the troubleshooting suggested on http://web.me.com/pondini/Time_Machine/C3.html and followed instructions. It failed again, so I did a full reset as per http://web.me.com/pondini/Time_Machine/A4.html.
    It failed again, so I tried reparing the drive again in Disk Utilities and again it said it was OK. I tried using different cables and ports (Firewire 400 instead of Firewire 800), and backups still fail.
    I have turned off anti-virus scanning (Sophos). I have tried excluding it from Spotlight but this causes an error message from Spotlight. I have tried trashing the com.apple.TimeMachine.plist file and rebooting. I have tried selecting deselecting the drive as the back up in Time Machine preferences, selecting "None", then "Stop Backing Up" then quitting preferences, rebooting, disconnecting the drive, reconnecting the drive and selecting the drive again as the backup disk in Time Machine preferences. I have tried erasing the drive completely, rebooting, and trying to back up again.
    None of these have worked. This is a brand new drive and I do not want to have to replace it again if I do not have to.
    Does anyone have any suggestions? Thank you.

    Hello, some possible clues...
    Should you click “Start New Backup”? Not yet! If you see the dialog above, your existing Time Machine backup is corrupt, and you might not be able to recover data from it. But you can save a copy of the corrupt bundle and, perhaps, extract some data from it if needed.
    Ask yourself if Time Machine has saved data you might need before deciding what to do next:
    If you are sure you won’t need anything backed up before today, click “Start New Backup” and let Time Machine do its thing.
    Otherwise, click “Back Up Later” and save a copy before letting Time Machine start a new backup. Just look for a file called “computername.sparsebundle” (for network backups) or “Backups.backupdb” (for local ones) and create a copy with a different name. You can open sparsebundle files with DiskImageMounter and browse them like any other disk. More information is available here.
    There you go. If you click “Start New Backup” when you see this dialog box, Time Machine will erase all of your old backup data and start a new bundle. It won’t be corrupt, but it will be empty.
    Note that you can manually initiate a Time Machine backup integrity check by option-clicking the “Time Machine” icon in the menu bar and selecting “Verify Backups.”
    http://blog.fosketts.net/2010/08/11/time-machine-completed-verification-backups- improve-reliability-time-machine-create-backup/
    According to This Time Machine resource   “This appears only on Snow Leopard, and started with the Time Capsule Backup Update 1.0 in mid-May of 2010.  It also seems to have been included in the 10.6.3 v1.1 update and 10.6.4.”
    So, what can you do about it?  Grin and bear it, it seems, until Apple fixes it.
    One thing you can do to make the backup take less time is to connect your machine to your Time Capsule or other backup drive via Ethernet for the duration of the initial backup.
    http://www.theinternetpatrol.com/the-dreaded-time-machine-has-completed-a-verifi cation-of-your-backups-to-improve-reliability-time-machine-must-create-a-new-ba c kup-for-you-message-and-why-you-are-seeing-it/
    Time Machine: About "Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you."...
    http://support.apple.com/kb/HT4076
    Or a different/better solution in my experiences...
    Get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Or the most expensive one & my favorite, Tri-Backup...
    http://www.tri-edre.com/english/products/tribackup.html

  • Using time machine for the first time in a while

    Hi all,
    I just tried backing up my laptop for the first time in ages with time machine. However , it seems to get stuck on "preparing the back up" and never actually starts the backup.
    The external drive I'm  using has been used before for backups,and the icon is the bluey colour it should be on my desktop as the back up location, however the back up simply won't start.
    I should mention that I have upgraded this laptop to another newer model which I since returned and went back to this older model. I also replaced the hard drive, and this is the first time im trying a time machine backup since those two changes
    Not many options I can play with so I can't see why it doesn't start the back up...it never took a longtime before to start...
    Could it be anything to do with space? Now the comp has about 490gb needing back up and there's only 100gb of space on the ext hd,because there's about 400gb of previous back ups on there. I didn't think this would be a problem though as I understood time machine just erases old backups when it doesn't have space
    Any suggestions welcome! Thx in advance!
    Both laptop capacity and ext hd are 500gb

    Couple of clarifying questions:
    1) How long are you waiting?
    2) Have you upgraded the OS to Lion?
    When I upgraded from Snow Leopard to Lion, the first few time machines took hours 'preparing to backup' before the actual backup to occur. We're talking 6+ hours. I'd usually leave it over night to backup. Even my last fresh reinstall of Lion took about 20min to prepare the first time. Now the hourly backups take maybe 1min total.
    My suggestion is to leave it over night and see what happens. It very well could be that the differences between your last backup and current machine state is so different it's taking a long time to determine all the changes.

Maybe you are looking for

  • Stream SD version of HD purchases on iPad/iPod

    My family owns an iPod Touch 5, iPad Mini, and an iPad 3.  We have a 12GB/month data-only wifi hotspot plan with Sprint.  My two daughters are often watching videos on the iDevices while we're on longer car trips or out running errands and such.  My

  • Website links won't open from iMessage?

    HI guys, if I get sent a website address in iMessage usually I'm able to click on the link and it will open in Safari but it doesn't seem to respond at all? I've tried resetting general and iMessage settings too Any ideas?

  • Error submitting a podcast

    I have tried to submit a podcast to itunes and straight away it was rejected the email said "An error was encountered while trying to add your feed, [ http://motorhomehq.co.uk/index.php/feed/podcast/ ]". I submitted the URL to feed validator and rece

  • "SEARCH FOR" feature

    We have a 27'' iMac OS X. We store all files on a Seagate FreeAgent Drive.  The other day as I was cleaning out files I saw in the SEARCH FOR feature found on left side in window when Harddrive icon is double clicked, files, and files dated from begi

  • Deadlock with blocking bounded queues

    Say, a class (with plenty of instances) has two blocking bounded queue - Q1 and Q2, and methods m1 : takes from Q1 m2 : puts to Q2 m3 : puts to Q1 m4 : takes from Q2 m3 and m4 are executed independantly in fixed threads pool. m1 and m2 are executed i