Issue with simple validation rule

Hi All,
Environment: HP app which is EPMA deployed
Version: 11.1.2.1
I have a strange issue writing a validation rule through calc mgr.
scenario: We are performing allocations over entity dimension based on %ages entered on a specific account member say 'Input%age' on total to be allocated value. For example: consider a parent entity P with 4 children as mentioned below.
P         (parent) (Type: Dynamic)
--A         (child) (Type: Store)
--B         (child) (Type: Store)
--C         (child) (Type: Store)
--D         (child) (Type: Store)
Need: The allocation should happen only when the sum of  %ages on each of the child roll up to 1 for their respective parent. Else allocation should not happen and message should be displayed to users.
The current snippet:
FIX(@Relative("P'',0))
"AllocValue"
IF('P"->'Input%age' == 1)
     'Allocvalue" = 'Input%age' * "TotalEntityValue";
ENDIF
ENFIX
Issue:
1. The script never works correctly even if the sum of %ages for all child is 1. I have tried making '1.0', '1.00' ,'100','100.00' etc but it didn't work. (Note: If user enters 0.2 as %age, the web-form shows it as 20%)
2. In case the sum of %ages is not equal to 1, allocation happens only for last child D.
3. If %age condition is removed, allocation happens as expected.
Any input or suggestion is highly appreciated.
Thanks in advance..

Perform the following check:
1. during the time of calculation the "Input%age" is one (i mean aggregated).
2. Is  your condition is valid. I mean if you have missed "BegBalance" or any valid combination.
     Best way is to try excel retrieve and match the combination with the if condition

Similar Messages

  • Issue with executing Business Rules from Planning web

    Hi,
    We are using Hyperion Planning 9.3.0.1 and we keep getting an issue with the Business Rules. We get an error if we try to run the rules from Planning web. The same rules validates and executes fine if we run it from AAS. This issue gets resolved if we restart the Planning and RMI service. But this issue keeps happening randomly. Is there a permanent resolution to it? Is it a bug or I am missing something here?
    Thanks and Regards,
    Amol
    Edited by: user638718 on Apr 7, 2009 5:20 PM

    Hi,
    Have you installed any of the patches for 9.3.0.1, I think it goes up to 9.3.0.1.09
    One of the fixes was :-
    8-665086601 (6588823) – When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established. The time interval is specified in milliseconds and defaults to 300,000 (five minutes).
    Though I know there has been more attention to fixing known issues on 9.3.1 than 9.3.0.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Issues with simple cron job to query database

    Hi all,
    This is really a mix, of both a database issue and a Linux issue, so I thought I'd post it here to get the most visibility. I have been looking into this, and also had a couple other DBA's at my company help, and we are not able to figure it out, so I thought I'd post it here. Basically, I have a simple shell script that is just doing a sqlplus connection to the database and querying V$INSTANCE. When I run the script from the command line, it runs fine, but for the life of me, I can't get it to run from the crontab.
    I'm running Oracle 10.1.0.3.0 on a RedHat ES Linux release 3 (Red Hat Enterprise Linux AS release 3 (Taroon Update 5) server. This is all local on the server - the database is on this server, and this is also where I'm running the script.
    I've made the script as simple as possible, like this:
    #!/bin/sh
    sqlplus / as sysdba <<EOF
    Select * from v\$instance;
    EOF
    When I run this script from the command line, it is running fine. But then I put it in a crontab entry like this:
    00 * * * * /home/oracle/scripts/cron_test.sh > /home/oracle/scripts/cron_test.log 2>&1
    And I am seeing this in the logfile:
    Connected to an idle instance.
    SQL> SQL> Select * from v$instance
    ERROR at line 1:
    ORA-01034: ORACLE not available
    SQL> SQL> Disconnected
    At first glance, it seems like a simple issue with environment variables not being set properly, but I have tested this to exhaustion. I've put in all of the environment variables into the shell script to duplicate what I have on the command line, but it still won't work. I've checked on just about anything else I could think of - looked at the tnsnames and listener config, looked at the profile from the crontab in /etc/profile, nothing works...
    And on any other server that I test this on, it all works fine and as expected. So I'm trying to figure out why I'm only having this issue on this one particular server?? Some kind of server config or setting that could be causing it?
    I appreciate any comments or tips!!
    Thanks,
    Brad

    Done. Here is the output from the command line:
    AGENT_HOME=/u01/app/oracle/product/10.2.0/agent10g
    _=/bin/env
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=rlldb.celgene.com
    INPUTRC=/etc/inputrc
    JAVA_HOME=/usr/java/j2re1.4.2_08/
    LANG=en_US.UTF-8
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LL_ALL=en_US
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/oracle
    MANPATH=:/opt/IBM/director/man
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1
    ORACLE_SID=rlldb
    PATH=/u01/app/oracle/product/10.1.0/Db_1/bin:/usr/java/j2re1.4.2_08//bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/IBM/director/bin:/home/oracle/bin:/sbin://u01/app/oracle/product/10.1.0/Db_1/OPatch:/u01/app/oracle/dbvisit/dbvisit:/u01/app/oracle/product/10.1.0/Db_1/bin
    PWD=/home/oracle/scripts
    SHELL=/bin/bash
    SHLVL=2
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_CLIENT=10.20.241.84 2988 22
    SSH_CONNECTION=10.20.241.84 2988 10.20.1.29 22
    SSH_TTY=/dev/pts/4
    TERM=xterm
    USER=oracle
    And the output from the cron run:
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1
    ORACLE_SID=rlldb
    PATH=/usr/bin:/bin:/u01/app/oracle/product/10.1.0/Db_1/bin
    PWD=/home/oracle
    SHELL=/bin/sh
    SHLVL=2
    _=/usr/bin/env
    And the diff of the 2:
    1,4d0
    < AGENT_HOME=/u01/app/oracle/product/10.2.0/agent10g
    < _=/bin/env
    < G_BROKEN_FILENAMES=1
    < HISTSIZE=1000
    6,11d1
    < HOSTNAME=rlldb.celgene.com
    < INPUTRC=/etc/inputrc
    < JAVA_HOME=/usr/java/j2re1.4.2_08/
    < LANG=en_US.UTF-8
    < LESSOPEN=|/usr/bin/lesspipe.sh %s
    < LL_ALL=en_US
    13,16d2
    < LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    < MAIL=/var/spool/mail/oracle
    < MANPATH=:/opt/IBM/director/man
    < ORACLE_BASE=/u01/app/oracle
    19,21c5,7
    < PATH=/u01/app/oracle/product/10.1.0/Db_1/bin:/usr/java/j2re1.4.2_08//bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/IBM/director/bin:/home/oracle/bin:/sbin://u01/app/oracle/product/10.1.0/Db_1/OPatch:/u01/app/oracle/dbvisit/dbvisit:/u01/app/oracle/product/10.1.0/Db_1/bin
    < PWD=/home/oracle/scripts
    < SHELL=/bin/bash
    PATH=/usr/bin:/bin:/u01/app/oracle/product/10.1.0/Db_1/bin
    PWD=/home/oracle
    SHELL=/bin/sh23,28c9
    < SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    < SSH_CLIENT=10.20.241.84 2988 22
    < SSH_CONNECTION=10.20.241.84 2988 10.20.1.29 22
    < SSH_TTY=/dev/pts/4
    < TERM=xterm
    < USER=oracle
    _=/usr/bin/env-----
    I've even gone to the extreme, of taking every single environment variable from my command line environment, and putting all of them into the shell script. but still no luck... I've also contacted my Linux SysAdmins, to see if they have any thoughts/input on this.

  • Issues with Simple Lists in service requests

    We are using Service Manager 2012 and have run into a problem with simple lists within the service requests we created.  We believe the issues started after we upgraded to Service Manager SP1 and Silverlight 5.1.  What happens is you can select
    one of the options in the simple list, but if you decide to change back to the original option, the system won't allow it.  In the case where there might be three options in the simple list (i.e. New, Change, Delete), you can select each one once, but
    if we try to change it back to any of the other options the system won't allow it.  We tested all of this before going live and everything was working, but just before we went live SP1 came out and so we elected to upgrade to it first.  We then needed
    to upgrade to Silverlight SP1 to work with Service Manager SP1.  We retested all of our service requests again just before going live, but didn't think we needed to go through every simple list so we didn't retest this.  Since then the simple lists
    are problematic.  Has anyone else experienced this and if so is there a fix that will correct this issue?

    Yes!
    We submitted a business impact statement back in February and after pushing them on a weekly basis, we finally received word that we will be receiving a hot fix next week.  Until we actually receive the hot fix and confirm that it works, I will wait
    to post another update on this.
    With that said, they came up with a temporary workaround about 2-3 weeks ago.  This is the message regarding the temporary fix that we received from the engineer that has been working on the issue:
    After doing code review I identified the regression was introduced in the binaries that are included as part of this Silverlight XAP file:
    RequestOfferingSilverlightModule.xap. As we discussed on the phone going back to the pre SP1 version means you will lose any enhancements/fixes that were introduced in SP1. Looking at the Change history for this module I only see two changes
    that were introduced in SP1 and those changes are as follows:
    The text field control only shows the first three lines.
    Hierarchical support for List Items in Portal
    To confirm my findings I replaced this XAP file with a pre SP1 version and I couldn’t repro the issue in my lab. I also confirmed implementing this module I lose the
    above fixes that were introduced in Sp1.
    To implement the workaround, please follow the below steps:
    Connect to the Web Content Server,  locate the following directory:
    C:\inetpub\wwwroot\System Center Service Manager Portal\ContentHost\Clientbin
    Rename the following file RequestOfferingSilverlightModule.xap
    to RequestOfferingSilverlightModule.xap.org
    Copy the attached file RequestOfferingSilverlightModule.xap to the folder:
    C:\inetpub\wwwroot\System Center Service Manager Portal\ContentHost\Clientbin
    Restart IIS by issuing the following command at the command prompt:
    iisreset
    Clear the client side cache and see if you can reproduce the issue.
    Once confirmed the issue doesn’t reproduce, please proceed with testing all scenarios that make use of the Self Service Portal.
    If you don't have the pre SP1 version of the file I'm sure you can get it from Microsoft.  We are not using hierarchical lists so the temporary fix is currently working for us without any issues.

  • Issue with FI Validation check Screen

    Hello Friends,
    I am having an issue with creating FI validation, specifically the check tab. I need to input BSEG-GSBER = 'EES', but I dont see BSEG in the list of structures. How can I add it?
    Thanks.
    Zack

    Hi,
    I have asked to check whether the BSEG structure is allowed to be used in the Pre-requisits part of the validation or not.
    Also check that you are defining the validation step at level 2 (Line Item level) or at level 3 (Complete Document Level).
    As level 1 (Header Level) does not allow the BSEG structure.
    Regards,
    Gaurav

  • Issue with FIELD VALIDATION in modify status

    I have a problem with a validation of field of a service request.
    My problem is this:
    I created this type of validation for the field STATE:
    ([<Status>] = LookupValue ("SR_STATUS", "Open") AND
    [<AccountName>] = 'TO CHANGE') OR
    ([<Status>] = LookupValue ("SR_STATUS", "Open") AND
    [<AccountName>] = 'TO BE DEFINED') OR
    ([<AccountName>] = 'SPAM') OR ([<AccountName>] <> 'SPAM' AND
    [<AccountName>] <> 'TO CHANGE' AND [<AccountName>] <> 'TO BE DEFINED' AND
    [<plReason_of_the_contact_ITAG>] <> LookupValue ("OCC_CUST_LOV_
    SR_10 "," To be defined "))
    Now say that the field "Account Name" is set with 'TO CHANGE' and the field "Reason of the contact" is set with "To be defined" and I try to close the service request, the validation works correctly and blocks me to closed the SR ([<Status>] = LookupValue ("SR_STATUS", "Open") AND
    [<AccountName>] = 'TO CHANGE').
    Perfect!
    Now let's say I want to change the "Account Name" and "Reason of the contact" then set the ticket status to closed.
    Now the problems are:
    If I do NOT go into edit status of the ticket (edit button) and return on time then the "Account Name"=Jack first "Reason of the contact"=information and then was put Status as Closed, validation allows me to close the ticket. Perfect.
    But if I go into Edit state (with the Button Edit SR) of the ticket and change simultaneously "Account Name"=Jack and "Reason of the contact"=information and Status="Closed" and then do Save, validation is not working properly and gives me the message as if I had not changed the Account Name.
    She acts as if he hadn't interpreted the change of fields.
    Please Help me!
    Any suggestion??

    There is no limit in Adobe form, that means you need to check the backend service, where the field is truncated and change the ABAP data type from the mentioned char255 or something to string for example. Otto

  • Issue with migrated transformation rule after transport

    Hello all,
    We have migrated couple of update rules and transfer rules to transformation rules. All the transformation rules are active in development environment.
    The issue is when we transport these transformation rules to QA, one of the fields of datapacket dimension "RECORD" becomes &R1& in the global structure of start routine and therefore, transport fails in QA. Along with this we had another issue that if we add any additional fields in the cube or ODS structure, the global structure in start routine doesn't change after transport in QA. Basically, it seems like it doesn't do anything when we do transport.
    We tried couple of things by transporting entire flow inclding target and source objects, we also tried transporting only transformation with overwrite mode. But none of the things worked. We also have logged the message with SAP.
    SAP suggested us to open the QA environment and perform the change manually. We did it and obviously we could activate the transformation rules. But when we tried to re-transport the transformation, it is keep failing with the error "Syntax Error". My assumption has after the transport, the field has become &R1& again.
    Has anybody faced such issue? We are on Ehp1 SP7.
    - Danny

    Thanks Murali,
    Yes as I mentioned SAP suggested us to open the box and do it manually, but once we are done with the manual changes, we tried transporting the same transformation rule again, which I guess going to be the case in case of any future enhancement. Transport failed and it says "Syntax Error".
    The transformations we activated manually in the target system are active, but when we try to load the data, it throws the exception error.
    Any clue ?? Is it working fine in your system after you did manual changes? Did all future transport go well ?
    - Danny

  • Having issues with Simple FTP configuration

                       I am attempting to set up FTP behind this new CISCO ASA 5510 we just bought. I haven't configured a cisco device in 5 years, so I am having issues., i think i am close, but need a little help to get me over the hump. If I FTP from outside (fixed) IP it connects and takes the password but hangs on PASV and gives no data connection below is my configuration.  Can anyone help? I am hoping it is simple since I seem to have the connection inside correct. and yes you can connect to the FTP server from inside without issue.
    ASA Version 8.2(5)
    hostnameASA1
    enable password 8Ry2YjIyt7RRXU24 encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    names
    interface Ethernet0/0
    nameif External
    security-level 0
    ip address y.y.y.y 255.255.255.0
    interface Ethernet0/1
    nameif Internal
    security-level 100
    ip address x.x.x.x. 255.255.255.0
    interface Ethernet0/2
    shutdown
    no nameif
    no security-level
    no ip address
    interface Ethernet0/3
    shutdown
    no nameif
    no security-level
    no ip address
    interface Management0/0
    nameif management
    security-level 100
    ip address 192.168.1.1 255.255.255.0
    management-only
    ftp mode passive
    dns domain-lookup External
    dns server-group DefaultDNS
    name-serverg.g.g.g.g.
    name-server h.h.h.h.
    access-list 100 extended permit tcp any host y.y.y.y eq ftp
    access-list 100 extended permit tcp any host y.y.y.y eq ftp-data
    pager lines 24
    logging enable
    logging asdm informational
    mtu External 1500
    mtu Internal 1500
    mtu management 1500
    no failover
    icmp unreachable rate-limit 1 burst-size 1
    no asdm history enable
    arp timeout 14400
    global (External) 101 interface
    nat (Internal) 101 0.0.0.0 0.0.0.0
    static (Internal,External) tcp interface ftp-data 192.168.0.69 ftp-data netmask 255.255.255.255
    static (Internal,External) tcp interface ftp 192.168.0.69 ftp netmask 255.255.255.255
    access-group 100 in interface External
    route External 0.0.0.0 0.0.0.0 L.L.L.L 1
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    timeout tcp-proxy-reassembly 0:01:00
    timeout floating-conn 0:00:00
    dynamic-access-policy-record DfltAccessPolicy
    http server enable
    http 192.168.1.0 255.255.255.0 management
    http 192.168.0.0 255.255.255.0 Internal
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto ipsec security-association lifetime seconds 28800
    crypto ipsec security-association lifetime kilobytes 4608000
    crypto ca trustpoint _SmartCallHome_ServerCA
    crl configure
    crypto ca certificate chain _SmartCallHome_ServerCA
    certificate ca
      quit
    telnet timeout 5
    ssh timeout 5
    console timeout 0
    dhcpd address 192.168.1.2-192.168.1.254 management
    dhcpd enable management
    threat-detection basic-threat
    threat-detection statistics access-list
    no threat-detection statistics tcp-intercept
    webvpn
    class-map INSPECTION_DEFAULT
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
    parameters
      message-length maximum client auto
      message-length maximum 512
    policy-map global_policy
    class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect h323 h225
      inspect h323 ras
      inspect rsh
      inspect rtsp
      inspect esmtp
      inspect sqlnet
      inspect skinny 
      inspect sunrpc
      inspect xdmcp
      inspect sip 
      inspect netbios
      inspect tftp
      inspect ip-options
    service-policy global_policy global
    prompt hostname context
    call-home reporting anonymous
    Cryptochecksum:9c15122a54bf6b87ce5ab8be0f23e9d5
    : end

    First of all Thanks! So I pulled those commands off. 
    I am hitting the FTP server behind the firewall as you can see from my first log... It dies on PASV which is why I thought I needed that FTP-Data.
    000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> 220-FileZilla Server version 0.9.41 beta
    (000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> 220-written by Tim Kosse ([email protected])
    (000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> 220 Please visit http://sourceforge.net/projects/filezilla/(000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> USER administrator(000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> 331 Password required for administrator(000018)1/25/2013 11:48:21 AM - (not logged in) (72.90.68.10)> PASS *****(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> 230 Logged on(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> CWD /(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> 250 CWD successful. "/" is current directory.(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> TYPE A(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> 200 Type set to A(000018)1/25/2013 11:48:21 AM - administrator (72.90.68.10)> PASV(000018)1/25/2013 11:48:21 AM - administrator (ip.ip.ip.ip.ip)> 227 Entering Passive Mode (72,90,69,2,10,125)
    Here's what the Log shows when I hit the FTP server from the outside...
    6
    Jan 25 2013
    08:48:52
    72.90.68.10
    39185
    72.90.69.2
    21
    Deny TCP (no connection) from ip.ip.ip.ip/39185 to outsideinterfaceip/21 flags PSH ACK on interface External
    Does that help?
    Thanks again? Cyclist eh? Nice, that's my latest passion and it will probably send me to the poor house with the amount of times I crash.

  • Issue with data Validation while migrating from one application to another

    Hi All,
    I am having a strange issue Kindly please help me .
    I have a data form which have data validation on each cell.The dataform is quite large and contain data for 4 accounts and year (Jan to Dec) combination .The issue is that I when I migrate this data form to other application which is just the replica of the main application. The validation on each cells changes its reference points.
    I have 5 more similar data form and I need to migrate then to other application and also on production sever. Is there any way that while exporting and importing them using formutil.cmd or other way that the validation cells reference does not change its reference point.
    For ex I have validation on Cell A5,A6..........AA6 after migrating it changes to A1,A1.........AA1.
    I am using 11.1.2.1.0 version of Hyperion Planning
    Kindly please help.
    Thanks in advance
    Vikash
    Edited by: user11391767 on Nov 30, 2011 10:47 AM

    Hi Mehmet,
    I tried using the FormDefUtil.cmd .But by using this the reference points of validation changes to first cell when imported.
    Thanks
    Vikash

  • Issue with client-side rules after Groupwise to Office365 migration

    We are preparing for migration from Groupwise to Office365 and face an issue for which I do not have a solution for: Groupwise rules currently contain functional mailboxes that include rules to implement business logic. When migrating these mailboxes to
    Office365, the rules must be applied manually (since Quest can't handle it). So far so good. However, some of these business logic rules are client-side rules, which will never be executed because it's a functional mailbox.
    The issue arises among multiple mailboxes, for instance for a customer-receive mailbox that moves incoming mail based on subject to a sub-folder.
    Anyone an idea how to implement this, without having to use a logged-on user/outlook client?
    Please advice.
    Gr, Mike Schmeitz

    We are preparing for migration from Groupwise to Office365 and face an issue for which I do not have a solution for: Groupwise rules currently contain functional mailboxes that include rules to implement business logic. When migrating these mailboxes
    to Office365, the rules must be applied manually (since Quest can't handle it). So far so good. However, some of these business logic rules are client-side rules, which will never be executed because it's a functional mailbox.
    The issue arises among multiple mailboxes, for instance for a customer-receive mailbox that moves incoming mail based on subject to a sub-folder.
    Anyone an idea how to implement this, without having to use a logged-on user/outlook client?
    Please advice.
    Gr, Mike Schmeitz
     

  • Issue with simple Backup Script_RoboCopy

    I'm trying to create a simple backup script with robocopy that creates a directory with the current date for back ups once a week, without replacing the previous backup folder. 
    I'm getting a syntax error 
    2014/01/21 09:33:18 ERROR 123 (0x0000007B) Accessing Destination Directory C:\Backup"2014-01-21"\ The Filename, directory name, or volume label syntax is incorrect. 
    Here is my script:
    @echo off
    Title TEST BACKUP
    Color 0a
    SET folderdate="%date:~10,4%-%date:~4,2%-%date:~7,2%"
    md C:\Backup\%folderdate%
    cd C:\Backup\%folderdate%
    ROBOCOPY "C:\School" "C:/Backup\%folderdate%" /MIR /COPYALL /R:3 /W:3 /XO 
    pause
    Thanks in Advance for any help!
    Logan

    The quotation marks around the folderdate variable are being inserted into destination folder in the call to robocopy.
    Remove the quotation marks from your folderdate line:
    @echo off
    Title TEST BACKUP
    Color 0a
    SET folderdate=%date:~10,4%-%date:~4,2%-%date:~7,2%
    md C:\Backup\%folderdate%
    cd C:\Backup\%folderdate%
    ROBOCOPY "C:\School" "C:/Backup\%folderdate%" /MIR /COPYALL /R:3 /W:3 /XO
    pause
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Issue with a Validation Class

    Hello all,
    I have the following validating class that is supposed to check the usernames and passwords held in a file against what the user has typed into a form;
    package bus;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import org.springframework.validation.Errors;
    import org.springframework.validation.Validator;
    import bus.Credentials;
    public class LogonValidator implements Validator {
        public boolean supports(Class clazz) {
            return clazz.equals(Credentials.class);
        public void validate(Object obj, Errors errors) {
             Credentials credentials = (Credentials) obj;
             String usernameCompare = credentials.getUsername();
             String passwordCompare = credentials.getPassword();
             String username;
              String password;
              String[] data;
             try {
                BufferedReader in = new BufferedReader(new FileReader("C:/Documents and Settings/Jaz/workspace/OBS/war/LoginInfo.txt"));
                String inLine = null;
                while ((inLine = in.readLine()) != null) {
                     data = inLine.split(",");
                     username = data[0];
                     password = data[1];
                   if (((username.toString()).equals(usernameCompare))== false){
                         errors.rejectValue("username", "error.login.invalid-user",
                                   null, "Value required.");
                   else{
                   if (((password.toString()).equals(passwordCompare)) == false){
                              errors.rejectValue("password", "error.login.invalid-pass",
                                        null, "Incorrect Password.");     
               in.close();
          }catch (IOException e){
    }the file the class is to read from (LogonInfo.txt) intially contained only;
    guest,guestand the app worked perfectly fine. However when more entries were added as such;
    guest,guest
    vip,vip
    someone,someone
    nobody,nobodythe form did not validate anything anymore. When I enter a valid username and password that is found in the txt file it simply says value required. Even if I use the initial entries of guest. Im completely lost with this one. Can anyone help?
    Thank You

    Thank you very much for your help. I have amended the code as such;
    while ((inLine = in.readLine()) != null) {
                     data = inLine.split(",");
                     username = data[0];
                     password = data[1];
                   if (username.equals(usernameCompare) && password.equals(passwordCompare)) {
                       break;
                if (username.equals(usernameCompare)== false && password.equals(passwordCompare)){
                             errors.rejectValue("username", "error.login.invalid-user",
                                       null, "Value required.");
                 else{
                 if (password.equals(passwordCompare) == false && username.equals(usernameCompare)){
                             errors.rejectValue("password", "error.login.invalid-pass",
                                       null, "Incorrect Password.");
               } I thought this would have worked, however it validates the username and password even if both are incorrect. What I would have expected it to do is to validate only if both username and password were correct.
    Also if the username was correct and password incorrect display the appropriate error message. Again if the password was incorrect and the username correct display the error message.
    I dont understand why this is not working.
    Message was edited by:
    Jazman

  • Issue with using validation return-to="someAction.do"

    I've an action with the following definition.
    @jpf:validation-error-forward return-to="someAction.do" name="failure"The problem is that "someAction.do" requires a specific form bean as argument. If it is implicitly forwarded there, the form bean is not properly setup. Additionally, there will be lots of error logs because the request parameters does not populate right into "someAction.do"'s form bean.
    I notice that I can get around this if I move all validation logic from form bean into the Action method.
    ... // manual validations
    if (validationFailed){
      FormBeanB newFormBean = new FormBeanB(... ...);
      return new Forward("failure", newFormBean)
    }Effectively, I'm bypassing the implicit call to FormBean's validate method, and do my own manual validation. But this is not the best design.
    Is it possible to disable struts call to validate() method, and I'll manually call them from action method, and handle the forward?

    I've an action with the following definition.
    @jpf:validation-error-forward return-to="someAction.do" name="failure"The problem is that "someAction.do" requires a specific form bean as argument. If it is implicitly forwarded there, the form bean is not properly setup. Additionally, there will be lots of error logs because the request parameters does not populate right into "someAction.do"'s form bean.
    I notice that I can get around this if I move all validation logic from form bean into the Action method.
    ... // manual validations
    if (validationFailed){
      FormBeanB newFormBean = new FormBeanB(... ...);
      return new Forward("failure", newFormBean)
    }Effectively, I'm bypassing the implicit call to FormBean's validate method, and do my own manual validation. But this is not the best design.
    Is it possible to disable struts call to validate() method, and I'll manually call them from action method, and handle the forward?

  • Having issues with simple serial communication.

     I followed a tutorial online to start learning basic serial communication. The tutorial involved shorting pins 1 and 3 on the Comm 1 port, and writing a simple program (attached). I edited the program a little, to show the varied results that I get when trying to write and read a simple phrase via serial port. 
    Could someone explain what causes the kind of result shown in "Serial Comm Example.png"? I believe it has to do with timing. Why would only parts of the phrase be transmitted?
    Thanks,
    Sarah
    Solved!
    Go to Solution.
    Attachments:
    Serial Comm Example.vi ‏30 KB
    Serial Comm Example.png ‏139 KB

    sarahzig wrote:
    The tutorial involved shorting pins 1 and 3 on the Comm 1 port
    Shouldn't that be pins 2 and 3?  On a standard DB-9 serial port, pin 2 is the Recieve and pin 3 is the Transmit.
    Now for your code...
    1. Move the Configure Serial Port to be before the loop.  You only need to configure the port once.
    2. Close the port after the loop.
    3. Handle your error after the close.
    4. Stop your loop on an error or the stop button was pressed.  You will need an OR in there.
    5. No need for the Flush Buffer function.  Remove it.
    6. Using the Bytes At Port is a dangerous thing.  It introduces all kinds of interesting race conditions.  Instead, tell the VISA Read to read the number of bytes you expect to read.
    6a. Alternatively, be sure to send an End Of Line character at the end of your sent data and set the number of bytes to read to something a lot more than you would ever expect to read.  The VISA Read will stop reading when it a) sees the number of bytes it was told to read, b) sees the termination character (currently enabled and set to a Line Feed, which is part of the End Of Line), or c) the timeout happens.  Whichever happens first.
    7. With 6, the wait is no longer needed.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Issue with WPF validation(IDataErrorInfo) and loading User control Dynamically

    I have a user control and i use (IDataErrorInfo) for validation the problem is when i load User control Dynamically the validation not appears for the first time but when i load it in design time it works what is the problem ? here is the user control
    <UserControl x:Class="WeaponLibrary.WeaponUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:WeaponLibrary"
    xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
    xmlns:ad="clr-namespace:DataAccessClassLibrary.ValidationRules;assembly=DataAccessClassLibrary"
    mc:Ignorable="d"
    d:DataContext="{d:DesignInstance local:WeaponUserControlViewModel}"
    Height="700" Width="730" FlowDirection="RightToLeft" Loaded="UserControl_Loaded" >
    <AdornerDecorator>
    <Expander IsExpanded="True" >
    <DockPanel>
    <WrapPanel DockPanel.Dock="Top" DataContext="{Binding Path=SelectedWeapon}">
    <StackPanel Width="315" Margin="20,0,10,0">
    <ComboBox x:Name="CmbWeaponType" IsReadOnly="True" IsEditable="True"
    ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor,
    AncestorType={x:Type UserControl}}, Path=DataContext.WeaponTypeList,ValidatesOnNotifyDataErrors =True,ValidatesOnDataErrors=True,
    NotifyOnValidationError=True,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="weaponTypeName" SelectedValuePath="ID" >
    <ComboBox.SelectedValue>
    <Binding Path="weaponTypeID" Mode="TwoWay"
    UpdateSourceTrigger="PropertyChanged" ValidatesOnNotifyDataErrors="True" NotifyOnValidationError="True">
    </Binding>
    </ComboBox.SelectedValue>
    </ComboBox>
    </StackPanel>
    <StackPanel Width="315" Margin="20,0,10,0" >
    <TextBox x:Name="TxtWeaponNumber" Width="315" Text="{Binding weaponNumber,UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True ,ValidatesOnNotifyDataErrors=True,ValidatesOnDataErrors=True,NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True,ValidatesOnExceptions=True}" >
    <!--<TextBox.Text>
    <Binding Path="weaponNumber">
    <Binding.ValidationRules >
    <ad:RequiredRule ValidatesOnTargetUpdated="True" />
    </Binding.ValidationRules>
    </Binding>
    </TextBox.Text>-->
    </TextBox>
    </StackPanel>
    <StackPanel Width="315" Margin="20,0,10,0">
    <TextBox x:Name="TxtOwnership" Width="315"
    controls:TextBoxHelper.IsWaitingForData="True"
    Text="{Binding Path=ownership}" />
    </StackPanel>
    <StackPanel Width="315" Margin="20,0,10,0">
    <TextBox x:Name="TxtMagazineNumber" Width="315"
    controls:TextBoxHelper.IsWaitingForData="True"
    Text="{Binding Path=magazineNumber}" />
    </StackPanel>
    <StackPanel>
    <TextBox x:Name="TxtNotes" Margin="20,0,10,0" Width="660" Height="100"
    controls:TextBoxHelper.IsWaitingForData="True" Text="{Binding Path=note}" />
    </StackPanel>
    <StackPanel Width="660" Margin="10,10,10,0">
    <TextBlock Text="{Binding AllErrors}" Foreground="Red" >
    </TextBlock>
    </StackPanel >
    </WrapPanel>
    <DataGrid x:Name="DgvWeapons" Margin="0,10,0,10" VerticalContentAlignment="Center" ItemsSource="{Binding WeaponsList, Mode=OneWay,ValidatesOnNotifyDataErrors=False,NotifyOnValidationError=False}"
    HorizontalContentAlignment="Center" IsReadOnly="True" AlternatingRowBackground="{DynamicResource AccentColorBrush4}" SelectionMode="Single"
    CanUserDeleteRows="False" CanUserAddRows="False" AutoGenerateColumns="False" Width="657" SelectedItem="{Binding SelectedWeapon,ValidatesOnNotifyDataErrors=False,NotifyOnValidationError=False}" MouseLeftButtonDown="DgvWeapons_MouseLeftButtonDown">
    <DataGrid.Columns>
    <DataGridTextColumn Width="100" Binding="{Binding Path=WeaponTypeName}" />
    <DataGridTextColumn Width="100" Binding="{Binding Path=weaponNumber}"/>
    <DataGridTextColumn Width="100" Binding="{Binding Path=ownership}"/>
    <DataGridTextColumn Width="100" Binding="{Binding Path=magazineNumber}"/>
    <DataGridTextColumn Width="100" Binding="{Binding Path=note}"/>
    </DataGrid.Columns>
    </DataGrid>
    </DockPanel>
    </Expander>
    </AdornerDecorator>
    </UserControl>
    here is the code:
    var tabItem = new TabItem { Header = item.FormName };
    var adornerDecorator = new AdornerDecorator();
    var stackPanel = new StackPanel();
    stackPanel.Children.Add(item.MainForm);
    adornerDecorator.Child = stackPanel;
    tabItem.Content = adornerDecorator;
    tabItem.SetValue(ControlsHelper.HeaderFontSizeProperty, 18.0);
    MainTabControl.Items.Add(tabItem);

    hi
    i tried your way to know if there is an error
    the result is yes
    for the implementation of IDataErrorInfo
    here is the code :
    public string Error
                get
                    if (string.IsNullOrEmpty(weaponNumber))
                        return "error 1";
                    if (weaponTypeID == null || weaponTypeID == new Guid())
                        return "error2";
                    return string.Empty;
            public string this[string columnName]
                get
                    if (columnName == "weaponNumber")
                        bool valid = !string.IsNullOrEmpty(weaponNumber);
                        if (!valid)
                            return "error1";
                    if (columnName == "weaponTypeID")
                        bool valid = weaponTypeID != null && weaponTypeID != new Guid();
                        if (!valid)
                            return "error2";
                    return null;

Maybe you are looking for

  • Fastest iPod Video Converter?

    I have an intel iMac, equipped with both Mac OS X and Windows XP. Mac OS X has Quicktime Pro and Flip4Mac WMV PIugin. I'm looking for the fastest video to .mp4 converter that can convert .avi and/or .mov files. Currently, I am using iSquint. It's pre

  • Map Loader and Check In apps

    My 808 pureview crashed a couple of weeks ago and now both the map loader and check in apps are not working I get a system error on the Check In app and a map loader error message when I try opening that app. I've done a firmware reinstall to see if

  • How to display XSL file to ASPX in dreamweaver

    Hi, Just wondering how to display XSL file in ASPX page? I normally do it in ASP page by using server behaviour XSLT transformation and bind it to ASP page and this works very well. Now I am trying to use the same method and using ASPX page this time

  • Adobe AIR application file types

    Hello everyone, I dont know how to go about this but i was wondering how possible it is to create an application with its own filetype using the AIR application descriptor xml file in such a way that everytime a file is created from that Air App, it

  • Lightroom 5 Download - Where do I find it?

    I recently bought Lightroom 5 (Education version) and have a card with a code on it for serial number retrieval.  The instructions on the box sent me to www.adobe.com/go/eduverify.  When I went to this page, it didn't actually have Lightroom as an op