A serious issue with excel file read in ODI

hi gurus,
Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
FullName = objArgs(I)
FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
Set objExcel = CreateObject("Excel.application")
set objExcelBook = objExcel.Workbooks.Open(FullName)
objExcel.application.visible=false
objExcel.application.displayalerts=false
objExcelBook.SaveAs FileName & "csv",23
objExcel.Application.Quit
objExcel.Quit
Set objExcel = Nothing
set objExcelBook = Nothing
Next
Now this script convert the xls file to csv with comma seprated values
e.g in excel sheet if data is ABC XYZ PQR
csv will come with ABC,XYZ,PQR
here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
but if i change 23 with 124 its not working i getting the error cannot save as...
can anyone tell me that what should be the correct code for pipe
so that the output is ABC|XYZ|PQR
AS WE CAN USE THE SCRIPTS IN TOOLS
Edited by: 789141 on Sep 14, 2010 11:33 PM

I dont have the answer for your question but i have different approach in handling multiple Excel File.
Step 1. Copy a sample source Excel File and Call it Final.xls .
Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
Step 3. Do the Reversing and Map and test the Interface . Once its done.
Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
Step 7. Increment the Loop and copy your next File for Final and run the interface
Step 8 . Finally you will be able to read all the Excel File .
Step 9 . Delete the source file [ Optional ]
Hope this helps.

Similar Messages

  • Issues with Excel files containing graphics

    I have a large excel 2013 spreadsheet containing several 3D graphs.  It is 79 pages long.  I am using Adobe Acrobat 9 on windows 7.
    When attempting to convert to PDF, once Acrobat reaches page 23 it stops working.  Pages 23-79 come out blank.
    When I look at the page preview, I can see all pages just fine.  I also have not manually inserted any page breaks within my excel document.  I've read somewhere that manual page breaks may cause Acrobat to act buggy.
    I've also attempted to converting on other computers:
    Windows 7
    Acrobat XI
    Windows 8
    Acrobat 8
    All combination of versions and systems are procuding the same result.  Possibly a memory time-out issue?  All of my computers have at least 4 gigs od RAM and 3 GHz processors.  One is 32-bit, the other two are 64-bit
    I've used the method of choosing the Adobe PDF Printer, printing within Excel and Printing Directly from Adobe Acrobat Distiller... all attempts have failed.

    >Ever since I upgraded my OS to Mavericks
    Adobe/Jive have a BAD title for the SEARCH THIS FORUM function
    Go to http://forums.adobe.com/community/premiere and, in the area just under Ask a Question, type in
    maverick
    or
    mavericks
    You may now read previous discussions on this subject... be sure to click the See More Results at the bottom of the initial, short list if the initial list does not answer your question

  • I am having some serious issues with firefox, i can't print anything because it is stuck on fax and I can't use any of the drop down menus on any site

    I am having some serious issues with firefox to the point of choosing another search engine. I can't print anything because it is stuck on fax and won't let me change it to my printer when i do try to select my printer it jumps right back to fax. The drop down menus do not work on any of the sites I go to. For example when purchasing clothes and you have to choose a size from a drop down menu I can't do it when I click on the drop down menu it doesn't work at all. I don't have a virus I ran my virus protector and no viruses are present. I don't have any suspicious issues going on with my computer so there has to be something in Firefox that is causing my issues. I tried internet explorer and I don't have any issues there. I hope you can help me because I love Firefox and would really like to continue to use it.

    Lots of issues there, main one getting fcpx going again, try deleting the preferences using the utility deveoped by these guys.
    http://www.digitalrebellion.com
    Try deleting your render files and re-rendering the project.
    Start with these and let us know how you go.
    Tony

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • Forms6i interface with Excel file

    I want to interface forms6i with excel file.
    Through Forms 6i read data from an excel file and load to oracle tables.

    Hi
    I'd agree that probably the best approach is to save the Excel file into a delimited file (maybe a comma-separated file) and read it in from there.
    Reading a file using TEXT_IO is fine as long as the table isn't very large. Anything beyond a few hundred records, I'd strongly suggest using SQLLoader, as it is massively quicker and you don't have to go to the trouble of writing a routine to parse the line you've read in to split it up into its constituent fields.
    If you do go down the route of reading lines in using TEXT_IO, you might find a routine like this useful:
    PROCEDURE Get_Next_Field (record_in        IN     VARCHAR2,
                              current_position IN OUT NUMBER,
                              next_field       OUT    VARCHAR2,
                              separator        IN     VARCHAR2) IS
    current_letter VARCHAR2(1);
    BEGIN
        LOOP
            current_letter := SUBSTR(record_in, current_position, 1);
            current_position := current_position + 1;        
            IF  current_letter <> separator THEN
                   next_field := next_field || current_letter;
            ELSE
                   EXIT;
            END IF;
        END LOOP;
        --Trim off any enclosing characters
        next_field := LTRIM(next_field, '"');
        next_field := RTRIM(next_field, '"');
    END;You can then call this procedure with a series of calls like this to get your values out of the line of text:
    Get_Next_Field(line_in, current_position, field1, :separator);
    Get_Next_Field(line_in, current_position, field2, :separator);(...where line_in is the line you've just read from your file, current_position is a number to show where you've got to in the line, field1 is the variable to hold the value you split out of the line and :separator is just that, maybe a comma character.)
    Hope this helps
    regards
    Andrew
    UK

  • Issue with corrupted file when dragging to timeline

    Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline.  I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
    I had not problem with camtasia Mp4s previously and today I have had so many issues with premier pro

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • Issues with RAW files from my 7D

    I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
    Any words of advice, other than just buy Aperture 3??

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Serious issue with Mac OS X 10.6.4 and wireless networking

    Hello there, I'm having a serious issue with my TP-Link WP-8910G wireless router and Mac OS X 10.6.4 .
    Problems began some days ago. In short, after a certain period of time, my router drops the wireless connection out and, when I try to re-establish it, if a very short period of time has passed after disconnection Airport detects the wireless network and returns "connection timeout". If I wait more, no wireless connection is detected, and I have to reset the router and re-connect Airport. This is very annoying.
    How can I solve this issue?

    Have you verified that the router is not the problem?

  • Sharpening issues with RAW files

    Hi,
    I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
    Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
    I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
    I'd be greatful if anyone has any input on this!
    Thanks in advance

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • HELP: SERIOUS ISSUES WITH BILLING

    I have had serious issues with BT since joining their service. Without getting into the issues we had with the BT homehub and other things at the start of the contract with them here is what's been happening. 
    When we joined BT we explained that we wanted a monthly direct debit. Sounds simple enough but apparently not. 
    I have phoned over 6 times in the last year to change this. It has still not happened. Several times we were told that on the system it said monthly for it to be then taken out quarterly. In July while we were away this happened again. Only as we assumed that as they had informed us it would definitely be on monthly direct debit that it was the money for the whole of the quarter was not there. So when they took the money for a quarterly bill again. We were charged. It has set back other bills as the money had been eaten up by charges for this. As you can imagine we were quite annoyed. This was not our fault and we felt that BT were not capable of holding our account details without taking money they we repeatedly requested not to. I admit we should have kept a closer eye on our bills account but you don't think that a company will repeatedly do this to you. 
    After phone calls it emerged that they would not say more than a 'sorry' about this. 
    The saga then continued. I cancelled the quarterly direct debit at the back and have asked BT to send me monthly paper bills. Then last month our phone and internet was cut off. 
    We rang up and suggested that due to the mix up could they add the money we owed to our monthly bills and we'd pay this off on top of the monthly bill. Despite that the reason we owe this at all is not through any fault of our own but through theirs. The money would have been available had they taken it as repeatedly requested.
    We were on the phone for 1hr and 10 mins ( 21st September) to three different people. No, they said  must be paid in 10 day. My partner only managed to get money off this in about an hour - the point being we were happy to pay the whole amount over a year and were not allowed. We asked to speak to a manager after 1hr and 10 and were put back to the start of the queue. 16 minutes later the man we spoke to said a manager named Samantha would call us back. No-one did. 
    On the 22nd of september a rather annoyed me called back and repeatedly requested a manager - sadi would be put though. After 17 minutes the phone went dead. 
    Called later on same thing phone went dead after requesting a manager at 10 minutes.
    Later on called for 28 minutes and told the call centre the issue £20 deducted from amount but said it had to be paid in ten days and a  bill would be sent. Was told that the internet would be reconnected that day. 
    23rd September was hung up on after thre minutes on requesting why the internet had not been connected.
    Phoned later. The man that I spoke to said that no action had been put through to reconnect the internet. He would do it and it would be through by 5pm.
    My partner phoned at 8pm when the internet still had not been reconnected. It was done the next day. 
    Today BT phoned to ask if I had the bill ( Not sent) and tell me that the line will be disconnected by the end of the day. i explained that we were in the middle of complaints procedures with them. She looked on the system and said that there were no notes on the account. I asked for a manager and then asked for this managers superior. She put me through to someone that when questioned was not her superior and half way through my explanation of this....you guessed it..... the line went dead. 
    I am so annoyed that we've been fine with bill paying and as of their mistake we're now in debt to them and feel like we can't sort it out as there is not anyone who will listen or help. Has anyone had similar probelms or does anyone have a number for their English call centre?
    Jess

    hi Jess,
    I am really sorry that you have had so much trouble trying to get this sorted out.  I'll get this straightened out.
    Could you drop me in an email please to the address in my profile with your BT account and telephone number along with a link back to this thread.
    Cheers
    Craig 
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Email attachment problems with "excel" files.

    I have just upgraded to the iphone 4 from the 3gs and since doing so any emails I receive with excel files attached will not open the attachment? These files openened with no problem on the same email account on my 3gs.
    Instead when I download the attachment and go to open it I am met with a page displaying....
    "Unable to read document.
    An error occured while reading the document."
    Has anyone else having this problem or even better anyone know what the fix is to get these files showing up?
    Any help would be appreciated,
    Kris

    After much frustration about excel files not opening and repeatedly not getting answers from apple, I think I might have found another way. It seems that the new apple OS does not support older versions of excel. By saving the excel file in question (Save As) to "Microsoft Excel 2007 Workbook" the Workbook opens just fine as an E-mail attachment. If you have macro's you can save as "Microsoft Excel 2007 Workbook (Macro Enabled)" and it works also.
    The Workbook in question as far as I was concerned was created in Microsoft Excel 2003.
    Hope this helps
    Apple needs to get on the ball. This was almost a dealbreaker with me.
    Android is looking better and better every day.

  • Serious issues with Mail

    Mail crashes the moment i click on it. Anyone got any ideas as to why this happens?

    mine does the same, the moment i open open up mail the pinwheel won't stop spinning, and i tried the utility disk repair but still the pinwheel spins upon starting the program-- any luck to fix this serious issue with Mail? thank you.

  • Serious issues with Timer when RunTimeExceptions are thrown in TimerTask

    Hi All,
    I am facing serious issues with Timer and TimerTask.
    Runtime exceptions thrown in TimerTask kill that one thread, thus making Timer dead i.e. scheduled tasks will not run anymore. Is there any way we can overcome this with Timer or it is just not possible?
    I used try, catch blocks in TimerTask for RunTimeExceptions but no luck. Timer is not running any more once TimerTask throws any exceptions. Why it is not able to catch them? Is this known issue with Timer?
    I am using Java 1.5.0_08.
    Any guidance is appreciated.
    Thanks in advance,

    sairamvla wrote:
    Runtime exceptions thrown in TimerTask kill that one thread, thus making Timer dead i.e. scheduled tasks will not run anymore. Is there any way we can overcome this with Timer or it is just not possible?Not possible (at least, not possible just by using a Timer).
    I used try, catch blocks in TimerTask for RunTimeExceptions but no luck. Timer is not running any more once TimerTask throws any exceptions. Why it is not able to catch them? Is this known issue with Timer?It's perfectly possible for you to catch a RuntimeException, in a TimerTask or anywhere else. If you were thinking that there is a language feature or something which makes catching exceptions work differently in a TimerTask, you weren't thinking right. Your code is just wrong.

Maybe you are looking for

  • "Kernel panic - not syncing: Attempted to kill init!" on shutdown

    For several years now, I've been happily using Arch. I'm quite a seasoned user. I've solved countless errors and problems with my systems on 3 different machines, but I don't know how to fix this one. I've searched the forum and asked google -- got n

  • HT1918 Is it possible to have 2 Apple ID account in 1 Itunes in 1 computer?

    Is it possible to make 2 apple ID account in one Itunes and one computer?

  • How can deaf people contact Apple support?!?

    I keep trying to get some answers about my Black Friday order of an IPAD2 and accessories.  The only options I see are to call customer support, via phone. I am deaf and absolutely cannot hear on the phone, so that's out.  I finally found a live chat

  • Control chart limit calculation not being done

    Hi I have maintained MIC, sampling procedure and Insp plan for a char and have made two lots with them. Though charts are being displayed correctly, control limit calculation is not being possible. Msg is "Control limits for track 1 could not be calc

  • HCM Form Error messages

    Hi, I need a solution on the Adobe form error messages, here the requirement is to throw the error message, if the employee belongs to employee group=3. This error message need to show when the form opens (After Form selected in the process step) . T