Dataload using Concat, Replace funtions errored

Hi John,
I was trying to load data into Essbase using a text file as source, Sunopsis as staging and Essbase as Target.
My Text file has double quotes(") in one of the column. For this i have used Replace(Data,'"',null) expression.
One more column has to concatenated with AC_. but i encountered the following error
org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 20, in ?
java.sql.SQLException: Unexpected token: 1 in statement [select   CONCAT('AC_',C3_NAT_ACC)    "Account",Dec    "Period",Future 1]
Please let me know how can i use these functions in this scenario.
Thanks,
Sravan Ganti

Hi John,
I also need to Concat 2 more columns in the same file. I have written the load rule and also executed it though EAS and the data got loaded.
Now i want to run the same thinng from ODI. So do i need to do the mapping. If yes, how do i do the mapping.
My source file has Data Account Loc CostCenter Company
So for the Account column i want AC_ to be prefixed, And Concat Loc and Costcenter into one column.
In ODI i was not able to do it and did it using the load rule. Now i jst have to run the load rule from ODI without any mapping?
Please let me know how can i achieve this.
Also,
I have tried the same thing in my local server with Oracle as the staging area and tried Concat function using the Staging area. But it says
Cannot Build the query for unknown reasons: Cannot Display data: Datastores are not on the same data server or one of the tables is not accessible on the data server
So do ineed to first load the data into the oracle table and then create an other interface which has source as table and there use the Concat functions?

Similar Messages

  • Error ORA-06502 When using function REPLACE in PL/SQL

    Hi,
    I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
    variable var_a is of type CLOB
    and the assignment statement where it gives the error is
    var_a := REPLACE(var_a, '^', ''',''');
    Can anyone please help!
    Thanks

    Even then that shouldn't do so:
    SQL> select overload, position, argument_name, data_type, in_out
      2  from all_arguments
      3  where package_name = 'STANDARD'
      4  and object_name = 'LPAD'
      5  order by 1,2
      6  /
    OVERLOAD   POSITION ARGUMENT_NAME                  DATA_TYPE                      IN_OUT
    1                 0                                VARCHAR2                       OUT
    1                 1 STR1                           VARCHAR2                       IN
    1                 2 LEN                            BINARY_INTEGER                 IN
    1                 3 PAD                            VARCHAR2                       IN
    2                 0                                VARCHAR2                       OUT
    2                 1 STR1                           VARCHAR2                       IN
    2                 2 LEN                            BINARY_INTEGER                 IN
    3                 0                                CLOB                           OUT
    3                 1 STR1                           CLOB                           IN
    3                 2 LEN                            NUMBER                         IN
    3                 3 PAD                            CLOB                           IN
    4                 0                                CLOB                           OUT
    4                 1 STR1                           CLOB                           IN
    4                 2 LEN                            NUMBER                         INI wonder what happened?

  • Help getting"use itunes to restore" error message

    I connected my ipod to my friends computer to copy a program i had on their to his computer and i then i take my ipod out and get the "connect to your computer use itunes to restore: error message. I know i can just restore it im not going to do that becasue it would be the third time doing so. I get a error with the ipod software but when the ipod updater program comes on the only option is restoring. So i am wondering is there a way to reupdate the software? if not is there any other solutions not involving reformatting the whole ipod.
    Thanks in advance

    hey kurtis,
    seems like you and i were having the exact same problem. i took mine to an apple service centre today. the guy said if he can restore it in store it'll cost me $44- for a service fee if not he'll send away for a replacement iPod for free as it is under warranty.
    got 10 mins down the road and recieved a SMS from the apple account saying it couldnt be restored and therefore had faulty hardware or the like and so i should be recieving the new one friday.
    i recommend if you're still under warrenty (you can check by entering the seriel # on the back of your iPod somewhere on this site) that you follow my lead, even if they fix it in store $44 is better than $450.
    cheers!
    min

  • SQL Replace function: errors if replacement text is 8191 characters

    Oracle 10.2.0.3.0 Enterprise Edition
    I'm working on an application which has a function to generate emails.
    We have a template, which gets filled with data from the database depending on the email being sent.
    To do this I'm using the Replace function to replace certain parts of the template with the right data.
    It seems that if the replacement text (the third argument to the function) is longer than 8191 bytes the function throws a PL/SQL: numeric or value error.
    This limitation doesn't appear to be documented anywhere, certainly nowhere that I can find.
    Anyone know of a way around this short of building my own replace function?

    I've figured out what was going on.
    The database column for the replacement text is defined as a clob, but there is a front end limit of 10,000 characters for the field being used.
    When using the replace function I was assigning the value to a varchar2(32767) field in the PL/SQL.
    So in terms of datatypes the function call is:
    varchar2 := replace(varchar2, varchar2, clob)
    If the length of the clob is over 8191 characters it errors.
    (Presumably because of the bug mentioned in this thread DBMS_LOB.SUBSTR() returning 8191 characters instead of 32767
    I've fixed it by simply changing the datatype of the variable to which the value is being assigned to a clob.

  • Question of using concat for databinding

    I am trying to use concat to build up a string for databinding. the code 2 should replace the code 1 here and of course they should have the same output:
    Code 1:
      <textInput text="${uix.current.DepartmentName}"
                 columns="10" readOnly="true"/>
    Code2:
         <textInput columns="10" readOnly="true">
          <boundAttribute name="text">
             <dataObject>
               <concat>
                  <![CDATA[${uix.current.]]>
                  <![CDATA[DepartmentName]]>
                  <![CDATA[}]]>
               </concat>
             </dataObject>
           </boundAttribute>
       </textInput>Code 1 gives out always right out put like "Administration,Marketing...." ,but code 2 gives always "${uix.current.DepartmentName}", the databinding code out. Its not translated correctly as databinding resourse.
    Do You have any idea to solve this problem?
    Best Regards
    Yong

    Hi Arjuna, thanks for your help.
    We are currently investigating how to extend the UIX components in a way to get the good old bc4j components back again.
    We had some understanding problems with the new binding.
    Anyhow a <textInput text="${uix.current[uix.rootAttr.attrName]}}" /> seems to work.
    Regards, Markus

  • How to use independent replacement paths for same KF over several months?

    Dear Experts,
    I have a query requirement to show KF values for items that meet a condition on another KF for a five month period.  I know that I can accomplish this using a replacement path variable on item for one month at a time, however I am not sure how to do this for multiple months in one query.
    This is an example:
    Month 1
    KF 1 > 0 for Items A & B.........so show KF 2 for for Items A & B
    Month 2
    KF 1 > 0 for Items B & C.........so show KF 2 for for Items B & C
    Month 3
    KF 1 > 0 for Items A & C.........so show KF 2 for for Items A & C
    Thanks in advance for your help!
    Kathryn

    Ok, Nancy, code copy/ paste did work fine.
    what does this mean:
    "Change the image in the properties panel to display your new image."
    (the image is displaying ok)
    NEverthesless, I think I got Murrays old notes.
    Here is my new version of Murrays writing, easiest way I think:
    You open up a pre-existing html, say Chicago. Then drag over with pointer to the new jpeg you want (Buffalo). It replaces Chicago with the buffalo jpeg, all links work perfectly. Then do a save as called Buffalo.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • Cannot delete file - tried everything - file in use by Windows Explorer error

    Hi - I have tried now for 2-3 hours trying to delete an .mkv file from my "Downloads" folder
    It says the file is in use by Windows Explorer and cannot be deleted
    I have tried deleting it using Del command prompt as me and as Administrator (I am the Admnistrator, there are no other users) - no luck
    I have tried Safe Boot and then deleting - no luck
    I have tried rebooting many times and then deleting - no luck
    Any ideas? It's driving me nuts

    hi to all who have this bug- "file in use by Windows Explorer error"
    this is the only way that it works:
    1.type cmd in search box
    2.go to the drive and the directory the file is in ,for example:
    after you type cmd you have a black screen with c:\user\
    type in the drive the file is in and hit enter example - d: than hit enter
    than you should see d:\>
    now click the directory the problem file is in ,for example i will call the directory "movies"  type in this-   cd movies
    now you will see this d:\movies>
    to delete the file type this:  del filename.mkv (dont forget the .mkv or any other file extension) don't hit enter yet, first open task manager (cntrl+shift+esc) go to process tab than right click on explorer.exe choose and click on end process
    now your desktop should disappear. get back to the "cmd" window and hit enter.
    now the file is deleted. now go back to the task manager and click on "file" on the upper left corner then on new task then type in "explorer.exe"
    and you are done
    please note that the file name you choose to delete cant be with spaces between the letters .if so you will need to change it in the same way in the cmd window only the comand will be instead of "del filename.mkv"(for example) after you are in the
    right drive and directory:
    rename "test space.mkv" testspace.mkv
    hope i helped
    this is the only way it workes
    Instead of running a CMD prompt and typing everything, just start up Winrar or Winzip, kill Explorer, then delete problem MKV files to your hearts content within Winrar or Winzip.
    Winrar and Winzip will navigate your folders as well.
    After you are done, create a new Explorer task.
    or.....   if you need to rename MKV files, just rename them within Winrar/Winzip with Explorer not running.
    I change the MKV extension to AVI (in Winrar with Explorer killed) in order to avoid Explorer issues, if I ever want to move the files in the future without needing to kill Explorer all the time to do so .
    Using WinRAR works for me. Using the cmd function becomes complicated when I cannot rename my file with the rename command".

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • What type of hard drive replacement should i use to replace the hard drive in my first generation mac min 2005 model a 1103?

    what type of hard drive replacement should I use to replace the hard drive on my first generation mac mini model a 1103?   G4 1.25 mhz 40 gb hd 1 gb. mem.

    You'll need a 2.5" parallel ATA interface hard drive. Most are 5400RPM, forget 7200RPM drives and slower 4200rpm drives.  You don't want a serial ATA (SATA) drive, as that has a different connector and won't work.
    One source I've used for drives is Newegg, and their parallel ATA hard drives are at http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007605%2060000344 2&IsNodeId=1&name=IDE%20Ultra%20ATA100%20%2f%20ATA-6 .  Newegg also has many user comments about the drives. Other sources are OWC at http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ (Click on ATA on the left) . Look for at least a 3 year warranty. 

  • When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. pleas

    When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working                  

    anomaly jade,
    You only need to use the serial number during installation.
    Have you, at least seemingly, been able to install, and then you are unable to start up?
    If that is the case, you could try to reinstall using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • Is there a LabView example in the use of user defined error codes?

    Specifically, I have a VI that tests four arrays of data against various high/low limits. I have pass/fail outputs for 18 tests. I'd like to combine these into an 'error out' cluster with appropriate error codes and messages, for which I've created an x-errors.txt file.
    My first question must be trival - how do I just set the 'status' bit of the error stream to let the general error handler then look up the error desription from the file?
    Secondly - I can't find an example of this in the technical resourses, amI missing something?
    Thanks,
    Mike
    Mike Evans
    TRW Conekt
    N.I. Alliance Member, UK
    http://www.Conekt.net

    There is no example program. There is extensive help on how to do this. Here's the basics.
    1) There are two ways to define user error codes in LV6.1. If you are using LV6.0 or earlier, only one method is possible.
    2) The 6.0 method involves wiring arrays of error codes and arrays of error code strings to the General Error Handler.vi. These codes will be used to explain any error code which is undefined in LV's internal error code database. Error codes reserved for users which are guaranteed not to be used by NI are from 5000 to 9999.
    3) The 6.1 method allows you to create a specially formatted error code file on disk that will be merged with the LV error code database each time LabVIEW launches. For help on this, go to LV's online help, and in t
    he Index tab, type
    "user-defined error codes, in text files"
    (without the quote marks)
    4) If you want to set an error into the error cluster, use the General Error Handler.vi again. Wire your error code value to the Error Code terminal (the leftmost-topmost corner terminal). Wire the name of your VI to the Error Source terminal, and wire "No Dialog" to the Type of Dialog terminal (left-side, near the bottom). The error code cluster that comes out of this VI will either be the error in (if one was set) or a new error code cluster with your error and the status bit set to TRUE.
    5) The attached demo is written in LV6.0.
    Attachments:
    Error_Demo.vi ‏37 KB

  • Key not valid for use in specified state error message

    I did the update for my iPhone and also tried to update iTunes. I kept getting an error message of "key not valid for use in specified state" error message. I thought that if I uninstalled iTunes and re-installed it, that it would be fine. I'm still getting the message and now I don't have iTunes. When my phone updated, I couldn't download anything/backup my phone to iTunes. Please help. Thank you in advance.

    For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
    For further problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Can someone tell me is the A1342 EMC2350 motherboard can be used to replace a A1342 EMC2395,,,yes, I am aware of the GHz difference.

    Can someone tell me is the A1342 EMC2350 motherboard can be used to replace a A1342 EMC2395,,,yes, I am aware of the GHz difference.

    Can someone tell me is the A1342 EMC2350 motherboard can be used to replace a A1342 EMC2395,,,yes, I am aware of the GHz difference.

Maybe you are looking for

  • First try at creating a Form/Using Javascripts

    Looking for constructive criticism. I am an instructor in the US Navy and I am forced to type out a boring routing sheet when submitting anything that needs approval from anyone other than myself. I finally decided to try my hand at Adobe Acroboat X

  • Do I need an internet provider to use firefox

    Do you need an internet provider to have or use firefox

  • Set default crop ratio padlock to be unlocked always

    How can i set the default crop ratio to always be unlocked for every image that i try to edit? Its so annoying to always have to hit the A key to unlock it. If i want it locked then i'll lock it back. Why should i be told what i want?

  • How to wrap the export/import utility using perl

    Hello, How to user perl to wrap the export/import utility? Thanks.

  • NOKIA 5310 NEED HELP

    Hello I got e problem with Nokia 5310 Xpress Music. - Sometimes The battery GETS soo Hot - Second if i wanne start my cellphone i get black screen but i can still do evrything : i can enter my pin-code call people all normal things but with black scr