Validation Query: Modify Resource Name

I have a validation check on one of my attributes in a entity object. When the error message is thrown it includes the attribute name at the front of the message error. Is there any way to modify that? I don't want the user seeing the name of the attribute. Alternatively I would like it to default to "Error" and then the message included in the validation check.
Example:
Name: This name already exists.
to
Error: This name already exists.
Thanks,
Tim

hi Tim
Have you looked at the error reporting customizations in "SRDemoSampleADFBC" in the oracle.srdemo.view.frameworkExt.SRDemoPageLifecycle class?
Maybe that code could help you find the answers to your error reporting questions?
success
Jan Vervecken

Similar Messages

  • NiRFSG Initialize​.vi Error: AWG Resource Name is invalid

    Hi,
    I using a PXIe-5442 Arbitary Waveform Generator and a PXI-5610 RF Upconverter. The PXI-5610 RF Upconverter is PXI1Slot5 inside the MAX and the PXIe-5442 AWG is PXI1Slot7. 
    When I start http://ftp.ni.com/pub/devzone/epd/rfsg-generate-f​m.vi  from http://zone.ni.com/devzone/cda/epd/p/id/5620 I get error messages. 
    For Resource Name = PXI1Slot5
    code -1074117675
    niRFSG Initialize.vi<ERR> A session cannot be created because the AWG Resource Name in invalid. Specifty the AWG Resource Name in MAX by right-clicking on the upconverter and selecting Properties. If you are specifying the AWG via the Option String, ensure the AWG Resource Name is valid.
    For Resource Name = PXI1Slot7
    code -1074117636
    niRFSG Initialize.vi<ERR> The device specified is not supported by this driver.
     which is correct, because PXI1Slot7 is the AWG and the VI is just using niRFSG VIs.
    When I am using a selector instead of the Option String, I only can select the PXI-5610 RF Upconverter is PXI1Slot5, but I am still getting the same error message.
    Solved!
    Go to Solution.

    Hi,
    I am trying to get the Packet-based Digital Link Example (https://decibel.ni.com/content/docs/DOC-18801) running on a RF Upconverter PXI-5610 and a AWG PXIe-5442 using the NI-RFSG and NI-FGEN drivers. The Upconverter and AWG should run as the transmitter while a USRP run as the receiver.
    After linking both cards in MAX and replacing the niUSRP functions with the niRFSG functions inisde the USRP Packet Transmitter.vi I received the following error message:
    code -1074118136
    niRFSG Write Arb Waveform (Complex DBL).vi<ERR> The AWG reported the following error:
    You cannot write data outside the boundaries of your waveform. Make sure you are not trying to write more data than your waveform can accomoate and that your write location and write offset are set correctly.
    Status Code: -200311
    I was able to solve this error by inserting the niRFSG Clear All Arb Waveforms.vi inside the transmitting loop. Now no error message appears anymore, but I can't receive any packets with the USRP Packet Receiver.vi. I also noticed the status LED "ACTIVE" at the front of the card is not on when the VI is running. When I am using the Soft Front Panel the LED turns on.
    Thanks in advance!
    Attachments:
    USRP Packet Transmitter for PXI-5610 and PXIe-5442.vi ‏60 KB

  • SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007

    Can you please help me to write an SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007. Thanks!!

    Refer
    http://gallery.technet.microsoft.com/projectserver/Server-20072010-SQL-Get-a99d4bc6
    SELECT
    dbo.MSP_EpmAssignment_UserView.ProjectUID,
    dbo.MSP_EpmAssignment_UserView.TaskUID,
    dbo.MSP_EpmProject_UserView.ProjectName,
    dbo.MSP_EpmTask_UserView.TaskName,
    dbo.MSP_EpmAssignment_UserView.ResourceUID,
    dbo.MSP_EpmResource_UserView.ResourceName,
    dbo.MSP_EpmResource_UserView.ResourceInitials
    INTO #TempTable
    FROM dbo.MSP_EpmAssignment_UserView INNER JOIN
    dbo.MSP_EpmProject_UserView ON dbo.MSP_EpmAssignment_UserView.ProjectUID = dbo.MSP_EpmProject_UserView.ProjectUID INNER JOIN
    dbo.MSP_EpmTask_UserView ON dbo.MSP_EpmAssignment_UserView.TaskUID = dbo.MSP_EpmTask_UserView.TaskUID INNER JOIN
    dbo.MSP_EpmResource_UserView ON dbo.MSP_EpmAssignment_UserView.ResourceUID = dbo.MSP_EpmResource_UserView.ResourceUID
    SELECT
    ProjectUID,
    TaskUID,
    ProjectName,
    TaskName,
    STUFF((
    SELECT ', ' + ResourceInitials
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceInitialsCombined,
    STUFF((
    SELECT ', ' + ResourceName
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceNameCombined
    FROM #TempTable Results
    GROUP BY TaskUID,ProjectUID,ProjectName,TaskName
    DROP TABLE #TempTable
    -Prashanth

  • Querying users and their resource names from SSO tables

    Hi,
    Any ideas how to query the SSO tables so that i can extract all users and which "Resource Access Information" (for Forms based applications) is assigned to each user.?
    A bit like the solution on the link below but also with a join to resource names (for Forms) that each user has.
    Querying user enabled status from SSO tables
    Thanks

    Thank you for that! I have extended this query to contain the ods.ct_uid table as follows as some users were being omitted. Also I have included a decode statement that changes the 'enabled' or 'disabled' to a 0 or 1.
    SELECT
    UPPER(cus.attrvalue) username,
    DECODE(NVL(ena.attrvalue, 'enabled'), 'enabled', 1, 'disabled', 0) enabled
    FROM
    ods.ct_orclisenabled ena,
    ods.ct_uid cus,
    ods.ct_cn ctu
    WHERE cus.entryid = ctu.entryid
    AND ena.entryid (+) = ctu.entryid

  • Error Message = 3205: '~WF_ADHOC-1446' is not a valid role or user name

    Hi,
    I have an Item attribute of type 'Role' ('CREDIT_COMMITTEE_MEMBERS') and I am using that attribute as performer for two notification activities.
    For first notification, I create an adhoc role and assign it to the attribute and the notification goes successfully.
    I want to send reminder to the people who have not responded to the first notification.
    So I used the following query:
    SELECT recipient_role
    FROM wf_notifications
    WHERE (message_name = 'MSG_TO_CREDIT_COMM_NEED_APPR' or message_name = 'MSG_REMINDER_CREDIT_COMM')
    AND item_key = itemkey
    AND status = 'OPEN';
    The following code was used to update the Item attribute of type "Role"
    FOR rec_cc_role_names IN cur_cc_role_names
    LOOP
    IF l_role_count = 0 THEN
    l_role_users := rec_cc_role_names.recipient_role;
    ELSE
    l_role_users := l_role_users || ' ' || rec_cc_role_names.recipient_role;
    END IF;
    l_role_count := l_role_count + 1;
    END LOOP;
    wf_directory.createadhocrole
    ( role_name => l_role_name,
    role_display_name => l_role_display_name,
    notification_preference => 'MAILTEXT',
    role_users => l_role_users,
    expiration_date => NULL);
    wf_engine.setitemattrtext
    ( itemtype => 'XXCCVOTP',
    itemkey => itemkey,
    aname => 'CREDIT_COMMITTEE_MEMBERS',
    avalue => l_role_name);
    The second notification activity is throwing the below error
    Error Name = WFNTF_ROLE
    Error Message = 3205: '~WF_ADHOC-1446' is not a valid role or user name.
    Error Stack =
    Wf_Notification.SendGroup(~WF_ADHOC-1446, XXCCVOTP,
    MSG_REMINDER_CREDIT_COMM, 07-APR-10, WF_ENGINE.CB)
    Wf_Engine_Util.Notification_Send(XXCCVOTP, 154009, 186344,
    XXCCVOTP:MSG_REMINDER_CREDIT_COMM)
    Wf_Engine_Util.Notification(XXCCVOTP, 154009, 186344, RUN)
    Kindly help.
    Thanks,
    Amit

    The users list was null for the role, which was causing the error. The query populating the user list was not returning any row.

  • QAAWS error message "not a valid query"

    Hi,
    When I'm trying to connect to QAAWS I get this error message: "not a valid query. FWB 00025".
    Does anyone know how to solve this problem?
    The server where the BOE is installed on has been restarted a couple of times but it doesn't help.
    Universe Designer and WebI work fine.
    Thanks!

    Is QaaWs running properly on your system?
    To validate the installation, open a browser and type the following URL
    http://[server]:[port]/dswsbobje, where [server] corresponds to
    your web server address and [port] corresponds to the port where you
    set up in your web server. The default used by Tomcat is 8080. dswsbobje
    is the default name of the Web Service provider web application. Then Validate.

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

  • Resource name field for target oracle table

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

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

  • Dynamic Resource Name in  DataStore

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

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

  • Data validation query change

    hi experts
    I got request to change one data validation query.
    In the existing query,I see three parts...in top(first part) part,we have one query view from One cube.....when we come to middle part(second)..it has one query view from second cube.....finally,the third and bottom part contains some excel formulas which substract middle part(second) total from top part(first) total and shows the result....
    so when I run the query it automatically populates top part(first) from one cube and second part(middle) from other cube and shows result in third and bottom part...
    my change request is:
    I donot need to change the top part(first)...I need to change middle part(second view from top)....but I donot know how to change this one....if I search on technical name of this whole Datavalidation query ...it just shows query corresponding the top part of this data validation query....
    Please advise how to do this  if any of you have idea
    Regards,
    SChand
    Edited by: SChandx200 on Aug 10, 2010 8:10 AM

    Hi,
    There can be one of the two erason,
    Either source data got corrupt. In your case the data in fltfile was not appropriate yesterday,, May be..
    Or someone has change the Info package/Process chain for load the data and change that again today. (Check if is there any Info Package routine is written and got changed recently.
    I hope it will help.
    Thanks,
    S

  • How to convert a string to visa resource name

    I have a string , like "visa://192.168.123.212/RIO0::INSTR", how can I convert it to a Labview visa resource name? The resource name is going to be used for "Open VI reference" control.
    Also, a related question is , is there a special vi control for ip address input?  How do I check whether the input ip address is in valid format or not? 

    Just wire it up. A string will coerce to a resource name.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is it Possible to change the Name ' ASRL3::INS​TR' to COM3 instead, in a' VISA resource name' Control ?

    Hi all.
    Is it Possible to change the Name ' ASRL3::INSTR' to COM3 instead, in a' VISA resource name' Control.
    see attached  pic.  is there a control  propertie that can change this View eks.  "ASL3::INSTR"  To "COM3"?
     HFZ
    HFZ
    Attachments:
    VISA INSTR.JPG ‏12 KB

     With Measurement&Automation explorer you should be able to modify the serial port ALIAS to "COM3"
    see jpg
    CLD - Labview Certified Developer

  • Resource name

    Hi,
    I am working on a VB .NET/C# app to talk to NI PXI 2503 switch card. Is
    there any way I can query the card to get the resource name/topology
    before initializing the card? Thanks.

    Hi John123,
    You can access the recourse names and limited card info using the niModInst calls, but you will not be able to access the topology of the card before initialization. The function to scan the computer to give the resource descriptors of all boards specific to a Modular Instruments driver is called niModInst. The niModInst Open Installed Devices Session call will create a handle to a list of installed devices supported by the specified driver. Call this API and select the name of a National Instruments instrument driver, such as NI-SWITCH, from the driver control. This call searches the system and constructs a list of all the installed devices that are supported by that driver, and returns both a handle and the number of devices found. The handle is used with other functions to query for attributes such as device name and model, and to safely discard the list when finished.
    This is a link to the help files for available niModInst function calls.
    'Hope this helps.
    Regards,
    Natasa

  • LDAP: error code 1 - Invalid query reference]; remaining name '

    I have the following function for a paged search operation.
    Data retrieved by this function is used somewhere else to modify the Ldap Directory context.
    Despite my setting for ctx and search control as "no timeout", i've been keeping thrown the exception for operations lasting more than 5 minutes(consistently) and for some short operations(sporadically):
    Paged Search failed : javax.naming.NamingException: [LDAP: error code 1 - Invalid query reference]; remaining name '<directory>'
    I am using DirX as LDAP directory.
    Is this a time-out related exception which can be fixed in the code?
    How can it be fixed?
    There's no clue all over the web about this.
    Thanks.
          * Returns the next page of the search results.
          * The returned result from this method can not exceed page size
          * set in the constructor.
          * @return
         public NamingEnumeration nextPage(){
              //1.step Set PagedResultsControl
              NamingEnumeration results = null;
              Control[] controls=null;          
              try {               
                   if( isSearchStarted==false ){
                        isSearchStarted=true;
                        if(sortingAttributes==null)
                             controls=new Control[]{ new PagedResultsControl(pageSize) };
                        else
                             controls=new Control[]{new SortControl(sortingAttributes, Control.NONCRITICAL), new PagedResultsControl(pageSize) };
                   }else {// examine the response controls
                        cookie = parseControls(ctx.getResponseControls());
                        if( cookie!=null && cookie.length!=0 ){
                             // pass the cookie back to the server for the next page
                             if(sortingAttributes==null)
                                  controls=new Control[] { new PagedResultsControl(pageSize, cookie, Control.CRITICAL) };
                             else
                                  controls=new Control[] {new SortControl(sortingAttributes, Control.NONCRITICAL), new PagedResultsControl(pageSize, cookie, Control.CRITICAL) };
                        }else{
                             //search is finished
                             return null;
                   ctx.setRequestControls(controls);
                   //ctx.getEnvironment().values();
                   //ctx.getEnvironment().put("com.sun.jndi.ldap.connect.timeout", "5000", 300000);
                   ctx.addToEnvironment("com.sun.jndi.ldap.connect.timeout", "0");
                   //ctx.getEnvironment().values();
              } catch (NamingException e) {
                   Tracer.getInstance().error("Paged Search failed while setting response controls: " + e);
                   return null;
              } catch (Exception e) {
                   Tracer.getInstance().error("Paged Search failed while setting response controls: " + e);
                   return null;
              //2.step: DO SEARCH
              for(int i=0;i<10;i++){
                   boolean reconnect=false;
                   try{     
                        results = ctx.search(searchBase, searchFilter, searchCtls);
                        Thread.sleep(300000);
                        //ctx.get
                        //Thread.sleep(300000);
                        break;
                   } catch (NamingException e) {
                        Tracer.getInstance().error("Paged Search failed : " + e);
                        reconnect=true;                    
                   } catch (Exception e) {
                        reconnect=true;
                        Tracer.getInstance().error("Paged Search failed : " + e);                    
                   if(reconnect){
                        try {
                             this.ctx = LDAPServer.getInstance().getDirContext();
                             ctx=ctx.newInstance(controls);
                             //ctx.getEnvironment().values();
                        } catch (NamingException e1) {
                             Tracer.getInstance().error("Could not reconnect the ldapcontext");
              return results;
         }

    It turned out to be a DirX "root DSE" entry "PAGP" that is disposing my paged results if a timeout occurs(300 seconds by default).
    So i have to modify this entry during runtime, which is unfortunately only can be accesed by dirxadm.exe.
    Is it possible to modify this attribute by a ldap context method?

  • Not a valid oci8 statement resource

    I've been grappling this problem sometime, google doesn't help because all the results I get are pages with the same error.
    Warning: oci_fetch(): 3 is not a valid oci8 statement resource in /home/dsk10/ugrad/bejhan/web_docs/facttable.php on line 21
    Line 21 is: while(oci_fetch($SQL)) {
    My loop functions correctly and fetches the results properly though. Here is my connect and creation of the statement:
    $c = oci_connect("bejhan", "******");
    $SQL = oci_parse($c, "SELECT TIMETRANSACTIONID, TO_CHAR(TDATETIME, 'YYYY-MM-DD HH24:MI:SS') AS PHPDATE, DURATION, TIMECODEDEFID, TEAM, MATERIALTYPE FROM c391.TimeTransactionData78 WHERE ROWNUM < 10 ORDER BY TDATETIME");
    oci_execute($SQL);
    When I run this query in SQLPlus I don't receive any errors.
    What is causing this warning?

    Okay changed the code to:
    $c = oci_connect("bejhan", "******");
    $SQL = oci_parse($c, "SELECT TIMETRANSACTIONID, TO_CHAR(TDATETIME, 'YYYY-MM-DD HH24:MI:SS') AS PHPDATE, DURATION, TIMECODEDEFID, TEAM, MATERIALTYPE FROM c391.TimeTransactionData78 WHERE ROWNUM < 10 ORDER BY TDATETIME");
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    oci_execute($SQL);
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    //Fix problem with fetch statement
    while(oci_fetch($SQL)) {
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    However, I just get NO ERROR for all of these.

Maybe you are looking for

  • Week "at-a-glance"

    I like a calendar where I can view at least my full work week and my entire work day. I can't figure out how to do this with iCal. In "week view" it shows all the days of the week, but I have to scroll up and down to see more than 5 or 6 hours. Anyon

  • Document linked to a Message

    Hi Experts, From which table I will get the information about the document "(Invoice / Payment etc)" attached to a message/alert and how can I retrieve the document? Scenario : I wrote a query to show alert , But it displays the same documents repeat

  • Work schedule  for Ramzan on ehr reduction

    Hi Work schedule For Ramzan one hour reduction is there for all Muslim Employees, How to capture this on Time WS? In this case we need to classify employe based on community , which is not fare? how to resolve this? Also we are not considering login

  • Workgroup Bridge and local Wifi Config

    Hi all, hoping you can help me with this, just need an other brain as mine is empty as I've been staring at this for too long!!! What I'm trying to config is to have a standalone local WLAN (Built into a VAN) running on the 2.4ghz and then also have

  • Help!!!Software update -problems with ITUNES?

    After updating my Apple TV - I can sync everything but ITUNES. What am I doing incorrectly. When I go to computer on the menu- I am taken to a menu that effectively says -if you continue all your Itunes will be lost [they are not there anyway.] I hav