Datastore Resource Name Variable

Hello Experts,
In the past, we have successfully implemented the use of a variable name inside the resource name of a Datastore to dynamically change the name of the table. This technique has been always useful to loop through a set of files assigning the name of the file to a variable and then using this value within the resource name of a Datastore.
When trying to implement the same technique in ODI 11g, it looks like the value of the variable is not being use by ODI when executing the package. When I look at the execution code the FROM clause is using the name of the variable instead of the value assigned to that variable IE:
select *
from #NameOfVariable
Is this a known issue in 11g? or is there a new way to implement variables for Datastore resource names?.
The variable that i'm using has been set to Alphanumeric type and I'm assigning a static value inside my ODI package.
Thanks for your help.
Pablo C.

better you can store all the resource names into one db table after that with helping of the refresh variable u can get file name one by one ,better declare a loop for this dynamic variable.
if you have any doubts please revert back this.
Regards,
sh

Similar Messages

  • Issue using variable in Datastore Resource Name

    I am trying to use a variable - let's call it MyVar - in the resources name of a datastore as the value for a database link that is dynamically generated.
    Let's say I have a hypothetical table called MyTable that may exist in multiple databases and in the Resource Name field of the DataStore definition I have the following syntax: MyTable@#GLOBAL.MyVar
    So I would assume that if the value of MyVar is 'DBLINK' then the end result would be that it would resolve to MyTable@DBLINK
    The issue is that when it is used in an interface where I am trying to create a view from this datastore I get an error because it puts the following value in the FROM clause: "MyTable@#MyVar" . It resolves to that exact value with quotes and all and doesn't resolve the variable name. My question is why is the variable not being replaced with the correct value and also why is it putting quotes around the Resource Name value when using it in an interface.

    Can you try to change the variable name and put it in upper case as well ? Same thing for your table if possible.
    I guess you're using 10g. It's a good practice to always use upper case for your variables because 11g only allows upper case.

  • Dynamic Resource Name in  DataStore

    Hi,
    I have situation like this, i need to generate dynamic filename based on the input date passed. For example i have package with following steps
    1. inputDate - inputParameter to the interface
    2.vFileName - name of the output file generated by the Interface
    3. Interface - business logic interface
    The Target Data Store for interface is GENERIC_FILE_TEST. The output file needs to be changed based on input date.
    May be i could use evaluate variable. Not sure about the right syntax.
    Theoritically the logic would
    be
    if(inputDate=xx)
    vFilename==zzz;
    else
    vFileName=vvcv;
    and then use vFileName in resource name field of Target Data Store.
    Appreciate providing correct syntax/technique.
    Thanks

    Hi,
    let me suggest something....
    1 - at package, receive the parameter in the variable (named inputDate for instance)
    2 - write an sql query that solves what you need, like, in a oracle example: (the variable refers to itself)
    select case when #inputDate=xx
    then zzz
    else vvcv
    end
    from dual
    3 - after the step 1 at package, just add the variable again in refresh mode
    4 - execute the interface.
    Make any sense?
    Cezar Santos
    http://odiexperts.com

  • Resource name field for target oracle table

    Hi,
    I want to build a generic interface that takes data from different similar structured flat files and loads to different target table (similar structure).
    I thought I will use the resource name field for both source and target and use variables to determine the source and target names during runtime.
    the problem is it runs fine at the source when i change the file names to load from but it fails at the target when i use variable to determine the target name.
    Did anyone try this earlier? if yes, can you please help? The error I got was 911 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    and the query generated was
    insert into      SCHEMANAME.#PROJREP."v_generic_interface_target_name"
         COL1,
         COL2,
         COl3
    select     
         C1_COL1,
         C2_COL2,
         C3_COL3
    from     STGSCHEMA.C$_0DEMO1
    where     (1=1)
    Edited by: sriksd on May 7, 2010 6:51 PM

    Hi,
    Which KM you are using ?
    Try to use #PROJREP.v_generic_interface_target_name into Resource name of the table in the data models.
    Regards

  • File name Variable

    Hi,
    I am trying to pass file name as parameter for a procedure which will FTP file to unix location , When i tried the procedure by hard coding the file name it worked fine and FTP was done. Then I tried to create a filename variable thinking i can re use same procedure as i want to ftp multiple files or different file for different interfaces.
    I created one variable choosen Data type as Alphanumaric , and default value as null.
    then i used the variable in procedure and i get the error below. ( I gave file name as file_xyz_123.csv)
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please help
    Thx
    Suri
    Edited by: VSG on Apr 26, 2010 8:12 PM

    You can modify the previous parameter only where you hard coded value, to change the resource name with a variable.
    It will automatically consider variable value which is passed during runtime.
    Murali.

  • Dynamic Resource name for Excel/csv files

    Hi All,
    Reading from a source excel (as well as csv) file, I tried passing the resource name via a variable which is set to contain the name of the file (refresh). However, on execution, the file name shows up with an additional "\" character without being specified in the variable text causing the interface to face on load step.
    The error says:
    ODI-1227: Task SrcSet0 (Loading) fails on the source FILE connection <ConnNameHere>.
    Caused By: java.sql.SQLException: ODI-40438: File not found: C:\DirectoryNameHere\ /OTD.
    Is this expected behavior where one needs to escape the special character?
    I've verified that the extra / is not present in either the variable value or the directory for the Physical Schema.
    TIA.

    http://youtu.be/-QMV6cElgsk
    http://youtu.be/V7OzzZ3kYdc
    http://youtu.be/hNqqbZ4sJWA
    http://youtu.be/TMHzhtEwgrA
    http://youtu.be/REJDi584jh8
    http://youtu.be/jE6k5OfWqi0
    http://youtu.be/P3EKyykseps
    http://youtu.be/-QMV6cElgsk
    http://youtu.be/Gl7YvZohVVA
    http://youtu.be/zb1ue5BP9mI
    http://youtu.be/NhPDcc8n4VU
    http://youtu.be/tD_kw5QXmps

  • Find resources and resource name

    I'm using LV6i and I'm a little bit unhappy with that new data type VISA
    resource name which is input to the VISAOpen VI.
    If I use the FindResource VI, it returns a list with all the found
    resources. How can I select out of this list and wire the result to VISA
    resource name input. Is there a function to convert string into
    VISAResourceName? I found only VISAResource controls and constants, aren't
    there any conversion functions? If not, FindResources is useless, cause you
    can't use that information for further processing.
    Second question: Is the VISA Resource control a hidden FindResource because
    it offers me some resources in my system, but not all of them (in fact, it
    offers me COM1 and LPT1 but not GPIB).
    Last but not least a question
    of a more programming philosophy nature: If I
    execute a VISAOpen to a instrument on the GPIB bus, it changes into remote
    operation. But why does the VISAClose not the exact reverse the VISAOpen,
    e.g sends a GoToLocal to the device, so that the instrument returns into
    initial condition ? I find it more consistent to leave a VISA execution
    chain with device on local. If I want to set a device into local I have to
    use the Misc VI with loc xx input. And this VI doesn't use the VISA resource
    name but a string. That's rather inconsistent.
    Any opinions?
    Oliver Friedrich

    Okay, first, I put strings into VISA resources all the time. A VISA resource name is a special type of string. Create a VISA Resource Name control and then create a local variable from it. Wire your string to the local variable. When the program is run the string will be transferred in to the VISA Resource Name control. Be sure to enable the Allow Undefined Names in the VISA Resource.
    A VISA resource control only lists VISA resources that have been defined in NI VISA. If you have another type of VISA loaded on the system, or have not defined aliases in MAX, then they will not show up in the VISA Resource Control. Yes, this is annoying.
    I personally would not like VISA close to send a device back to local mode. I do not like languages (or word processors - hear
    this Microshaft?), that assume they know what I want to do. There is much more flexibility in letting the user decide when to go to local mode. If you want a close VI that also goes to local, then write your own library routine that does this.
    Rob

  • Old visa open, error code 1073807343, using VISA with a GPIB device, and VISA resource names

    Hi everyone,
    I'm trying to get a SRS model SR720 LCR meter (manual on this page) working with LabView, connecting it to my PC with an Agilent 82357A GPIB/USB interface (manual on this page). I'm running MAX version 14.0, and NI-VISA version 14.0. I'm running LabView version 13.0f2, 32 bit.
    I followed the directions on this page, and I'm pretty confident I can communicate with my LCR meter, because I can go to NI MAX->GPIB0::17::INSTR under "devices and interfaces", then go to the VISA test panel, go to the I/O tab, and I can enter a few commands from the SR720 manual, like changing the frequency, and I see the light on the LCR meter change to what I just told it to do. Here is a picture, just to illustrate it:
    Also, if I do the *IDN? command, it returns "
    9: Write Operation (*IDN?)
    Return Count: 5 bytes
    10: Read Operation
    Return Count: 41 bytes
    StanfordResearchSystems,SR720,08087,1.03\n
     So, that's good too. I also made the alias of this device "MyLCRmeter", but that shouldn't matter for now.
    Now I'm trying to get it to work in a more usable way. The SR7xx drivers that LabView found for me came with a couple sample programs, one called "Getting Started.vi". I tried to just simply see if it worked, changing the "instrument descriptor" field to "GPIB0::17::INSTR", since that's the one that seemed to be the right device in MAX. Here is a picture of the front panel of "Getting Started.vi":
    Trying to run it like this gave me this error (code -1073807343):
    Old VISA Open in SR715/720 Initialize.vi->SR715/720 Getting Started.vi
    Doing a bit of searching on these forums, I found these few threads (1 2 3), which seem to tell me that, since this program was written, the way you open VISA has changed. In the 2nd of those links, one guy said:
    You just have to replace the Old VISA Open function with the VISA Open that is on the Instrument I/O>VISA>VISA Advanced palette. When you do that, the wire to the string that was used for the resource name will be broken. Delete the string and make the actual VISA Resource Name visible on the front panel. Wire the VISA Resource Name control to the connector pane where the string control was (upper left connection).
    So, I went into the sub-VI Initialize.vi, and did that. Here is a picture of what the front panel and block diagram of the sub-VI Initialize2.vi (I changed the name in case I screwed things up, but I'm pretty sure the new one is the one being called by Getting Started.vi) looked like before I changed anything (you can see the Old VISA Open):
    and here it is after replacing that with the regular VISA Open, deleting the instrument descriptor string and replacing it with a VISA resource, and connecting that to the VISA Open:
    However, as you can see in the image above, and it seems like someone else had this problem in the 2nd thread linked above, I don't see my device listed in the drop-down menu (even if I refresh), only "LPT1" (I don't even know what that is):
    No, I wasnt able to select the visa resource from the pull down menu. somehow it seems disabled or something.
     If I just enter the VISA resource name from MAX manually, GPIB0::17::INSTR, and save and try running that, I get the error(code -1073807346):
    VISA Open in SR715/720 Initialize2.vi->SR715/720 Getting Started.vi
    So I'm not sure where to go from there, or why it's not in the drop down menu to begin with. I'm sorry if I've missed something but I've searched about as far as I can go. If I had to guess, maybe one thing could be that in MAX, under Tools->NI-VISA->VISA Options->My System->Conflict manager, I have both Agilent VISA and NI VISA enabled; I know sometimes problems arise from conflicts between different software fighting over the same hardware. Is this okay, or do I need to change it?
    Thank you and please let me know if there is any other code/screenshots I could provide that could help!

    Hi, I did indeed enable NiVisaTulip.dll under MAX->Tools->NI-VISA->VISA Options->My system->Passports->List of passports. Sorry, I should have mentioned that explicitly.
    By install as primary, do you just mean as it is here, where it is selected as the "Preferred VISA"?
    Or somewhere else? I installed NI-VISA first I believe, and then the Agilent one, and during the installation of the Agilent one, I'm pretty sure I made it not the primary. Here's what I have in the Agilent (it's called Keysight now) Connection Expert software:
    I also have this under the "Keysight 488 options" tab:
    Should that be checked? I don't actually know the role of VISA vs 488 here...
    What could I try?
    Thank you!

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

  • Printing Resource Name Form View

    Hi there,
    I am using Project 2013 Professional on SP1 with all the updates applied.
    I am trying to print the resource name form so I can give all the business users involved in the project a list of thier tasks, when they are due, and how much effort is expected of them.
    I get the view fine.
    I then go +File +Print and get the print page but there is a message saying "Print is not currently available". I tried printing anyway, but as expected nothing happens.
    I can print some views but not others so it is not a generic printing issue, but seems to be related to not being able to print particular views.
    Has anyone experienced the same issue? Is there a fix? Am I doing something wrong?
    Thanks in advance
    Tony

    Backwardsit --
    Yup, I am experienced the same problem as you.  I cannot print the Resource Name Form view in Microsoft Project 2013, SP1.  If it were me, I would customize the Resource Usage view with the columns you want to print (such as Start, Finish, and
    Work) and then print the Resource Usage view.  Just a thought.  Hope this helps.
    Dale A. Howard [MVP]

  • The specified resource name cannot be found in the image file.

    Dear Experts,
    I have developed an import too and it imports many of the Business Objects from a temporary data base to SAP B1. It was running fine for more than 6 months now.
    Currently when the Tool is importing Credit Notes in to SAP B1, the following error is thrown.
    The specified resource name cannot be found in the image file.
    And I have no Clue about the error. Any one had any experience regarding the above error???
    Thanks in Advance,
    Vasu Natari.

    Hello VAsu,
    Somethimes this unexpected, ununderstandable eroor messages caused by corrupted observer dll.
    Do a clean up (delete %TEMP%SM_OBS_DLL) folder, and see the result ! (i had several issues in the past with some strange messages...)
    Regards
    János

  • ActiveSync Input Form -- To take AD Resource name from Database column

    Hi All,
    My authorative source is a database table called dbTable.
    I am using an input form to provision into Active Directory. The Active Directory resource name is stored in a dbTable column. I first tried to hardcode the name of AD and do the provisioning, it worked. But wen I tried to take the name of the AD from my dbTable column using
    <Field name='waveset.resources'>
    <Comments>Add the AD account user inducted.</Comments>
    <Expansion>
    <block trace='true'>
    <filterdup>
    <appendAll>
    <ref>waveset.resources</ref>
    <list>
    <ref>activeSync.resourceNm</ref>
    </list>
    </appendAll>
    </filterdup>
    </block>
    </Expansion>
    <Disable>
    <block trace='true'>
    <neq>
    <ref>feedOp</ref>
    <s>create</s>
    </neq>
    </block>
    </Disable>
    </Field>
    It didnt work.
    Plz, can anyone tell me how to bring the name of the AD resource in my input form for provisioning into that AD.
    I need help. Plz treat it as urgent coz i can't move further without this being solved.

    Hello, first try to trace the value, using <ref>activeSync.resourceName</ref> should work,
    also read the example in Identity Manager documentation (PDFs) called: "Example: Disabling Accounts through ActiveSync Capable Adapters"
    Regards,
    Edgar Torres

  • How I can saving visa resource name in windows registery and load it again?

    I use visa functions in my program for serial communication , I want to save selected resource name in windows registery and next time that i run my program, i want to read it from registery and assign it to my visa resource name control.
    example:         My visa resource name control value = COM2
                            I close my program with this value (how i can easily save COM2 to windows registry key ?)
                            I open my program again (how i can load COM2 in my resource name control from registry Key?)
                            How i can access to visa resource name list? example: COM1     COM2      LPT1     COM56     COM255
    Thanks.
    Solved!
    Go to Solution.

    I guess I don't understand your problem. All you have to do is ready the key containing the desired resource name and wire the resulting value to the appropriate terminal on the open VI. That's as hard as it gets...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Invalid DataStore object name /BIC/B0000173: Reason: No valid entry in tabl

    Hi gurus,
         I recently transported the 0FI_GL_10 datasource to preproduction. when i am trying to load the data in PrePod we are getting this error message.
    <b>Invalid DataStore object name /BIC/B0000173: Reason: No valid entry in table RSTS</b>
    Any help is appreciated with points.

    any more detailed messages,sm21 or st22??
    did you try doing RSRV on the datastore object??
    are you using the nw2004s data flow??
    if using 3.x data flow ,skip PSA and try reloading it.
    Hope it Helps
    Chetan
    @CP..

  • Invalid DataStore object name /BIC/B0005712

    Hi Frnds,
    I was trying to execute a PSA deletion step on one Datasource. In that process I got the below error.
    Error msg: Invalid DataStore object name /BIC/B0005712: Reason: No valid entry in table RSTS.
    Do, I need to maintain anything related to this Datasource in the table RSTS. if so....what it could be ?
    Or Do we have any other solution ?
    Thank you.
    NGR.

    Hi,
    In my case,
    Inspite of going through several valid NOTES & program, my issue didnt resolve.
    I have resolved the issue by adjusting the PSA table for the same.
    Procedure:
    Take the psa name  --> go to table rstsods --> find the ODSNAME_TECH name for the relevant psa  --> se38 t.code --> enter ODSNAME_TECH and click on 'adjust & activate database table' (make sure you have selected 'save data' radio button.
    Just in case anyone who come across this problem, can do the above steps.
    Regards,
    Dubbu.

Maybe you are looking for

  • Premiere Workflow With Lightroom

    I have Adobe Premiere CS6 and Lightroom 4.1.  I like both. But I'd like to figure out a better workflow for copying my AVCHD video files (Panasonic GH2) from SD cards to my computer and managing them. Even though I've been using PhotoShop for years,

  • Inputstream limitation??

    hi. i have a server in java and a C# client. they are communicating through sockets. however when i tried to sent to send a image (a few mb) the server would only received 7300 bytes. some parts from my codes      int servPort= 3333;      ServerSocke

  • Raw Image Plug-Ins for Elements 12

    I have Photoshop Elements 12 running on Windows 7 Home Premium, which I assume is 32 bit. I need to be able to edit RAW (NEFF format) image files from a Nikon D4s camera. I do not see a 32 bit version of Camera Raw 8.5, 8.4 or 8.3 that can handle thi

  • How to delete photos from my hard drive to free up space?

    I've got a Mac Book and have ran out of space. How to I delete photos i don't want any more from my hard drive? It seems that if I only delete them from iphoto is not enough. I don't see individual photo documents stored in my hard drive as would hav

  • I'm trying to install a dell 2130cn printer driver on my brand new iMac (2012). I'm an Apple newbie.

    I just switched from PC to Apple (Ipad, Iphone and now Imac). my legacy printer is a Dell 2130cn color laser printer that I would hate to replace. I've tried the advice on the web involving downloading 3 Linux packages (pxlmono, Foomatic and Ghosecri