Date format not recognized -- urgent help needed

Hi,
I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
I do have OWB installed which also has SQLPLUS installed so that there is no problem if I start it from C:\ORACLE\owb92\bin.
For some reason, the path is setting as C:\oracle\ora81\bin before C:\ORACLE\owb92\bin so the default always goes to 81 folder.
If restart the DB instance, and this problem is gone. But it comes back after some application running (our own application and Oracle provided OMBPlus ). We double check our own application, and there is no where to "alter session ...".
Any help will be very appreciatged,
Thanks,
Daming

I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
Do you have a file called 'login.sql' in the folder 'C:\oracle\ora81\bin'? If there is one, is there an 'alter session' command in this file?

Similar Messages

  • ORA-01821: date format not recognized Error in PL/SQL report-4.0

    Hi,
    I am using Apex 4.0 and i have a Classic report(function returning query) which selects a date column.
    The query runs at the backend and gives the output.
    But when i run the report on the page, i get the error
    report error:
    ORA-20001: Error fetching column value: ORA-01821: date format not recognizedThe values for the date column are like this 14-MAR-13,01-FEB-13 etc... Everything seems to be right.
    But I have no idea why this error occurs.
    Thanks
    Divya

    Aren't these errors annoying! But there's a data / format mismatch for sure. What I need to see -- and what will tell you what is wrong -- is
    1) exactly what the data is and
    2) exactly what the format string is that is being used to convert it.
    The values for the date column are like this 14-MAR-13,01-FEB-13 etc... Question: Is this the source data or the target data ( what it's supposed to look like after being converted)?
    Let's start there:
    What is the source? Is it a DB column? Is it type date or VARCHAR2 or what?
    If VARCHAR2, then give us an example of the data that is failing.
    What is the format -- I assume there is one -- being used to convert the data?
    Are you doing a TO_CHAR or a TO_DATE?
    Give us lots of detail, please. Then it should be easy to solve.
    Regards,
    Howard

  • Date Format in 'HH:MI' - help needed

    I have a table details that contains time_status column of Timestamp datatype.
    Data is stored in the column in the format '1/1/2008 10:31:00.000000 AM'.
    Now I want to select the data in HH:MI fopmat only.
    i.e., for '1/1/2008 10:31:00.000000 AM' I should get 10:31.
    I have written as select to_char(time_status,'HH:MI') from dual;
    I am getting an error when this query is included in the procedure.
    When I am executing outside, its is working.
    Also, How can I get the format a '1/1/2008 10:31'.
    Thanks in advance.
    Regards
    Raghunadh.

    I have a table details that contains time_status column of Timestamp datatype.Good. Always use the correct datatype. Either date or timestamp.
    Data is stored in the column in the format '1/1/2008 10:31:00.000000 AM'.
    Wrong! A timestamp or also a date column has no format! Same as a number column has no format.
    Now I want to select the data in HH:MI fopmat only. i.e., for '1/1/2008 10:31:00.000000 AM' I should get 10:31.When you work with date and timestamps you don't need any format. When you display the value, then you need to change your date into a string. Only during this transformation formatting takes place.
    Example:
    SQL*Plus: Release 9.2.0.2.0 - Production on Thu Aug 21 10:45:17 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    /* lets do a simple date select */
    SQL> select sysdate from dual;
    SYSDATE
    21-AUG-08
    "Attention!" Sql*Plus did an implizit date to string conversion to show this value on the screen.
    It used the NLS settings for the format.
    /* Now lets change the nls settings */
    SQL> alter session set nls_date_format = 'FMddth Month YYYY';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    21st August 2008
    SQL>
    "Different output for the same query! Value is the same, only the formatting was changed."
    I have written as select to_char(time_status,'HH:MI') from dual;You should ask yourself, why do I want this string?
    I am getting an error when this query is included in the procedure.
    When I am executing outside, its is working.
    Also, How can I get the format a '1/1/2008 10:31'.Check the documentation (sql manual) for the many options for the date format settings. Also check for timestamps, they are a bit more difficult to handle than dates.
    Thanks in advance.
    Regards
    Raghunadh.You're welcome.

  • [[ Page Flow Error - Action Not Found ]] - urgent help needed!

    Hi all,
    My portal application runs on Weblogic 8.1 and I am encountering a vague error which does not point back to any of the application-based files. The error message, as stated in the subject, is
    "Page Flow Error - Action Not Found"
    I did modify the url-template-config.xml under groWeb/WEB_INF to add a new template to enforce secure access to application resources. Could this have caused the above error?
    Any feedback would be greatly appreciated!!
    Thanks.

    Here is just a portion of Page Controller class
    package com.amd.portal.presentation.GeneralRegistration
    public class GeneralRegistrationController extends PageFlowController
    * @jpf:action
    * @jpf:forward name="success" path="RegistrationConfirmation.jsp"
    * @jpf:validation-error-forward name="failure" path="index.jsp"
    public Forward registerUser(RegisterUserForm register_form)
              usermanager_ctrl.registerUser(register_form, this.getRequest());
              return new Forward( "success", register_form);
    Here is a portion of the code from the JSP that uses this controller
    <netui:form action="registerUser">
    <tr valign="top">
    <td><font color="red"> * </font> User Name:</td>
    <td>
    <netui:textBox dataSource="{actionForm.userName}"/>
       
    <netui:error value="userName"/>
    </td>
    </tr>
    <tr valign="top">
    <td><font color="red"> * </font> Password:</td>
    <td>
    <netui:textBox dataSource="{actionForm.password}" password="true" />
       
    <netui:error value="password"/>
    </td>
    </tr>
    <netui:button value="Submit" type="submit"/>
    </netui:form>
    This apparently doesn't display well when posted but I can email to you if you provide me with your email address. Thanks.
    - CW
    Message was edited by:
    lcwalters

  • "date format not recognised" in DBMS_SESSION, on page over db_link

    Hi,
    I have an Apex 4.0 page which has a region that gets data constituted from a connection across a database link.
    The host database is 11.1.0.6 and the remote database is 9.0.1. (Both Standard Edition)
    I am using EPG.
    Intermittently, I receive the following error (having turned debugging on):
    Wed, 25 Aug 2010 10:21:53 GMT
    ORA-20867: ORA-01821: date format not recognized
    ORA-02063: preceding line from CLIFF
    ORA-06512: at "SYS.DBMS_SESSION", line 157
    ORA-06512: at "APEX_040000.WWV_FLOW_LANG", line 387
    ORA-06512: at "APEX_040000.WWV_FLOW", line 9284
    ORA-06512: at "APEX_040000.F", line 267
    ORA-06512: at "APEX_040000.F", line 294
    ORA-06512: at line 30
    I'm somewhat confused as to what is causing the generation of this error.
    After receiving this error, anything I else that I do that involves building 'pages' works perfectly fine. I can login/out, no problems.
    However, if I try and RUN any page within my application thereafter (all of these access local DB information apart the 1 that generates the error), I continue to receive exactly the same error - no matter which page I am trying to access.
    Help?
    - Tony.

    Hi Patrick,
    No. I haven't yet applied the patchset. May do that this afternoon now.
    I don't believe I've manually set any date formats anywhere. Just entered the Builder with default options (apart from choosing a theme) and away I went!!
    What surprises me is that the application has no problems viewing all the data. The functionality all seems fine. I had this working on a previous setup for months,. without any problems, using version 3.2. (This wasn't migrated though, this was a rebuild from scratch.)
    From further "tests", the error seems to occur when I edit the page that involves the remote data.
    Normally, a user would land on the page from having used a hyperlink column on a previous page's classic report region.
    The point at which it all starts to go wrong is if I connect to the page as normal, but then EDIT the page, and then try and re-run it.
    The problem with the date format then re-occurs repetitively, no matter which page I try and view. Sometimes pages will load some components, but then generate odd errors with others. e.g. I have a small series of 3 dial charts, all with slightly varying SQL series (same SQL, slightly different where clause). Now I am seeing that 1 may load and 2 may give odd flash errors...
    Right now, I just tried to Export my application - and I still got given the date format error!! Sub-sequent retries allowed the operation to complete successfully.
    The only way I seem to be able to eradicate the recurring errors is to kill all the currently connected ANONYMOUS users in the DB, and then relog to the application.
    - Tony.

  • HT3775 Hi, my mac which is on 10.7.5 osx. but when ever i insert any mpeg/avi video cd it shows the file format not recognized. i am fed up of this. plz somebody help me. what should i do now.

    hi,
              i am using 10.7.5 lion there are a lot of problems in this OS.
    like most of the programs quit's unexpectedly. some programs does not work on it. like adobe cs5 is not working. everytime time when i do click on adobe cs 5 icon it shows a message "To open “Adobe Photoshop CS5,” you need to install a Java SE 6 runtime, but you are not connected to the Internet.To install a Java SE 6 runtime later, open “Adobe Photoshop CS5” again" while i always remain connected on the net.
    2. when ever i insert an avi or mpeg video disk it shows the file format not recognized. to **** with this macbook pro n its 10.7.5 lion. the same disk works/runs on windows on windows systems.
    plz somebody help me what should i do now.
    [email protected]

    it sounds like a fualty installation of Lion, this may happen from time to time.
    The best thing to do in this situation is to reinstall Lion. You will not loose anything doing this, but you should always keep back ups of your information.
    http://www.apple.com/osx/recovery/
    basically hold Cmd+R on boot..
    first go to disk utility, verify and repair your disks and permissions. Exit out of Disk utility and then go directly to "reinstall Lion"
    choose that and let it reinstall.
    Adobe CS6 does need Java to run.
    To play your movies you might need to get an application called VLC. VLC is a free app and will play most videos and music files you throw into it.
    http://www.videolan.org/vlc/download-macosx.html
    you have a 64bit intel mac, so get the one for that.

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • I recently spilled liquid on my computer, but it is up and running, it loads and brings me to the safe boot screen where I need to type my password, but It is not recognizing it, help! How do I get passed it or fix it!

    I recently spilled liquid on my computer, but it is up and running, it loads and brings me to the safe boot screen where I need to type my password, but It is not recognizing it, help! How do I get passed it or fix it! I have tried holding the apple key and "s" and then type in the code to reset the password, but my keyboard is not letting me use the numbers or any keys that are accessed by holding shift! Please help me get passed this screen

    Fluids and electronics do not mix.
    You have caused some serious damage to parts of your computer, and likely voided the warranty until Apple completes a repair and re-certifies it.
    Step one is to turn it off and do NOT (did I say do NOT yet?) turn it on again yourself.
    Take it to an Apple store and be prepared for a large repair bill.
    Sorry, but that is the truth.

  • Urgent help needed, can I restore N900 Backup file...

    i owned a N900 (now sold out)
    before selling i took backup of contacts from backup restore option in application section
    now i bought a N8 but i m not able to restore my contacts
    1. is there any way to restore them in N8?
    2. if not, can i convert them in TEXT or any readable format
    urgent help needed
    thanks in advance

    The backup procedures built into the phone are only designed for restoring to the same phone (ie: in case or data corruption, software update or repair etc.), they can't usually be used to restore to a phone with a different operating system.
    You should have backed up with Ovi Suite before selling the N900, that would have been able to restore to the N8.

  • I have iphoto 6 and my pictures are no longer showing.  I have tried importing them but it just give me an error msg. (file format not recognized) I have tried rebuilding the iphoto library but that doesn't work either. Any suggestions?

    I have iphoto 6 and my pictures are no longer showing.  I have tried importing them but it just give me an error msg. (file format not recognized) I have tried rebuilding the iphoto library but that doesn't work either. Any suggestions?

    How did you rebuild?
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 6* library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • PIM.fromSerialFormat "Format not recognized"

    Hi, I'm trying to use PIM.fromSerialFormat in order to read back a contact that was written out using PIM.toSerialFormat. The problem is that fromSerialFormat has a PIMException with the message "Format not recognized".
    The original contact details from the sample.vcf file are as follows:
    BEGIN:VCARD
    VERSION:2.1
    N:Mahmoud;Qusay;H.
    FN:Qusay H. Mahmoud
    ORG:JavaCourses
    TITLE:Developer
    NOTE:Helping You With Java!
    TEL;WORK;VOICE:(416) 999-1111 ext 1000
    TEL;WORK;FAX:(416) 333-9999
    ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;1500 Java Ave.=0D=0ASuite 101;Toronto;ON;M9V1L1;Canada
    LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1500 Java Ave.=0D=0ASuite 101=0D=0AToronto, ON M9V1L1=0D=0ACanada
    URL;WORK:http://www.javacourses.com
    EMAIL;PREF;INTERNET:[email protected]
    REV:20043335T124220Z
    END:VCARD
    When I call fromSerialFormat the buffer contains:
    BEGIN:VCARD
    VERSION:2.1
    ADR;WORK:;;1500 Java Ave.
    Suite 101;Toronto;ON;M9V1L1;Canada
    EMAIL;PREF:[email protected]
    LABEL;WORK:1500 Java Ave.
    Suite 101
    Toronto, ON M9V1L1
    Canada
    FN:Qusay H. Mahmoud
    N:Mahmoud;Qusay;H.;;
    NOTE:Helping You With Java!
    ORG:JavaCourses
    REV:2006-10-05
    TEL;WORK:(416) 999-1111 ext 1000
    TEL;FAX;WORK:(416) 333-9999
    TITLE:Developer
    UID:sample.vcf
    URL:http://www.javacourses.com
    END:VCARD
    This is not recognized! The test code is as follows (removed error checking for clarity).
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // Get the PIM data.
    ContactList contactList = contactList = (ContactList) mPim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE,"Contacts");
    // Get an Enumeration of the contacts and loop until they are all backed up.
    Enumeration enumContacts = null;
    enumContacts = contactList.items();
    while(enumContacts.hasMoreElements()) {
    // Get the contact
    Contact contact = (Contact)enumContacts.nextElement();
    String[] data_formats = PIM.getInstance().supportedSerialFormats(PIM.CONTACT_LIST);
    // Use 2.1 format for time being.
    mPim.getInstance().toSerialFormat(contact, baos, "UTF-8", data_formats[1]);
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    // This is where we get the "Format not recognized" message.
    PIMItem[] items = PIM.getInstance().fromSerialFormat(bais, "UTF-8");
    This is as basic as it gets and is driving me nuts. Why am I getting this error?
    Any help is very much appreciated.

    have u tried using data_formats[0] instead of data_formats[1] in toSerialFormat method? and if that doesn't work try using "VCARD/2.1" directly as the format

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • URGENT HELP NEEDED - iPhone 3Gs no longer detected or charged by MacBook

    My iPhone 3Gs (3.1) has been running fine, until several hours ago today, when I plugged it to my MacBook, the iPhone is no longer detected - it doesn't show up in iTunes, nor it is charged. I tried opening iPhoto, and it wasn't there too. Not with Image Capture too. I tried charging it using the out-of-box wall charger using the same out-of-box USB cable I use for MacBook, and it can be charged without any problem. Then I put it into Recovery mode, and there iTunes can see it. I don't want to restore it before I figure out exactly what went wrong, as I don't want the restore process somehow gets stuck in the middle that the connection is lost again.
    I've tried reinstalled iTunes, including completely removal of Apple Mobile Device Support, as instructed by Apple. But still no luck.
    I've tried switching to another USB port of my MacBook. No luck.
    My iTunes is the latest 9.0.1, and my Mac OSX is 10.6.1. My iPhone is on 3.1, upgraded from 3.0.
    I've read from web that it seems I'm not the only one out there having this problem. But none of them seem having any real working solution.
    Urgent help needed & appreciated. Millions of thanks in advance.
    Gary

    1. I used both cables - theirs & mine ... and on several macs
    2. yes, same cable for wall & mac
    3. as said, i did completely remove & install itunes (incl. apple mobile device support), as instructed on the apple webpage
    anyway, did a restore just now. it seems okay now. but the problem is i have no idea what cause this, and i can't replicate the problem. so i don't know when it will happen again ... maybe a bug with os 3.1 ... others on web said os 3.1 is quite buggy ...

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
    The first step in the wrapper is to create a Transcript file using following code
    if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    $path = "c:\corp\$timestamp" + "_$pid.txt"
    Start-Transcript -path $path -append
    As expected the folder contains files with timestamp & pid in name
    08/08/2013  11:00 AM            14,388 2013-08-08-11-00-01.158_1620.txt
    08/08/2013  11:00 AM            12,506 2013-08-08-11-00-01.485_936.txt
    08/08/2013  11:00 AM            12,994 2013-08-08-11-00-01.735_9328.txt
    08/08/2013  11:00 AM            12,024 2013-08-08-11-00-01.766_8624.txt
    08/08/2013  11:00 AM            13,902 2013-08-08-11-00-01.860_1756.txt
    08/08/2013  11:01 AM            15,142 2013-08-08-11-01-31.392_10120.txt
    08/08/2013  05:00 AM            14,982 _1692.txt
    However note the last file, it has a zero length date time value in the name
    The error recorded by PowerShell is
    get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
    +    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    +                  ~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-date:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    IE get-date has failed and returned a zero length field as the timestamp
    Can anyone think of a good reason why get-date would fail intermittently?
    Do I have to code defensively for base Powershell functions?

    I implemented David's suggestion and now I intermittently get
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
    + import-module Microsoft.Powershell.Utility
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand
    I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
    trap {
        trap {
            "Trap1"
            "Exception: " + $_
            "Error: " + $Error[0]
            "Message: " + $_.Exception.Message
            "InnerException: " + $_.Exception.InnerException
            "StackTrace: " + $_.Exception.StackTrace
            "FailedItem: " + $_.Exception.ItemName
            import-module Microsoft.Powershell.Management
            import-module Microsoft.Powershell.Security
            import-module Microsoft.Powershell.Utility
        "Trap2"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        import-module Microsoft.Powershell.Management
        import-module Microsoft.Powershell.Security
        import-module Microsoft.Powershell.Utility
    import-module Microsoft.Powershell.Management
    import-module Microsoft.Powershell.Security
    import-module Microsoft.Powershell.Utility
    trap {
        "Trap3"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        exit 1
    get-date
    Now I intermittently get ..
    Trap2
    Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    InnerException:
    StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
       at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
       at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
    PSModuleInfo& module)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
    FailedItem:
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
    + import-module Microsoft.Powershell.Security
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand

Maybe you are looking for

  • How to update model only if value has changed?

    I would have expected that a model property is only updated if the value of the UIComponent has changed, but I am apparently wrong. Why is the setter-Method of a model always called, even if the old and new value are the same (or better: equal)? I ha

  • 2 tablecontrols in screens

    HI Abapers,         Please help me out from the following situation... Here i have one screen called 1000. in that i hav to include 2 table controls . so is it possible to use 2 table controls in a single screen. If possible please give me one exampl

  • Problem HP Deskjet F4180 and

    I have an iMac with OSX operating system, version 10.9.4. Recently, I updated the software installing the Maverick OSX. My system also includes HP Deskjet F4180 scanner/printer. After this update,  any scanned document or photo when printed are usele

  • I cannot paste into the body a a Gmail message when using FFox but can di so using IE.altho

    I cannot paste into the body a a Gmail message when using Firefox but can do so using IE Occasionally when I paste only portion of the text appears but now I cannot paste any text at ll

  • Answer Supervision dual wink start

    I have a interesting problem. I have a circuit coming in CAS set up for E&M fgb. to a Cisco 58xx The problem is with the wink start. The origionating switch sees immediate answer supervision when a call is made. I beleve this is becuase the Cisco set