Intrument Gives error when Labview VI is loaded

I have a minor issue with one of my instruments that i control with labview. I can control it via Serial or GPIB control. When i load up my vi for the first time and my instrument is set to GPIB address 1 there is a slight delay loading up the program and I get an error light on my instrument. This means some info is being sent on the GPIB bus. After the slight delay the program finishes loading and the error light goes off telling me something else was sent to my instrument. This error occurs ONLY when my instrument is set to address 1. Any other address and everything works as expected. To combat this error in my vi i just send a *cls to clear everthing before i write again because the error seems
to send something that will mess up my first sent command. I ran NI spy to see what is happening when i load my VI's.
This is what NI SPY shows labview is doing on the GPIB card when i load up my VIs
1. viOpenDefaultRM (0x00154348)
2. viGetAttribute (0x00154348, 0x3fff018f, VI_TRUE)
3 viGetAttribute (0x00154348, 0x3fff0190,2 (0x0))
4 viSetAttribute (0x00154348, 0x3fff0190,2 (0x0))
5 viFindRsrc (0x00154348, "?*INSTR", 0x00157108,3 (0x3), "COM1")
6 viFindnext (0x00157108, "LPT1")
7 viFindNext (0x00157108, "GPIB0::1::INSTR")
8 viClose (0x00157108)
9 viSetAttribute (0x00154348, 0x3FF0190,0 (0x0)
Step 5 is where i get the error and labview hangs for a second. After it passes my error light goes off and it will continue to load. This issue only occurs when i have my instrument set to GPIB address 1. There seems to be some kind of conflict that occurs. Could it possibly be the software used in the instrument?

The viFindRsrc VISA call finds all VISA resources connected to your computer. Line five is where LabVIEW polls the Serial Port, not your instrument, so I'm not sure why you would get an error there.
Since the error only occurs when your device is at PAD 1, I'd suggest checking for address conflicts. Is your GPIB0 device at address 1? Do you have any other devices connected to you system?
Also, what are all of the getAttribute and setAttribute commands? I don't get those when I run VISA Resources VI.
I hope this helps!

Similar Messages

  • Workflow status web part gives error when going back to previous stage (using GO TO) in Project Server 2013 workflow

    Hi,
    Workflow status web part gives error when going back to previous stage (using GO TO) transition activity  in Project Server 2013 workflow.
    Please guide how to create a workflow which restarts from a desired stage.

    Thanks for your prompt reply....
    It gives following error
    Workflow Status
    This Web Part was unable to load.
    Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: e95a9c9c-1f68-90d7-0a3e-5951df70fec6
    For more information, contact your Project Web App administrator.
    what do you mean to restart the Project Server 2013 with different project name, please elaborate....

  • Outlook 2010 gives error when opening a PowerPoint attachment.

    Outlook 2010 gives error when opening a PowerPoint attachment. 
    Hi All,
    We have several VIP employees that are getting the following error on all PowerPoint documents that come as attachments from Outlook.
    I have researched and tried the following steps and verified these settings are already applied.
    I did find a work around but not a fix and our security team will NOT allow me to change this setting however if I uncheck the setting all employees can open the outlook attachment.
    Any other ideas on a fix for this if I am unable to uncheck Enable Protected View.

    Hi Matthew,
    This is a perennial problem, here is a thread which has a deep discussion about this issue:
    http://social.technet.microsoft.com/Forums/office/en-US/07f710a5-a6ca-4256-8f27-6aac41a6b37e/outlook-2010-unable-to-open-word-excel-and-power-point-attachments-from-an-email?forum=outlook
    It looks like nobady really find a solution there, the only workaround is what you have found - change the protected view setting in Trust Center. You will lose some security by doing this but it seems to be the only solid solution currently.

  • I get a assertion error when trying to up load adobe lightroom have followed the instruction on the adobe site to fix the problem

    i get a assertion error when trying to up load ,lightroom have follow the instructions on the adobe site and it still does not work
    and ideas on how to fix the problem
    tk
    bigguy1965

    Hi,
    Can you Please provide Configuration of your XP, Win7 Machine [How to post a screenshot in the forum]?
    To check if Windows 7 Service Pack is already installed, follow the below steps:
    Click the Start button , right-click Computer, and then click Properties.
    The basic information about your computer page will open.
    To check if Windows XP Service Pack is already installed, follow the below steps:
    Click the Start button , right-click Computer, and then click Properties.
    Click System and Service Pack Information will be listed
    Please also attach log [Where do I find the Flash Player installation log on Windows?], [How to share a document] and Share the Current Version of Flash Player goto - [https://helpx.adobe.com/flash-player.html] and click on Check Now button, using about method can you place the screenshot.
    Meanwhile you can also try cleaning Application Temporary Data and Try again. [c:/users/username/appdata/local/temp folder - Microsoft Community], Due to some reason the Installer file is getting corrupted which might be blocking Flash Player Installation. After cleanup try using the offline Installer [Installation problems | Flash Player | Windows]
    Thanks
    Piyush

  • I am upgrading from Tiger to Snow Leopard. I keep getting an error when I try to load the Mac Os x update combined. It says that it was corrupted during download. Have try loading from Apple website V10.6.7 upgrade combined but it still won't do it?

    I have an Intel Desktop iMac and I am upgrading from Tiger to Snow Leopard. I keep getting an error when it tries to load the Mac OS X update combined. It says that it was corrupted during download. Have try loading from Apple website  Mac OS X V10.6.7 upgrade combined but it still won't do it? Any other suggestions. The printer is not working either - I am not sure if they are connected. Everything else is fine.

    Please excuse, but I have to ask an obvious question: Did you already update using the Snow Leopard Retail install DVD? (You must do this first; 10.6.7 is just an update if you already have 10.6.) Are you, then, trying to update from whatever version was on the install DVD to 10.6.7?
    Otherwise, I'd keep trying. The 10.6.7 Combo is a huge update.

  • Show-stopping error when I try to load/run the muse code with JQuery version 1.9.1.

    Version 1.9.1, and the muse code uses 1.8.3.  As you can see HERE,http://jquery.com/download/ version 1.9.0 was a major milestone release for JQuery that eliminated much of the (deprecated) functionality of earlier versions. Unfortunately, the muse html uses some of that deprecated functionality (specifically, the "browser( )" function HERE)http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed. Thus I am getting a show-stopping error when I try to load/run the muse code with version 1.9.1. Other people have had this same problem (see THIS)http://bugs.jquery.com/ticket/13214.
    Do you see an update in the near future?

    Version 1.9.1, and the muse code uses 1.8.3.  As you can see HERE,http://jquery.com/download/ version 1.9.0 was a major milestone release for JQuery that eliminated much of the (deprecated) functionality of earlier versions. Unfortunately, the muse html uses some of that deprecated functionality (specifically, the "browser( )" function HERE)http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed. Thus I am getting a show-stopping error when I try to load/run the muse code with version 1.9.1. Other people have had this same problem (see THIS)http://bugs.jquery.com/ticket/13214.
    Do you see an update in the near future?

  • Good morning, my photoshop stopped working, it gives error when started, what can it be?  This is the message that appears: Unable to start the program it took a unexpected end of file  I hope answer

    Good morning, my photoshop stopped working, it gives error when started, what can it be?
    This is the message that appears:
    Unable to start the program it took a unexpected end of file
    I hope answer

    Could not initialize Photoshop because an unexpected end-of-file was encountered. | Mylenium's Error Code Database
    Mylenium

  • FDM keeps give me DCOM Security Error when I configure the Load Balance

    Hello, everyone.
    I installed FDM on the Windows 2008 Server.
    When I configure the Load Balance Server for FDM.
    It keeps give me error:
    Unable to create Load Balance Manager Object!
    Please verify that the user name, password, and domain name are correct.
    However, I am pretty sure the user name and password input are correct.
    I have tried the solution provides on Oracle Support. And changes the DCOM component's security settings.
    However, the issue is still existed.

    If after clearning out the security on the DCOM object and attempting to reset the Load Balance Config the same issue occurs, you will need to un-install FDM using the EPM System Un-installer and reboot. Following the reboot you will then choose to install FDM again, configure FDM using the EPM System Configuration utility, and then reset the FDM configuration items.

  • Error when running package to load data from InfoProvider

    I encounter the following error when using the standard package to load data from a InfoProvider to BPC. I tried loading the data from both DSO and InfoCube, but I get the same error.
    The log message where the error occurs is as follows:
    Task name CLEAR CUBE DATA:
    Could not perform write (INHERITED ERROR)
    The "convert" step of the process chain completed successfully. This error is happening when the "clear cube according data" step of the process chain gets executed.
    Any ideas on why this is happening?
    Thanks.

    Hi Laeral:
    You should be able to just open one VISA session then write and read both commands then close the session at the end. This sounds to me like an error that comes from trying to open two VISA sessions to the instrument at the same time. I have attached some very basic LabVIEW VISA code that writes and reads two different commands. Hopefully it will get you started.
    Regards,
    Emilie S.
    Applications Engineer
    National Instruments
    Attachments:
    Basic VISA Example Two Commands.vi ‏39 KB

  • Error when crawling "Unable to load stemmer for locale 1033. Error code 80040111."

    In the Sharepoint Search Service I get tose error "MAPI: Logon failed. " in the log and "Unable to load stemmer for locale 1033. Error code 80040111." in ULS.
    The error code 80040111 is well a relation with Mapi but what about stemmer???

    Hi,
    For your issue, check your current language settings and ensure that search supports the current language.
    On the SharePoint Server open Registry Editor (Start -> type “Regedit” and hit enter). 
    Point to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeServer\14.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\English
    Under the registry key for each of the languages there is a value called StemmerDLLPath and WBDLLPathOverride
    Updated the registry entry with NATURA~1.dll to NATURA~2.dll
    Point to Start -> Administrative Tools -> Services, right click on SharePoint Server Search 14 and click on Restart.
    Performed a Full Crawl and wait for the Full Crawl to complete and try searching again.
    For more detailed information, refer to the following blogs:
    http://blog.ithinksharepoint.com/2008/04/20/a-word-breaker-was-not-found-for-the-given-language-error-when-crawling-content/
    http://www.sharepoint2013.me/Blog/Post/175/Word-breakers-in-SharePoint-2013
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Error when we try to load the datasource

    Hi all,
    We create a EJB project with oracle 9i database, when we execute the application and, for example, from our session bean we try to call a findByPrimaryKey() method over our entity bean, the container load the datasource (the database is configured as 'desa' ) and show the
    following error :
    FreePool J2CA0046E: The method
    createManagedConnctionWithMCWrapper got a
    exception when create a ManagedConnection
    for resource jdbc/desa, genering
    ResourceAllocationException.
    Original exception: com.ibm.ws.exception.WsException:
    DSRA8100E: Unable to get a PooledConnection
    from the DataSource.
    Nested exception is: javax.ejb.EJBException:
    nested exception is:
    com.ibm.ws.ejbpersistence.utilpm.ResourceAdapterException:
    PMGR6020E: Error when connect with
    com.ibm.ws.rsadapter.cci.
    WSRdbConnectionFactoryImpl@1687178e adapter
    We�re working with WebSphere 5. We defined the datasource on websphere with all required parameters.
    We don't know what could be happening.
    Thanks and regards!

    Hi,
    Even I was getting this exception.
    but now i got it working for me.
    Steps
    1)Visit the link already suggested and configure everything according to it.(http://www.webagesolutions.com/knowledgebase/waskb/waskb001/index.html)
    2) Most important is you must place your classes12.zip in system classpath. and even more imp is it must come in classpath before anyother .jars from IBM Studio.
    Hope this will solve the problem.

  • Error when Websphere try to load  datasource

    hi,
    I'm working with websphere 5.
    I create a EJB project with oracle 9i database, when i execute the application and for example, from my session bean I try to call a findByPrimaryKey() method over my entity bean the WebSphere container load the datasource (my database is configured as 'desa' ) and show me the following error :
    FreePool J2CA0046E: The method createManagedConnctionWithMCWrapper got a excepci�n when create a ManagedConnection for resource jdbc/desa, genering ResourceAllocationException.
    Original excepci�n: com.ibm.ws.exception.WsException: DSRA8100E: Unable to get a PooledConnection from the DataSource.
    Nested exception is: javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.ResourceAdapterException: PMGR6020E: Error when connect with com.ibm.ws.rsadapter.cci.WSRdbConnectionFactoryImpl@1687178e adapter
    I defined my datasource on websphere with all required parameters. I don't know what's can be happening.
    sombody can help me ?
    thanks

    could u tell me which driver u r using, brief u r environmat

  • OOTB workflow gives error when user rejects in the document in publishing a major version.

    Hi All,
    I am using OOTB workflow with little customization  with following configuration
    1. Allow content approval enabled
    2. Configure a workflow with following general settings true
    3. Start workflow on publish of Major version only is enabled
    4. workflow has following configuration enabled.
    Now, when user start publishing of major version and Starts the workflow. workflow starts without any problem.
    But as and when the user rejects the document it is rejected with Reject status with "Approval Status" as well as workflow status which is expected.(This is correct )
    But when i look at the workflow history i can see at last line there is an Error with
    An error has occurred in In [Workflow Name].
    Now when user check out and check in item again and try to publish with Major version again. it gives errors that the previous version is still running.
    I have trace a lot and also test with original OOTB workflow itself. it is behaving the same.
    As per my findings there is problem in "Completion condition of this task process" the end task process is not being executed correctly.
    I tried to end the task process with End the task process action but it is still not working.
    I need some help in this issue as users are facing problems in case of rejection. I hope some one has the solution for the same.
    Two things i have noticed are
    1. My MS office 2010 professional plus is expired as i was using trial version
    2. I have made stop inheriting tasks permission and remove all default groups as i have settings in workflow "Only allow task reception and process owner to read and edit workflow task"
    3. Earlier i had also installed "Sharepoint 2010 April 2012 updates". i had also observed that (installing Sharepoint 2010 April 2012 updates) before that if user has selected "Automatically rejects the document if any participant rejected". it ends
    with "rejected" status. At present it remains in inprogress and not stops with rejected status.
    Can any one give me a hint what should be the problem ? Is it a problem with latest Sharepoint 2010 April 2012 updates ?
    Thanks,
    S. M. MANIYAR

    I have done following testing.
    1. The server in which i have not installed sharepoint 2010 April 2012 updates the above scenario is working fine without any problem
    2. I have also observed following logs of error in server where April 2012 updates is installed.
    8/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 8bf7fef1-c92e-4b22-a16f-480425d3adc6 
    08/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        98d4 Unexpected System.InvalidOperationException:
    CompositeActivity cannot transition to 'Closed' status when there are active child context still exist for child activity.     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.ActivityExecutionContext.CloseActivity()    
    at Microsoft.Office.Workflow.Actions.OfficeTask.FinalClose(Object sender, EventArgs eventArgs)     at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)    
    at System.Workflow.Runtime.Scheduler.Run() 
    Following are last two lines of workflow history.
    S. M. MANIYAR

  • Error when executing interface which load data from csv file which has 320

    Hi,
    Can some one provide a resolution for below error:
    I have created an interface which load data from csv file which has 320 columns, to a Synonym which has 320 columns in it
    using LKM File to SQL, IKM Sql Control Append.
    I am getting below error when executing the interface :
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation. Task: 6 java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "\\" (92), after : "": <at unknown location> BSF info: Create external table at line: 0 column: columnNo
    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
         at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "\\" (92), after : "": <at unknown location>
    BSF info: Create external table at line: 0 column: columnNo
         at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
         at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
         at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
         ... 11 more
    Text: The application script threw an exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 BSF info: Create external table at line: 0 column: columnNo
    out.print("createTblCmd = r\"\"\"\ncreate table ") ;
    out.print(odiRef.getTable("L", "COLL_NAME", "W")) ;
    out.print("<?=(extTabColFormat.getUseView())?\"_ET\":\"\"?>\n(\n\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]\\t"+
              "<?=extTabColFormat.getExtTabDataType(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022[DEST_WRI_DT]\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
         , ",\\n\\t", "","")) ;
    out.print("\n)\nORGANIZATION EXTERNAL\n(\n\tTYPE ORACLE_LOADER\n\tDEFAULT DIRECTORY dat_dir\n\tACCESS PARAMETERS\n\t(\n\t\tRECORDS DELIMITED BY 0x'") ;
    out.print(odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")) ;
    out.print("'\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_CHARACTERSET")) ;
    out.print("\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_STRING_SIZE")) ;
    out.print("\n\t\tBADFILE\t\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.bad'\n\t\tLOGFILE\t\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.log'\n\t\tDISCARDFILE\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.dsc'\n\t\tSKIP \t\t") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")) ;
    out.print("\n") ;
    if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {out.print("\n\t\tFIELDS\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
    out.print("\n\t\t(\n\t\t\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]\\tPOSITION([FILE_POS]:[FILE_END_POS])\\t"+
                        "<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022DEST_WRI_DT\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
                        , ",\\n\\t\\t\\t", "","")) ;
    out.print("\t\t\n\t\t)\n\t)\n") ;
    } else {out.print("\n\t\tFIELDS TERMINATED BY x'") ;
    out.print(odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")) ;
    out.print("'\n\t\t") ;
    if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){out.print("\n\t\t") ;
    } else {out.print("OPTIONALLY ENCLOSED BY '") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)) ;
    out.print("' AND '") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)) ;
    out.print("' ") ;
    }out.print("\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
    out.print("\n\t\t(\n\t\t\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]\\t"+
                        "<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022DEST_WRI_DT\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
                        , ",\\n\\t\\t\\t", "","")) ;
    out.print("\t\t\n\t\t)\n\t)\n") ;
    }out.print("\tLOCATION (") ;
    out.print(odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")) ;
    out.print(")\n)\n") ;
    out.print(odiRef.getUserExit("EXT_PARALLEL")) ;
    out.print("\nREJECT LIMIT ") ;
    out.print(odiRef.getUserExit("EXT_REJECT_LIMIT")) ;
    out.print("\n\"\"\"\n \n# Create the statement\nmyStmt = myCon.createStatement()\n \n# Execute the trigger creation\nmyStmt.execute(createTblCmd)\n \nmyStmt.close()\nmyStmt = None\n \n# Commit, just in case\nmyCon.commit()") ;
    ****** ORIGINAL TEXT ******
    createTblCmd = r"""
    create table <%=odiRef.getTable("L", "COLL_NAME", "W")%><?=(extTabColFormat.getUseView())?"_ET":""?>
         <%=odiRef.getColList("", "[CX_COL_NAME]\t"+
              "<?=extTabColFormat.getExtTabDataType(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022[DEST_WRI_DT]\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
         , ",\n\t", "","")%>
    ORGANIZATION EXTERNAL
         TYPE ORACLE_LOADER
         DEFAULT DIRECTORY dat_dir
         ACCESS PARAMETERS
              RECORDS DELIMITED BY 0x'<%=odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")%>'
              <%=odiRef.getUserExit("EXT_CHARACTERSET")%>
              <%=odiRef.getUserExit("EXT_STRING_SIZE")%>
              BADFILE          '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.bad'
              LOGFILE          '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.log'
              DISCARDFILE     '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.dsc'
              SKIP           <%=odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")%>
    <% if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {%>
              FIELDS
              <%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
                   <%=odiRef.getColList("", "[CX_COL_NAME]\tPOSITION([FILE_POS]:[FILE_END_POS])\t"+
                        "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
                        , ",\n\t\t\t", "","")%>          
    <%} else {%>
              FIELDS TERMINATED BY x'<%=odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")%>'
              <% if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){%>
              <%} else {%>OPTIONALLY ENCLOSED BY '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)%>' AND '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)%>' <%}%>
              <%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
                   <%=odiRef.getColList("", "[CX_COL_NAME]\t"+
                        "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
                        , ",\n\t\t\t", "","")%>          
    <%}%>     LOCATION (<%=odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")%>)
    <%=odiRef.getUserExit("EXT_PARALLEL")%>
    REJECT LIMIT <%=odiRef.getUserExit("EXT_REJECT_LIMIT")%>
    # Create the statement
    myStmt = myCon.createStatement()
    # Execute the trigger creation
    myStmt.execute(createTblCmd)
    myStmt.close()
    myStmt = None
    # Commit, just in case
    myCon.commit().
         at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)

    The issue is encountered because the text delimiter used in the source file did not consist of a pair of delimiters.
    Please see support Note [ID 1469977.1] for details.

  • Shell Script gives error when run through cron job.

    Hi,
    The following shell script runs without any problem when executed manulally.
    USED=$(df -h /arch | tail -1 | awk '{print $5}' | cut -d '%' -f 1)
    if [ ${USED} -gt 90 ]
    then
    find /arch/AUBUAT/ -type f -mtime +0 | xargs rm
    find /arch/AUBMIG/ -type f -mtime +0 | xargs rm
    fi
    But the same gives below error when called from a cron job:
    /backup/arch_test.sh: syntax error at line 1: `USED=$' unexpected
    We are running following version:
    bash-3.00$ uname -a
    SunOS uaeaubdbdr01.aub.af 5.10 Generic_141444-09 sun4u sparc SUNW,SPARC-Enterprise
    Kindly assist.
    Thanks
    Edited by: user13362786 on Apr 20, 2011 4:36 AM

    Hi,
    When I used #!/usr/bin/sh now even the manul execution of the script fails with the same err:
    bash-3.00$ ./arch_test.sh
    ./arch_test.sh: syntax error at line 2: `USED=$' unexpected
    And when I used #!/usr/bin/ksh the manual execution runs fine but again when the script is run from cronjob it now give dirrect err:
    /backup/arch_test.sh[2]: df: not found
    /backup/arch_test.sh[2]: tail: not found
    /backup/arch_test.sh[2]: cut: not found
    /backup/arch_test.sh[2]: awk: not found
    /backup/arch_test.sh[3]: test: argument expected

Maybe you are looking for

  • Portlets in showOneTab do not function correctly

    Hi! I have created a WebCenter application in JDev 10.1.3. We have some JSF portlets (using JSF Portlet Bridge) and have grouped those on a webcenter page using a showOneTab component. I encounter the following problem: when the portlet contains an A

  • Certificate Template OID not working in INF file

    I am trying to create a certificate request using the following INF file but I keep getting the following error: "An attempt was made to perform an initialization operation when initialization has already been completed. 0x800704df (WIN32: 1247) ./ce

  • Flashback Malware

    Hi, I believe I got Flashback Malware problem. I tried to open Google or Youtube in Safari and it kept giving me the warning "Please update your flashplayer", and I've checked in adobe's official website and ensure that I have the most recent flash p

  • 16 bit stereo question

    Hi, I'm converting mp3 to wav then modifying the wav and saving it to a new wav file. The saved wav files comes out as 16 bit mono. I need it to be 16 bit stereo like the original. I realize the following code does not account for the stereo (only 4

  • Constant crash on launch (Unable to open InDesign)

    I recently had an error in InDesign which forced it to crash. Now I can not open it anymore without it crashing during load-up. I had one document open when I accidently closed the document with (cmd + w). Wanting to re-open it I got an error saying