Project variable refresh

Hi
I written following procedure to fick a record from view and storing it into a project variables and when I execute the scenario, I got error "java.lang.Exception: Variable has no value: ORACLEEBIZ_PAS_BULK_LOAD_PROJECT.PVV_EXPIRATION_ACTION_CODE"
Note: "expiration_action_code" column is not a mandatory at source and target side (varchar2 data type at both(source and target) the sides)
Please any one can help me on it and one more think, please let me know the following approch is correct or not
BEGIN
select
inventory_item_id,
item_number,
item_description,
primary_uom_code,
lot_control_code,
serial_number_control_code,
organization_id,
organization_code,
age,
best_by_date,
change_date,
expiration_date,
grade_code,
length,
length_uom,
lot_description,
lot_number,
maturity_date,
origination_date,
place_of_origin,
recycled_content,
retest_date,
thickness,
thickness_uom,
volume,
volume_uom,
width,
width_uom,
expiration_action_code,
expiration_action_date,
parent_lot_number,
reservable_type,
origination_type
into
#PVN_INVENTORY_ITEM_ID,
#PVV_ITEM_NUMBER,
#PVV_ITEM_DESCRIPTION,
#PVV_PRIMARY_UOM_CODE,
#PVN_LOT_CONTROL_CODE,
#PVN_SERIAL_NUMBER_CONTROL_CODE,
#PVN_ORGANIZATION_ID,
#PVV_ORGANIZATION_CODE,
#PVN_AGE,
#PVV_BEST_BY_DATE,
#PVV_CHANGE_DATE,
#PVV_EXPIRATION_DATE,
#PVV_GRADE_CODE,
#PVN_LENGTH,
#PVV_LENGTH_UOM,
#PVV_LOT_DESCRIPTION,
#PVV_LOT_NUMBER,
#PVV_MATURITY_DATE,
#PVV_ORIGINATION_DATE,
#PVV_PLACE_OF_ORIGIN,
#PVN_RECYCLED_CONTENT,
#PVV_RETEST_DATE,
#PVN_THICKNESS,
#PVV_THICKNESS_UOM,
#PVN_VOLUME,
#PVV_VOLUME_UOM,
#PVN_WIDTH,
#PVV_WIDTH_UOM,
#PVV_EXPIRATION_ACTION_CODE,
#PVV_EXPIRATION_ACTION_DATE,
#PVV_PARENT_LOT_NUMBER,
#PVN_RESERVABLE_TYPE,
#PVN_ORIGINATION_TYPE
from
     MTL_OPSM_LOT_EXPORT_V
where
     item_number='#PVV_ITEM_NUMBER' and
     organization_ID=#PVN_ORGANIZATION_ID and
     lot_number='#PVV_LOT_NUMBER';
END;
Thanks
Phani

Hi,
(Sorry my friend , I dont have ODI installed in my current system to do testing for you :- ) )
please try the below one alone :- (for debugging - remove other columns and try )
SELECT select nvl(expiration_action_code,'')
INTO
#PVV_EXPIRATION_ACTION_CODE
FROM MTL_OPSM_LOT_EXPORT_V
Is this working if values is there for expiration_action_code ?
Also do a try with:- ( put your variable in between single quotes ' )
SELECT select nvl(expiration_action_code,'')
INTO
'#PVV_EXPIRATION_ACTION_CODE'
FROM MTL_OPSM_LOT_EXPORT_V
Regards,
Rathish A M

Similar Messages

  • ODI: Variable refresh via Jython?

    Hello,
    I have a very little question, I hope.....
    I use the first time project variables with a SQL-Statement for refreshing...
    But, how I can refresh this variable via Jython? Even I want to access it says, that no value exists.
    IF I refresh manualy it works fine.
    How can I init this explicit via Jython?
    thanks....

    Did you try running the sqlldr command on the shell using the same control file ?
    I guess it will work fine.
    This is an ODI bug 8560194 due to which even if a single record errors out in sqlldr, the ODI signals an error despite the fact that LOA_ERRORS > 0
    Hope that helps.

  • Variable Refreshment Problem in Workbook

    Hi Experts,
    We have a workbook for Price Definition Planning (Using SAP IP).
    There is one Navigational Attribute called u2018Category Segmentu2019 (for Planning Product) as a dropdown item which populates new records in workbook.
    If we run the workbook for first time after giving the required variable input value for category segment suppose u2018Chocolateu2019, it works as intended.
    But the problem is that , if next time we change the variable value for the same to different one suppose u2018Cookiesu2019, its not showing me the records of that u2018Cookiesu2019 segment in the analysis item. Itu2019s still showing the previous records i.e. for u2018Chocolateu2019 only rather than Cookies.
    We checked the option for variable refreshment as well as workbook refreshment. But the problem still persists.
    If anyone has any idea about this, please do share it.

    hi.
    check if your user has personalized the variables, because they won't show up if he refreshes. you have to call up the variable screen explicitly by using the option from the menu and then you can change the personalization setting.
    br
    jacob

  • In the shared variable properties box, when enabling aliasing, what is the difference between binding to a project variable vs. to a psp url

    In the shared variable properties box, specifically with regard to a the target being an rt target, when enabling aliasing, what is the difference between binding to a project variable vs. to a psp url?

    The difference is in the type of variable you are binding it to.  A project variable is a variable that lives within the specific project in which it was created.  A PSP URL is an address using the Publish-Subscribe Protocol (PSP).  You can learn more about PSP URLs here: http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/using_datasocket_technology/#Specifyin...
    PSP URLs will enable it to communicate between different machines and also between projects which may or may not be open.  The project variable will exist within the project.
    Julian R.
    Applications Engineer
    National Instruments

  • Using filter in PAPI-WS to search instances based on project variables

    Hi All
    I wanted to search the BPM instances from my external application. Used PAP-WS to do that.
    To be precise, I was using the filterbean, and have set the process scope, status scope, and the variable on which I want to filter.
    However, I noticed that if the variable specified in the filter is a 'project' variable instead of the 'instance' variable for the process, then BPM does not
    search the instances and throws an exception.
    The code works fine if the variable in filterbean is an instance variable in the process.
    Is it possible to search for the processes based on the values of project variables?
    Below is the code snippet and the exception details.
    Code snipppet:
    PapiWebService port = initializePapiWS(participantId); //private method, dont bother about this
    ProcessIdSetBean b = new ProcessIdSetBean();
    List<String> processids = b.getProcessIds();
    processids.add("/MYPROCESS");
    FilterBean fb = new FilterBean();
    SearchScopeBean ssb = new SearchScopeBean();
    ssb.setParticipantScope(ParticipantScope.ALL);
    ssb.setStatusScope(StatusScope.ALL);
    fb.setSearchScope(ssb);
    List<FilterAttributeBean> fabList = fb.getAttributes();
    FilterAttributeBean fab =new FilterAttributeBean();
    fab.setVariableId("messageNo");
    fab.setComparison(Comparison.IS);
    fab.setValue("123");
    fab.setIsParametric(false);
    fabList.add(fab);
    InstanceInfoBeanList iabl = null;
    try{
    iabl = port.processesGetInstancesByFilter(b, fb);
    catch (OperationException_Exception ex)
    Exception:
    An exception occurred while executing a transaction. Details:
    An error occurred while accesing the database.
    Detail:SQL statement: 'unknown'
    Caused by: Syntax error: Encountered "null" at line 1, column 575.
    fuego.transaction.DatabaseException: An error occurred while accesing the database.
    Detail:SQL statement: 'unknown'
         at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.getInstancesByFilter(JdbcProcessInstancePersMgr.java:527)
         at fuego.server.persistence.Persistence.getInstancesByFilter(Persistence.java:329)
         at fuego.server.ProcessInstanceManager.getInstancesByFilter(ProcessInstanceManager.java:132)
         at fuego.server.AbstractProcessBean$34.execute(AbstractProcessBean.java:1666)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199)
         at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95)
         at fuego.server.AbstractProcessBean.getInstancesByFilter(AbstractProcessBean.java:1660)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)

    Hi Mikael,
    Thank you for your input. Sorry for my delayed response, I was not alerted that anyone had replied. Anyway, the code you show above, as far as I know, will sort the results by a formula, but not limit results to that formula. For now we've temporarily settled
    on this approach of sorting by distance as this still gives value to the end user. We can also write some JavaScript to display the distance for each item using the longitude and latitude values for each item.
    In my mind that query above needs something similar to "between dates" (i.e. Range) syntax whereas we would need "within a geolocation distance".
    I admit that my knowledge of refiners is not great so I might just need to spend some time with them to understand this all better but at the moment I still don't see how you limit the result set. You could limit the results in JavaScript after the search
    has run (i.e. hide items that aren't within the given distance) but this would break the interaction with the other refiners on the page, especially if they are displaying counts (that are based on the original query). Unless there is an event
    we can hook into and filter the search results as a last step before they (and the refiners) are rendered on the page?
    Thanks for your input,
    James.

  • Dynamic Variable Refreshment

    Hi All,
    I am facing a problem with the dynamic variable refreshment. I have used dynamic variable in the where clause in the content of a table in the BMM layer.
    But according to the refresh time the variable is getting refreshed in the RPD but the value in the Webcat is not reflecting at the same time. It is taking time to get reflected in the Webcat reports and the time is not specific. I have clear the cache in the Webcat but getting no result out of it. I think the value of the variable is taking time to get reflected in the content of the table.

    Might be that the presentation server cache is giving you trouble, try disabling it:
    http://obiee101.blogspot.com/2008/12/obiee-bypassing-presentation-web-cache.html
    regards
    John
    http://obiee101.blogspot.com

  • Project Variables Labels Not Updated After Change in OBPM 10GR3

    Hi all,
    I had previously deployed a project to the Weblogic Enterprise Server with a set of project variables , layouts, presentations and views.
    Now, I changed the labels to the Project Variables using Studio. Made them all Upper Case and re-deployed the project to the Weblogic Enterprise Server.
    I restarted Weblogic. I restarted the engine.
    But the Project Variables labels in the views did not change from being lower case to upper case.
    Why is that so?

    Anybody on this?
    Why do the labels of Project Variables not change in Weblogic Enterprise Server 10GR3 although they change in BPM Studio?
    I also tried deleting these project variables from the Engine Tables --> PPROCINSTANCE and PPROCINSTEVENT
    Restarted Weblogic
    Restarted the Engine
    Restarted the workspace
    Redeployed a fresh BPM project.
    But nothing changed?

  • Business parameter and project variables

    I want to know if Business parameter can be used in place of a prpject variable. My understanding is project variables require an alter command on the DB script during deployment and it is limited to 150 for 1 engine. Hence we dont want to use them. Also wanted to know where are business variables stored in the DB schema. Is there any place where we can get the Engine DB and Directory DB model with relationships and attribute details so that I can understand the system better

    I should have been clearer. A business parameter is not used to store information about a specific instance flowing through the life of a process. They are used as "constants" (quotes around this are explained in my thread above) that can be changed by business owners. They are different than project and instance variables in that:
    1) Business Parameters are global - this means that their value is the same for all processes running on the Engine (e.g. if MIN_CREDIT_SCORE is set to 650 by a business owner, then all instances in all processes that use this know it's value is 650). Both project and instance variable values are unique to each individual work item instance running on a specific process on an Engine.
    2) Business Parameters are infrequently changed and if a business owner changes them to another value, all instances running on the Engine will see the new value.
    3) The global value of business parameters are stored in the Directory Service database. Project and instance variables are stored in the Engine's database.
    4) Business Parameters are not something that you would want to run a BAM report on since their values are global and not specific to a particular work item instance. Again, it's better to think of them as constants. They're not going to help you with BAM reporting.
    Hope this helps,
    Dan

  • Project Variable limitation in Oracle 11G BPM

    hi,
    Is there any limitation with Oracle 11G BPM on the number of project variable that can be created for a given BPMN processs ??
    example , instance is not getting created if the number of int Project variable is more than 10. If there are 10 INT project variable , instance getting created ...
    Thanks

    Hi,
    Oracle doesn't provide the source code 11g Worklist. If you want to customize the existing worklistapp, then you can try modifying the jsfs in exploded directory, but that requires tedious knowledge in ADF.
    I would recommend to write your custom worklist app. Oracle provides various taskflows available in JDeveloper, you can just include them in the application to make things work.

  • Can a project variable be initialized

    Hi all,
    I am very new to ALBPM. I was going through an old tutorial of ALBPM ( it is a FEUGO BPM tutorial ). There in one place we have to make a business variable and initilize it.
    Now I know that the business variables are same as Project variables in case of AL BPM v 6.0. But I can not see any way of initializing the same ( there is a provision for specifying the range but no provision for giving a default value ).
    Is there any way I can give a default value to a project variable ( much like constants in programming languages ).
    - Thanks ,
    Anindya

    Hi all,
    You can please ignore this. Actually I was trying to figuree out something like static constants in Java for ALBPM. I think I have figured it out I have to define a business variable with a default value.
    Cheers, Anindya

  • Archive Viewer not showing project variables in filter conditions

    Hi !
    This is a strange issue. We have a full archive database. The viewer displays all the process we have deployed. We can see the contents of the archive without problems. We have also defined like 15 project variables. If we take a look at the filter conditions combo box, we only see predefined conditions for filtering. The first option of this condition is empty. If we look at the html source of this jsp page thru the browser (look for the "updateAddFAT" javascript function), we see that there is indeed java code mentioning one of our project variables in the combo box, and it its the one with no label (or blank one). So, if we choose this blank condition and complete the right value in the value text box, then the filter returns all the instances that apply to that condition using the project variables.
    The problem is: we don't get all the project variables in the filter combo box. This makes the archive viewer very useless, because business users need to search archived instances filtering by project/business variables.
    Anyone experienced this? Anyone is seeing correctly the project/business variables in the condition combo of the archive viewer? if you do, please share the version and patch you are using.
    Thank you !
    Regards,
    Matias.

    What I verified somehow, that if I add let's say 3 or 4 variables, it keeps showing always the same. If I remove the one that is currently loading into the combo box, then the next one in the list is displayed, but I don't understand which filter or sort criteria is using. I went deeper in the code (jsp and jar files), but still cannot indentify the root cause, because the SQL query the jar is sending to the archive database seems to be ok (it appears in the log), at least it returns all project variables in the archive database (table VARIABLE), but somehow, some internal array or list is not filled correctly.
    Let's wait and if not, I will create a service request.
    Thanks.
    Regards,
    Matias.

  • Project Variables to show a link

    I am trying to show a link to the users in the workitems list using a project variable. Does anyone know if this is possible or maybe possible using a different approach? for example something like. showLinkProjectVar = "<a href='someurl.com'>link text</a>"; Something similar to that.
    Any help would be great.
    Thanks.

    Hi,
    I was able to fix this.
    <af:column headerText="#{suiviewBundle.OPEN_ORDERS}" align="center"
                                    id="c5">
                            <af:commandLink text="#{row.openOrdersDisplay}"
                                            actionListener="#{pageFlowScope.ChangeOrderProposalBean.checkForOpenOrders}"
                                            rendered="#{row.bindings.openOrdersLinkDisplay.inputValue!=null}"
                                            partialSubmit="true" id="ot19"/>
                            <af:outputText value="#{row.openOrdersDisplay}"
                                           rendered="#{row.bindings.openOrdersLinkDisplay.inputValue==null}"
                                           id="ot33"/>
                         </af:column>
    Thanks

  • Project Variables Valid Values ?

    why can't i assign a ;ist of valid values for project variables?????!!!!!

    What is the type of the project variable you are using

  • Front Panel Mass Binding Project Variables Issue

    Hello -
    When attempting to bind controls to shared variables through the front panel mass binding option, there is an issue where you can not seem to bind a "project item" to the control. The method of binding I am using is to export a text list of control names, urls, mode, and function to a text editor utilizing the front panel binding mass configuration options.  The text editor shows, in the fourth column, a "0" for no function, a "1" for network item, and a "2" for project item. when attempting to import the list back into the front panel binding mass configuration, all "2" indications become "1", as all items are treated as network. Thus one can not effectively bind to a project shared variable item.
    The binding works fine manually by means of utilizing the properties selection of the control, but it is difficult to do this for 821 controls, as in my application.
    My application is based on a OPC served group of 821 variables which are linked to controls and indicators through the shared variable representation for each item created in the multiple variable editor.
    Does anyone have a work around for this issue, as it is a showstopper right now, ie, you can not effectively bind a large quantity of controls or indicators to project located shared variables as required.
    The rationale behind utilizing project located variables instead of network located variables is to reduce the amount of calls to the OPC server which was causnig a large latency in the refresh of the 821 items. With the items defined as shared variables within the project, a single call is issued, which has tremendously sped up the refresh cycle for the list of variables.
    Thank you in advance for your insight in this matter,
    John DeCroos

    Hello Brian A.,
    In response to you comment --
    "in 2006, and John did not follow up with any more information for Efosa"
     -- a great deal of information was provided to NI (Efosa and many, many others, up to the product manager for the DCS module). I have never heard back on a fix for this bug for the identified version of LabVIEW. The reply by Efosa here was well after we had shipped our product -- (please see date + Efosa's apology) -- we had found our own solution as is identified in the original post.
    My solution was, as is also indicated in my original post, to manually bind each variable. This was unbelievably time consuming, but was all I had.
    The version of software I am now working on uses far less variables, manually bound to avoid the multiple binding issue we had in the past.
    I have checked the mass binding function in LV 8.5.1, it works fine now. I guess it would have been nice to have had a reply that the bug had been resolved ---- would have helped me out a bit.
    Thank you,
    John DeCroos

  • Acrobat Plug-in Variable Refresh.

    Hi, I met a problem in local variable value refresh.
    I developed a plug-in based on the Basic Plug-in template in Samples from Acrobat.
    In the function which response to the click on user menu, I defined a local variable to record a user self defined value in an external configuration file.
    In my scenario, my plug-in will read an external config file in the same folder with the current PDF file.
    When I want to switch from current PDF to another, it works perfectly when I close the Acrobat Professional and re-open it.
    But when I only close current PDF and leave the Acrobat Professional open, and I open the other PDF by loading it from File menu, and run the plug-in again, the config value read from external is same.
    This shall not happen because the value I created is a local one and I delete it at the end the execution.

    Plugins are kept loaded throughout the life of Acrobat. This no way to "re-init" them.
    But this simply sounds like you need to rethink your design about how you handle things, now that you know you are kept around.
    Leonard

Maybe you are looking for