Problem  with a rule in workflow

Hello, i have a workflow that use a rule for assign inbox of the users,
when i test the rule it seem to be good, because in the result i can see the right user.
In my workflow i have 4 levels of authorizations.
The first level works well, but the second not.
1) Information for agent determination for step
0000000013.
A problem occurred when determining the recipient for step  0000000013. This problem does not lead to execution being canceled.
2) Error in resolution of rule 'AC99800002' for step '0000000013'
The function module for rule 'AC99800002' initialized an exception and returned a message ("MESSAGE ... [RAISING ...]").
3) No agent found
How can i resolve this issue?
Thanks

If you use responsibilities, you should check if you have all options covered. There shouldn't be an input variable for which no outcome is defined. So take a good look at the rule again.
And as suggested you can test it with the input variables you have in the container of the workflow.
Regards,
Martin

Similar Messages

  • Problem with business rule

    Hi all,
    I have a problem with a business rule (BR) deployed as a standalone Descision service.
    the BR consists on a simple decision table wich compare an input (bigInteger) with 50. It returns two facts (as output).
    the two conditions are confugured (i.e. <50 and >=50).
    the Decision service (stateless) is called in a simple BPEL process. in some cases the the assign activity in the bpel process rise this exception :
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result. The XPath variable or expression /ns5:callFunctionStatelessDecision/ns5:resultList/ns6:processResponse/ns6:CodeRetour is empty at line 440. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related variables to ensure the run-time data is valid. </summary></part></selectionFailure></bpelFault>
    it seems like an output of the business rule used by the assign after the invoke activity is empty.
    But in the input payload for the decision service all elements are not empty. I can't inderstand how the OBR return an empty variable?
    Any help please?

    In the taskflow you should be capable to trace step by step what happens in the execution. Does this give any clue, e.g. why sometimes the assert does not work?
    cu
    Andreas

  • Problem with Business Rules in OBPM 10.3.1 Enterprise for WebLogic

    We're having a problem with our Business Rules. We've updated two of our business rules (that are used by business rule transitions) in Studio; however, when we publish the updated process, the business rules are not updated. We cannot find anywhere in the Process Admin where to administer the rules to make sure they're overwritten.
    I've double checked, and the updated rule code is in the .project.xpdl, but for whatever reason, the rules are not being updated during the deployment. I'm sure that we've done this many times in the past, but for some reason, now it is not working.
    We're tried variations of the different versioning when we publish, and we've also tried to unpublish all of the older versions of our process, but it does not change the business rules. We can try to unpublish and undeploy, but it seems like we would lose all old instances of that process that are still running if we did that.
    Has anyone ever had this issue, or know if there is a way to effect the business rules via the process admin?

    I see what you're saying, but here's why it works the way you're observing it.
    Once deployed, the 10g business rules are edited by a business user (the owner of the rule). Changes in Studio that a developer makes to a business rule don't override the changes that the business user made.
    To let the business owner edit the rule, add a Global Interactive activity and change its property setting to edit the business rule. Put this activity in the role for the business owner (the person you want to edit the rule).
    Dan

  • Problem with scrambling rules

    Good afternoon, I have a problem with the conversion rules, when I transfer the employee does not take into account any of the scrambling rules, those made by me and with the rules that I copied by CNV_TDMS_HCM_SCRAM transaction. I understand that this conversion is performed in the task to prepare data transfer. Someone can give me an idea that I may fail to do. Somebody has documentation of Scrambling rules? Thanks in advance.
    Manuel Campos

    Thank you, when I execute the program wherever Phase or activity ID that I select, for example PC001_RULES_MAINTAIN
    It shows me this:
    Rules for packege 90042
    Rule Name                     Status         Active
    CNV_MBT_BOP             red              check
    INITIAL                           red             check
    MOVE                            red             check
    01_RVNUM_CK_DGT      red             check
    99_HR_PEVAL2              red             check
    99_PD_SEQ_NR             red             check
    ADDR_SCRAM1             green          check
    SAMP_SCR_DOM          red             check
    SAMP_SCR_FIELD        green          check
    In your package appear something like this?
    I used transaction CNV_TDMS_HCM_SCRAM to prepare and maintain customizing for
    scrambling at project or subproject level. And I made this:
    To use the SAP template, choose Copy from other Project. You can now copy a scramble
    definition. To copy the SAP template, input the following:
    Pack ID: TDHSC
    Project: *
    Subproject: *
    Process Type: R
    Select the "Get from client 000" checkbox .
    You can use a description prefix, for example SAP_, to easily identify elements. For
    example, if you use this prefix and the name of a scramble group in the template is
    HCM_DE_01, then after the copy the name is SAP_HCM_DE_01. This is useful for copying
    in add-on mode into an existing project, because it helps you to determine what was new
    from this copy.
    Then I tried to use this scrambling rules copied, but They doesn´t work.
    Thanks a lot for your help

  • Problem with Settelment Rule for iw32

    Hi,
    Good day guys
    Iam getting the problem while creating the settelment rule creation. Ive got a problem with " wa_srules-SOURCE     = '1' ".
    If i wont fill this field, settelment rule is going to be created. but i need to fill this field as per requirement. 
    Ive got a error message "Enter an Existing source assingment for souce stracutre CS.
    Plz any one guide me, how to overcome this prob
    DATA: srules TYPE srules_ext OCCURS 0,
          wa_srules TYPE srules_ext,
          lv_mandt type SYMANDT.
    DATA IT_OBJNR TYPE STANDARD TABLE OF IONRB WITH HEADER LINE.
    DATA: ls_copadata type BAPI_COPA_DATA occurs 0.
    DATA: ls_cobrb type standard table of cobrb with header line.
    IT_OBJNR-OBJNR = CAUFVD_IMP-OBJNR.
    APPEND IT_OBJNR.
    break-point.
    CALL FUNCTION 'K_SRULE_PRE_READ'
    EXPORTING
       I_PFLEGE               = ' '
    TABLES
       T_SENDER_OBJNR          = IT_OBJNR
    *   T_COBRA                =
    EXCEPTIONS
       WRONG_PARAMETERS       = 1
       OTHERS                 = 2
    CALL FUNCTION 'K_SETTLEMENT_RULE_EXISTENCE'
      EXPORTING
        objnr                = caufvd_imp-objnr
    *   FLG_LOCAL            = ' '
    * IMPORTING
    *   E_COBRA              =
    EXCEPTIONS
       RULE_NOT_FOUND       = 1
       OTHERS               = 2
    CALL FUNCTION 'K_SRULE_CREATE'
    EXPORTING
       i_objnr                   = caufvd_imp-objnr
    *     I_CHECK_ONLY_LOCAL        = ' '
    *   IMPORTING
    *     E_COBRA                   =
    EXCEPTIONS
      rule_already_exists       = 1
      OTHERS                    = 2.
    wa_srules-SOURCE     = '1'.
    wa_srules-settl_type = 'FUL'.
    wa_srules-percentage = '100'.
    *wa_srules-amount     = ''.
    wa_srules-COMP_CODE  = caufvd_imp-bukrs.
    *wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
    *wa_srules-costcenter = caufvd_imp-kostl.
    wa_srules-costcenter = '10-60'.
    APPEND wa_srules TO srules.
    wa_srules-SOURCE     = '1'.
    wa_srules-settl_type = 'PER'.
    wa_srules-percentage = '100'.
    *wa_srules-amount     = ''.
    wa_srules-COMP_CODE  = caufvd_imp-bukrs.
    *wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
    *wa_srules-costcenter = caufvd_imp-kostl.
    wa_srules-costcenter = '10-60'.
    APPEND wa_srules TO srules.
    CALL FUNCTION 'K_ORDER_SRULE_ADD'
      EXPORTING
        object_no                  = caufvd_imp-objnr
    * IMPORTING
    *   FLG_RULE_INSERTED          =
      tables
        srules                     = srules
    IF sy-subrc = 0.
      commit work.
    Endif
    Regards
    Edited by: balaji kiran on Mar 26, 2010 10:18 AM

    Hello Vitaliy,
    Nice to "see" you here
    I did try remodelling and it works fine here. A constant value rule really gets a constant value.
    The user exit option also works fine here. Here's an example of a very simple user exit for a KF:
    method IF_RSCNV_EXIT~EXIT.
      FIELD-SYMBOLS: <l_s_old> TYPE ANY,
                     <l_fillfield> TYPE ANY,
                     <l_newfield> TYPE ANY,
                     <fs_kfsource> type any.
    * Assign the references to field symbols
      ASSIGN c_r_newfield->* TO <l_newfield>.
      ASSIGN i_r_old->* TO <l_s_old>.
    * We will use the value of the 0AMOUNT KF. The value of the new KF is 0AMOUNT + 5.
      ASSIGN COMPONENT 'AMOUNT' OF STRUCTURE <l_s_old> TO <fs_kfsource>.
      <l_newfield> = <fs_kfsource> + 5.
    endmethod.
    For a KF, you can check the fields of the FACT Table (/BIx/Fzzzz) to know the field names for your source KFs.
    Hope this helps.

  • SOS Problem with navigation rules

    Hello,
    I have been stuck for some time with a navigation problem: It seems my faces DD is read but the navigations rules are not. Unfortunately it does not give me any exception. The only thing that occurs is that the home page reloads itself instead of redirecting to the second page.
    Here is my DD:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <!-- ==============================  Application  ============================== -->
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
              </locale-config>
         </application>
         <!-- ==============================  Managed Beans ============================== -->
         <managed-bean>
              <managed-bean-name>GuideSearchManagedBean</managed-bean-name>
              <managed-bean-class>com.softwareag.test_guide.web.temp.PGSearchManagedBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <!-- ==============================   Navigation rules ============================== -->
         <navigation-rule>
              <from-view-id>/home.jsp</from-view-id>
              <navigation-case>
              <from-action>#{GuideSearchManagedBean.newSearchAction}</from-action>
              <from-outcome>displayResults</from-outcome>
              <to-view-id>/errorOccured.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>Here is my jsf:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <html>
    <head>
    <title>home</title>
    </head>
    <body>
    <h:form id="guide_form">
    category
    <h:selectOneMenu id="category" value="#{GuideSearchManagedBean.category}" required="true">
    <f:selectItem itemValue="2" itemLabel="resto"/>
    <f:selectItem itemValue="1" itemLabel="bar"/>
    <f:selectItem itemValue="3" itemLabel="disco"/>
    </h:selectOneMenu>
    <br /><br />
    postcode<br /><br />
    <h:selectManyListbox id="postcodes" value="#{GuideSearchManagedBean.postcodes}" required="true">
    <f:selectItem itemValue="75001" itemLabel="75001"/>
    <f:selectItem itemValue="75002" itemLabel="75002"/>
    <f:selectItem itemValue="75003" itemLabel="75003"/>
    <f:selectItem itemValue="75004" itemLabel="75004"/>
    <f:selectItem itemValue="75005" itemLabel="75005"/>
    <f:selectItem itemValue="75006" itemLabel="75006"/>
    </h:selectManyListbox>
    <br /><br />
    name
    <h:inputText id="name" value="#{GuideSearchManagedBean.name}"/>
    <br /><br />
    with comments
    <h:selectBooleanCheckbox id="commentsExist" value="#{GuideSearchManagedBean.commentsExist}"/>
    <br /><br />
    order by
    <h:selectOneRadio id="sortOrderCriterion" value="#{GuideSearchManagedBean.sortOrderCriterion}" layout="pageDirection">
      <f:selectItem itemValue="GRADES" itemLabel="note"/>
      <f:selectItem itemValue="DB_ESTABLISHMENT_NAME" itemLabel="name"/>
      <f:selectItem itemValue="DB_POSTCODE" itemLabel="postcode"/>
    </h:selectOneRadio>
    <br /><br />
    minimum note
    <h:selectOneMenu id="minimumNote" value="#{GuideSearchManagedBean.minimumNote}">
    <f:selectItem itemValue="1" itemLabel="1"/>
    <f:selectItem itemValue="2" itemLabel="2"/>
    <f:selectItem itemValue="3" itemLabel="3"/>
    <f:selectItem itemValue="4" itemLabel="4"/>
    <f:selectItem itemValue="5" itemLabel="5"/>
    </h:selectOneMenu>
    <br /><br />
    <h:commandButton id="submit" action="#{GuideSearchManagedBean.newSearchAction}" value="Submit" />
    </h:form>
    </body>
    </html>
    </f:view>Here is my Managed bean:
    package com.softwareag.test_guide.web.temp;
    import java.rmi.RemoteException;
    import java.util.List;
    import com.softwareag.test_guide.web.util.PGFactory;
    * @author Julien Martin
    public class PGSearchManagedBean {
         private String category;
         private List postcodes;
         private String name;
         private boolean commentsExist;
         private String sortOrderCriterion;
         private int minimumNote;
         public String newSearchAction(){
              System.out.println("----------within new search action--------------");//this line never gets printed
              return "displayResults";
         public String nextAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.next();
              return issue;
         public String previousAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.previous();
              return issue;
         public String getCategory() {
              return category;
         public boolean getCommentsExist() {
              return commentsExist;
         public int getMinimumNote() {
              return minimumNote;
         public String getName() {
              return name;
         public List getPostcodes() {
              return postcodes;
         public String getSortOrderCriterion() {
              return sortOrderCriterion;
         public void setCategory(String string) {
              category = string;
         public void setCommentsExist(boolean bool) {
              commentsExist = bool;
         public void setMinimumNote(int i) {
              minimumNote = i;
         public void setName(String string) {
              name = string;
         public void setPostcodes(List list) {
              postcodes = list;
         public void setSortOrderCriterion(String string) {
              sortOrderCriterion = string;
    }Can anyone help? I am really stuck. :-)
    Julien Martin.

    Hi,
    I added a messages component to your home.jsp page and saw that the page produced validation errors (often the cause for failed navigation).
    The problem is that the beans property minimumNote expects an int but gets a String. When you change the the type in the bean to String it works.
    You will probably want to add a converter to the uicomponent to get the correct type. I'd be happy to tell you how, but I'm just starting with jsf ;-).

  • Problems with InitiateTask in Human Workflow

    Hello,
    I built a BPEL process that tries to initiate a task. Unfortunately, this doesn't work as planned. The error messages I get:
    "Faulted while invoking operation "initiateTask"
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Waiting for response has timed out. The conversation id is urn:36458921054311E18F6037C80E94B307. Please check the process instance for detail.</summary></part><part name="detail"><detail>Waiting for response has timed out. The conversation id is urn:36458921054311E18F6037C80E94B307. Please check the process instance for detail.</detail></part><part name="code"><code>0</code></part></remoteFault></bpelFault>"
    I am totally clueless as to why this error is thrown. Anybody any suggestions?
    Regards, Jeroen

    Hi Ariel,
    I'm not familiar with this particular workflow or some of your terminology, but perhaps this will help: I've found in the past, if the workflow can't resolve the agent rule, it will send to ALL possible agents. That sounds like what might be happening here - it resolves correctly on the one-level item, but cannot resolve the case where it is more than one level.
    If you've defined your rule in PFAC, you can check the box "Terminate If Rule Resolution Without Result". This is found on the bottom of the Rule Definition panel.
    If you do F1 on that checkbox here is what it says:
    Terminate if Rule Resolution has no Result
    If this flag is set, rule resolution is terminated if no valid agent is found. This results in a defective work item.
    If this flag is not set, rule resolution is not terminated if no valid agent is found. Agents of such work items are all possible task agents.
    Of course if you are using PFAC then you can do some testing there to determine why the resolution is failing.
    I hope this helps!
    Margaret

  • Technical problem with starting a PLM workflow!

    Hey!
    I am trying to start a workflow with a document, but get this message with a red light.
    Doc:10000000438-PDC-00-000,Table SWWWIHEAD cannot be written
    Anyone how now what can be wrong?
    I am quit sure that this is a technical problem.
    Thanks

    Hi.
    With help of some technical staff in our company I did manage to find out what was wrong. I am posting it hear so anyone else having this kind of problem in the future can find out of it self. &#61514;
    The reason for not starting this workflow is as follow:
    The workflow is writing to the table SWWWIHEAD. Some time’s the workflow is writing to a row/entry in the table that is all ready written. Therefore the system is returning an error message. This can be solved as follow:
    Go to transaction SM56, where it is possible to reset the buffer.
    The following field have to be filled:
    Client <relevant client>
    Object SWW_WIID
    Sub-obj
    Range 01
    Year 0000
    Global Reset X
    If this does not help, a programmer has to do a manual change in the table.
    Cheers!

  • Problem with navigation-rules

    Hello!!!
    I'm using Jboss Jbpm with JSF and I want to navigate to other page when I fill a form and I send the data that I entered. I have declare the navigation-rules but it doesn't work and I don't know why.
    In my faces-config.xml I've added the navigation-rules:
    <managed-bean>
                   <managed-bean-name>usuario</managed-bean-name>
                   <managed-bean-class>com.miApp.UserBean</managed-bean-class>
                   <managed-bean-scope>request</managed-bean-scope>
              </managed-bean>
         <navigation-rule>
                   <from-view-id>/SolicitarAlta.xhtml</from-view-id>
                   <navigation-case>
                        <from-action>#{usuario.registrar}</from-action>
                        <from-outcome>correcto</from-outcome>
                        <to-view-id>/results/correcto.jsp</to-view-id>
                   </navigation-case>
         </navigation-rule>
         The UserBean has the method registrar:
    public String registrar() {
           if(dni==null || nombre==null || apellidos==null || ocupacion==null || mail==null || tlf==null ||
    password==null)      
                return "campos-obligatorios";
           if ((mail.trim().length() < 3) ||       (mail.indexOf("@") == -1))
                          return "mail-incorrecto";
           else if(tlf.length()!=9)     return "telefono-incorrecto";
                else if(dni.length()!=8) {return "dni-incorrecto";}
           return "correcto";
         And with this line:
    <h:commandButton type="submit" value="Enviar" action="#{usuario.registrar}"/>     the method registrar is executed and I know that this method returns the string "correcto" but ... This doesn't redirect me to the page correcto.jsp
    I thought that maybe if SolicitarAlta was an xhtml file the correcto page should be also an .xhtml file. I changed it but it doesn't work.
    Any ideas? Could it be that I have to add something more in the faces-config.xml & web.xml file???
    Thx!

    I found the solution to my problem but I don't really understand why it was not working. My problem was due to the use of command button with a render set to false. I just put them at true and all my navigation rules work!
    If someone know why it was not working, I would be glad to know!

  • Problem with starting a PLM workflow!

    Hey!
    I am trying to start a workflow with a document, but get this message with a red light.
    Anyone how now what can be wrong?
    I am quit sure that this is a technical problem.
    Thanks

    Hi.
    With help of some technical staff in our company I did manage to find out what was wrong. I am posting it hear so anyone else having this kind of problem in the future can find out of it self. &#61514;
    The reason for not starting this workflow is as follow:
    The workflow is writing to the table SWWWIHEAD. Some time’s the workflow is writing to a row/entry in the table that is all ready written. Therefore the system is returning an error message. This can be solved as follow:
    Go to transaction SM56, where it is possible to reset the buffer.
    The following field have to be filled:
    Client <relevant client>
    Object SWW_WIID
    Sub-obj
    Range 01
    Year 0000
    Global Reset X
    If this does not help, a programmer has to do a manual change in the table.
    Cheers!

  • Problem with udev rule to disable touchpad when USB mouse connects

    Hi, I've been running Arch on this laptop, but I can't get this udev rule to work properly.
    What I want to happen is: when I plug in my usb mouse, the laptop touchpad is disabled, and the left and right buttons are reversed (I'm left handed)
    After following several tutorials, both from the arch wiki and other sites, I've come up with this udev rule:
    ACTION=="add", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
    ACTION=="remove", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
    And here's the script it links to (USBMouse.sh):
    #!/bin/bash
    export DISPLAY=:0.0
    synclient TouchPadOff=$(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l)
    if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l) == 1 ]]
    then
    xmodmap -e 'pointer = 3 2 1'
    fi
    if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l) == 0 ]]
    then
    xmodmap -e 'pointer = 1 2 3'
    fi
    Running the script from a terminal returns no errors and works as expected. The problem is when I plug/unplug the mouse from the usb port, nothing happens.
    I appreciate any insight you might have about how to fix this, and thank you in advance

    This has already been done. And another relevant thread.

  • Problem with academic rule in report

    Hello,
    I have an academic rule that uses the Module Booking Single callup point (0003) and the checking is provided by an user-exit
    The problem is that the rule Works fine through the transaction PIQST00 -> Change Module booking, (dialog mode) but when the hriq_student_booking function is called from a report, the rule doesn't check.
    We have another academic rules created as this one, and they work fine in both environments (dialog and through HRIQ_STUDENT_BOOKING into a report)
    I debugged the report and the value returned for this rule by sy-subrc is zero, when the expected value for a negative check result is nine
    Any comments about this will be of great help.
    Regards,
    Diego

    Hi Diego,
    Within HRIQ_STUDENT_BOOKING we have the parameters IV_DIALOG and IV_MODE control the way the function responds when error messages are returned on a module booking (including VSR rule messages). Please check how are this parameters used in your implementation of the RFC.
    I attach a brief documentation of the usage.
    <b>IV_DIALOG = D</b>.- Technical errors will stop process immediately (RETURN_CODE = 4, message in EXP_OBJECT_SUBRC). With this option business errors will be collected by message handler (filtered by user customization) and displayed by VSR tool. If there is at least one remaining error message, no database update will be possible (RETURN_CODE = 4), but if user accepted displayed messages then the database update is processed.
    <b>IV_DIALOG =B</b>.- Technical errors will stop process immediately (RETURN_CODE = 4, message in EXP_OBJECT_SUBRC). With this option business errors will be collected into global table GT_OBJECT_SUBRC, filtered by message handler and exported; if there is at least one remaining error message
    no database update is done (RETURN_CODE = 4) if there are no errors database update is processed (RETURN_CODE = 0).
    <b>IV_MODE = T</b>.- Test mode, no database update is processed,  RETURN_CODE = 0 -> update would be processed without any problems RETURN_CODE = 4 -> update would not have been processed with the given module list due to errors (all messages are collected into ET_RETURN).
    <b>IV_MODE = V</b>.-  Database update is processed if no business errors are detected (such as VSR rules).
    <b>IV_MODE = F</b>.-  Database update even if business errors are detected (Overriding rules).

  • 0PM_DS02 - Problem with Update Rule

    Hi ,
    I have installed the Standard ODS 0PM_DS02 from BI content.
    Problem is --> In Update Rule all Data Fields have been installed perfectly but all Key Fields with Blank ( No Assignment ) .
    I would like to know  what is the reason that All the KEY Fields have installed with Blank .
    Though I can do the manual assignment for characteristics like Equipment / Functional location but my specific area of Concern is what to assign to time characteristcs 0CALDAY / 0CALMONTH etc.
    I would appreciate your help in guiding me what to assign in Key fields of 0PM_DS02 update rule.
    regards
    Vishal

    Probably you have got it resolved already.  The key fields are assigned along with the data fields in the statement RESULT_TABLE[] = G_T_UPDATE_IMAGE. 
    G_T_UPDATE_IMAGE has the same structure as /BI0/APM_DS0200, which is nothing but the active data table of 0PM_DS02.  This structure gets populated in the FM BW_MCI1_KEYFIGURE_ARRAY_GET.

  • Problem with Mail Rule

    I am trying to set up a mail rule that triggers an Applescript. The Applescript will open all attachments with Preview in this case. I know the rule is being triggered because I have two actions for the rule, run the Applescript and Make a sound, and I hear the sound.
    Here is the script:
    using terms from application "Mail"
    on perform mail action with messages theMessages
    tell application "Finder" to set pathToAttachments to (path to desktop folder as string)
    tell application "Mail"
    repeat with theMessage in theMessages
    set theText to content of theMessage
    if theMessage's mail attachments is not {} then
    repeat with theAttachment in theMessage's mail attachments
    set theFileName to pathToAttachments & (theMessage's id as string) & space & theAttachment's name
    try
    save theAttachment in theFileName
    on error errnum
    end try
    tell application "Preview" to open theFileName
    tell application "Finder" to delete theFileName
    end repeat
    end if
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    (* tell application "Mail"
    set myMessages to selection
    tell me to perform mail action with messages myMessages
    end tell
    If I comment out the stub at the bottom, and run the script, it runs perfectly all the time.
    If I select the e-mail in question and trigger using *Apply Rules*, the script runs some of the time.
    I have yet to get the script to trigger on newly arriving e-mails.
    The rule is checked and I haven't found a +Apply Rules to Incoming Emails+ check box. I thought that happen automatically. Anyone have any ideas on what is going wrong or further ways I could debug it?

    Testing your script, I found that, in the few cases where it didn't work well, I could have it work properly with the following modification:
    *tell application "Preview" to open theFileName*
    *delay 1*
    *tell application "Finder" to delete theFileName*
    It should also be possible to replace *delay 1* with something better, like *repeat while … end repeat*.
    Hope it can help.

  • Problem with Business rule-Essbase Error(1042017):

    Hi,
    I am getting the following error when i run this business rule specifically.
    Detail:Cannot calculate. Essbase Error(1042017): Network error: The client or server timed out waiting to receive data using TCP/IP.  Check network connections.  Increase the NetRetryCount and/or NetDelay values in the ESSBASE.CFG file. Update this file on both client and server.  Restart the client and try again.
    I dont get this error with any other rule. I have checked the solution provided in this link
    _[http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_error/erhelp.htm#ercalc.htm]_. But this solution wont help because i dont get this error in any other rule.
    The rule i run is
    "Depreciation Value" = "Cumulative.Asset value"/ ("Assumptions_Programs"->Jul->@UDA(Entity,@NAME(@CURRMBR(Location)))->@UDA(Location,@NAME(@CURRMBR(Location)))->"Assets life in months");
    The functions in the above rule will get replaced as below
    "Depreciation Value" = "Cumulative.Asset value"/ "Assumptions_Programs"->Jul->IND_Assumptions->LOC_IND->"Assets life in months";
    If i hardcode and run, i dont get this error. Please help.
    Regards,
    Ragav.

    The reason it works when you hard code it and why it doesn't when use UDA is simply that you should never have a multiple answers in a cross dimensional. @UDA function returns multiple answers. Even if for your case it only brings back one I believe it is tripping up the calculation. Worse if you are actually bring back multiple answers for @UDA that is definitely not going to work.
    I would have to understand all your fixes above the calcultion to recommend you the best possible solution. But at least you understand why you are getting the error and what you have to fix

Maybe you are looking for