Expected Object Reference?

Hello,
I am attempting to create my own version of modelsupport2.dll's parallel UUT dialog.  (It will use the TestStand Sync Manager to enqueue requests just like the existing Parallel model's parallel UUT dialog does.)  I am faced with a couple issues right off the bat that don't make a whole lot of sense to me.
For one thing, despite the fact that my dialog box (written in VB .NET by the way) is initialized in a sub-sequence of the TestUUTs execution entry point that is configured to run in a separate thread, the TestUUTs sequence still hangs around and waits for the dialog box to close before continuing on.  (This is clearly a problem since the whole point is to have the main thread continually process requests while the dialog box on a separate thread is busy enqueuing requests...)  Does anyone have any idea why that could be happening?  Maybe other sequence settings that I'm not aware of?
Another problem I'm having (although I wasn't initially having this problem) is the following error message: "Expected Object Reference, found Object Reference".  The error code shows "-17308; Specified value does not have the expected type".  This happens in the .NET action step in which I call my .NET assembly to create the object representing the dialog.  The object reference specified for the create object call is a parameter called CustomDialogRefParam - a parameter of type Object Reference.  The TestUUTs execution entry point has a CustomDialogRef local variable of the same type, and it passes it by reference to the Run UUT Info Dialog subsequence...  The idea was that the Run UUT Info Dialog subsequence would create the object, and from that point on, it would be available to the TestUUTs sequence.  Is there anything fundamentally wrong with this idea, or does anyone have any suggestions as to what may be causing this sort of error?
Thanks for any suggestions.  Let me know if I need to clarify anything.

Hello,
Thanks for the feedback.  I actually fixed the problem with the thread not operating independently, (although I can't say I'm completely sure why I needed to do what I did).  The function call that starts the dialog is passed the sequence context from TestStand.  In order to allow TestStand to continue I had to set the sequence context's thread to the "externally suspended" state.  I can now get it to work in a very simple fashion.  (Basically, all it does is open up and wait for the user to click the exit button.  When that happens, the dialog uses the sync manager component to enqueue the appropriate requests to cause TestStand to stop all test sockets and exit the "process dialog requests" consumer loop.  Only problem I have now, is that for some reason, if I put a break point in the sequence after the dialog has been initialized, execution on the main thread stops as expected, but then attempting to step into, step over, or continue cause it to just hang.  (I can't even terminate the process - I have to actually close TestStand entirely.)  So long as I don't pause execution though, it runs flawlessly.
I'm still stuck on the passing of the .NET object reference though.  Oddly enough, it seems to work if I reference the object reference in a subsequence using the following syntax:
RunState.Caller.Locals.CustomDialogRef
But if I try to create an object reference parameter and pass the custom dialog ref by reference, it still fails with this strange "type mismatch"...  I still can't find any solution that works for accessing the object reference from sequences that are started on a separate execution...  Maybe I can store the reference in a station global...  I hate using globals though - it goes against my idea of good programming.
Anyway, thanks again, and any additional suggestions are certainly appreciated.

Similar Messages

  • Expected object reference found execution

    I have a .NET DLL that has a method that takes as a by reference parameter an object of type NationalInstruments.TestStand.Interop.API.Execution. In TestStand 4.2.1 this worked fine if I passed it RunState.Execution.
    Now in TestStand 2010 I get an error in TestStand that the method expected an object reference, but found an execution. An execution is what I want is what the method is describing. So, why does this not work?
    Anyone have any ideas?
    Thanks.
    Solved!
    Go to Solution.

    Hi Skeptical,
    This is a known backwards compatibility issue introduced in TestStand 2010 and will be fixed in a future release.
    That said, it doesn't really make sense for the parameter to be byref (i.e. in/out) in this case because the Execution interface is already a reference data type. Thus, passing it byref implies that the method has the possibility of replacing the object which RunState.Execution points to with a different Execution object which most likely is not something the method would ever do.
    So as a workaround you can do one of the following:
    1) Change the prototype of the method (or add a new overload) to take the execution parameter by value (i.e. in only), which is likely what the author of the code really intended anyway.
    Or
    2) Create a local variable of type Object Reference, and assign RunState.Execution to it before your call to the method, and then pass the local variable for the byref parameter.
    Please let us know if you have any questions or if the workarounds are not sufficient for you.
    Hope this helps,
    -Doug

  • Version 4 Error: Expected Container, found Object Reference

    We're in the process of upgrading our sequences from 3.5 to
    4.0 and for the most part, everything is seamless.  However, there is one situation I’ve found
    that throws a RTE in 4.0 but works fine in 3.5. 
    When calling SetPropertyObject on an object reference, the following
    error is thrown:
    Parameter 'newValue': Expected Container, found Object Reference.
    -17308; Specified value does not have the expected type.
    Attached is a sequence snippet illustrating this
    behavior.  The last step should assign
    the variable in Parameters with the name in TempStr (“Fred” in this example) to
    the first element in the TraceObjRefs array (an array of object references).  
    What is really confounding is that this works as expected in
    3.5.  Any insight as to what changed or
    what’s the best way to work around this?
    Attachments:
    AliasBreak35.seq ‏46 KB

    We are seeing something similar in TS 4.1.
    We have a container with subproperties which are also containers (of the same type actually). Technically, this is an array, we are using the container to be able to address by name. When I extract one of the sub-properties either by GetPropertyObject or by GetNthSubproperty and then try to assign it to a container of the same type, I get the error "Expected container, found object reference".
    I attached a sequence with some experiments, using the NI_Limits type  and found a solution: the Evaluate method seems to actually copy the values from the source container to the target; but only when it is not called as "PropertyObject.Evaluate()" but stand alone.
    But I did not quite understand the mechanics of the aliases. In the sequence, I create an alias, as indicated in the previous posts. Then I can apparently not change that alias again. I used the "Data" member in the NI_Limits container to differentiate between the individual containers.
    After the second SetPropertyObject, the value stays the same as before. But when I then change the value in one of the source objects, the other changes with it.
    So I am not quite clear what an alias actually is and what its effects are.
    Regards
    Peter
    Attachments:
    TestObjRef.seq ‏6 KB

  • SetInterval() null object reference

    I have a function that should repeat every 40 seconds. Each instance is triggered 10 seconds apart using setTimeout, and repeated using setInterval.
    The first loop (40 seconds) work as expected. The repeats don't work and generate the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at SetIntervalTimer/onTimer()
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    Here's the script:
    var eric:MovieClip = MovieClip(this.root);
    xml = new XML(e.target.data);
    eric.content_txt1.htmlText = getContent(1);
    eric.content_txt2.htmlText = getContent(2);
    eric.content_txt3.htmlText = getContent(3);
    eric.content_txt4.htmlText = getContent(4);
    var repeat1:uint = setInterval(slideIn(1), 40000);
    var timer2:Number = setTimeout(function():void {var repeat2:uint = setInterval(slideIn(2), 40000);}, 10000);
    var timer3:Number = setTimeout(function():void {var repeat3:uint = setInterval(slideIn(3), 40000);}, 20000);
    var timer4:Number = setTimeout(function():void {var repeat4:uint = setInterval(slideIn(4), 40000);}, 30000);
    function slideIn(num):void
          var item:TextField = eric["content_txt"+num];
          //trace(item);
          var myTween:Tween = new Tween(item,"y",Strong.easeOut,-150,10,3,true);
          var exit:Number = setTimeout(function():void {var myTween:Tween = new Tween(item,"y",Strong.easeIn,10,150,3,true);}, 5000);

    again, clear the interval first and the function can only be passed a parameter if you use the third parameter of setInterval.
    var repeat1:uint = 0;
    var repeat2:uint = 0;
    var repeat3:uint = 0;
    var repeat4:uint = 0;
    clearInterval(repeat1);
    repeat1 = setInterval(slideIn(1),20000);
    setTimeout(function():void {clearInterval(repeat2); repeat2 = setInterval(slideIn, 20000,2);}, 5000);
    setTimeout(function():void {clearInterval(repeat3); repeat3 = setInterval(slideIn, 20000,3);}, 10000);
    setTimeout(function():void {clearInterval(repeat4); repeat4 = setInterval(slideIn, 20000,4);}, 15000);
    var myTween:Tween;
    function slideIn(num):void
              var item:TextField = eric["content_txt" + num];
              //trace(item);
              new Tween(item,"y",Strong.easeOut,-150,10,3,true);
              setTimeout(function():void { myTween = new Tween(item,"y",Strong.easeIn,10,150,3,true);}, 3000);

  • Windows 2008 R2 - Unable to add additional adm files + error: Objects.reference

    I am running a Windows 2008 R2 Terminal server with Zenworks 10 on it. I am
    trying to create a windows policy group for it, but when I go to add the MS
    office adm files, they never add. If I run gpedit.msc locally, I am able to
    add them. Also when I am done editing the policy before the upload I get
    the following error:
    Objects.reference not set to an instance of an object. at
    novell.Zenworks.PolicyHandlers.WindowsGroupPolicyP lural.GPHelper.ExportGPSettings()
    I have everything patched, any help would be appreciated.

    I don't want to go into the "Why's" too much, but these intermittent
    issues were seen prior to ZCM 10.3.0
    The decision was made to Remove Support for the 64-bit Platform for
    modifying GPOs. This was added to the documentation and the ZCC was
    supposed to block you. For some reason, the ZCC does not block you but
    starting in ZCM 11 it does. So technically there is a bug that it does
    not block you.
    There are also on-going plans to correct the 64-bit Platform support but
    I do not know when that will happen. At this point, I don't think
    adding the support back in is planned in any of the minor point updates.
    There should not be any reason why editing the GPO on a 32-Bit machine
    would not work on a 32-bit machine.
    Oddly, it seems to work most of the time from 64-bit Operating Systems.
    I have never had an issue with 64-bit Operating systems until I tried it
    with ZCM 11 and I was blocked.
    This led me to research the issue where I discovered the details above.
    Since many ZCM 10.3.x customers may have never had an issue and will not
    realize it was not supported until they get to ZCM 11, more calls may
    get generated to increase the priority of the issue but at this time I
    would not expect a quick addition of 64-bit OS support for editing policies.
    On 1/12/2011 3:42 PM, Steve wrote:
    > I have tried with IE 32 bit and firefox and it still happens. If I was to
    > create a windows group policy for a 32 bit version, do you think I would be
    > able to assign it to the 64 bit version? Why don't they support 64 group
    > policies?
    >
    > I appreciate the help.
    >
    >
    >
    > "craig wilson"<[email protected]> wrote in message
    > news:[email protected].. .
    >> I presume the server is running a 64-bit Version of Windows?
    >> Make sure you are running a 32-bit Browser and try FireFox if using I.E.
    >>
    >> Officially modifying GPOs on a 64-bit OS is not supported since these
    >> errors are sometimes seen. ZCM 11 actually Proactively prevents the
    >> editing of the GPOs on a 64-bit OS via the ZCC.
    >>
    >> If you have a 32-bit version of the OS you could try that as well as
    >> trying to create the GPO on a 32bit Client OS.
    >>
    >> On 1/12/2011 1:35 PM, Steve wrote:
    >>> I am running a Windows 2008 R2 Terminal server with Zenworks 10 on it. I
    >>> am
    >>> trying to create a windows policy group for it, but when I go to add the
    >>> MS
    >>> office adm files, they never add. If I run gpedit.msc locally, I am able
    >>> to
    >>> add them. Also when I am done editing the policy before the upload I get
    >>> the following error:
    >>>
    >>> Objects.reference not set to an instance of an object. at
    >>>
    >>> novell.Zenworks.PolicyHandlers.WindowsGroupPolicyP lural.GPHelper.ExportGPSettings()
    >>>
    >>> I have everything patched, any help would be appreciated.
    >>>
    >>>
    >>
    >>
    >> --
    >> Craig Wilson - MCNE, MCSE, CCNA
    >> Novell Knowledge Partner
    >>
    >> Novell does not officially monitor these forums.
    >>
    >> Suggestions/Opinions/Statements made by me are solely my own.
    >> These thoughts may not be shared by either Novell or any rational human.
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • SAP BW Universe OLAP @prompt LOV using object reference not working

    I have tried to follow Didier MAZOUÉ's "[OLAP universes best practices|https://boc.sdn.sap.com/node/20081]" document to create calculated measure in a OLAP universe built on top of a BW cube directly. The objective is to get the revenue figure from the same period of the previous year. I wanted to be able to have a LOV to specify a period when the object is used in a webi report.
    When I hard coded the LOV as a data set as displayed in the following example  (  {'[CD2007009]','[CD2007010]'}  ) The prompt worked as expected.
    (PARALLELPERIOD(.[LEVEL01],1,[0FISCPER].@Prompt('Period?',A,{'[CD2007009]','[CD2007010]'},mono,free)),[Measures].[0G_AERLOS])</EXPRESSION>
    When I build my expression using an object referece as ( 'TimeFiscal year period' ), I was given an error msg saying "invaid prompt definition". I verified my spellings and syntax and they were correct based on the examples provided by the best practice document.
    (PARALLELPERIOD(.[LEVEL01],1,[0FISCPER].@Prompt('Period?',A,'TimeFiscal year period',mono,free)),[Measures].[0G_AERLOS])</EXPRESSION>
    Is there anything obvious that I missed. Or there are some extra configuration I have to do on SAP BW or Universe side?

    Hi  Mr. MAZOUÉ,
    After a few days of struggling with this particular prompt issue, I finally figured out what was wrong with it. The object reference in the @prompt function is not able to process object references in a subclass correctly.
    For example:
    @Prompt('Period?','A','TimeFiscal year periodL01 Fiscal year period',mono,free)
    The 'Fiscal year period' is a subclass under the main class 'Time'. If you use this prompt function in a MDX expression, it parse correctly. But it generates a prompting failure when referencing the object with the embeded prompt function in a webi report.
    However, if I move the 'L01 Fiscal year  period' object underneath the 'Time' class and change the prompt as @Prompt('Period?','A','TimeL01 Fiscal year period',mono,free). I was able to get a list of values when I designed a webi report using the object.
    This seems to me is a limitation from the current OLAP Universe implementation.
    Looking forward to your feedbacks!
    thanks

  • "cacheHostInfo is null" and Add-SPDistributedCacheServiceInstance : Object reference not set to an instance of an object.

    I am working on a standalone install Sharepoint 2013 (no Active Directory). I found newsfeed feature is not available and checked Distributed Cache service is stopped. When start it “cacheHostInfo is null” is returned.
    I checked the Windows service “AppFabric caching service” is stopped because the default identity “Network Service” not work. Then I change the AppFabric service identity to use “.\administrator” (which is also the sp farm administrator) and the service can
    be started.
    However the “cacheHostInfo is null” when try to start Distributed Cache service in central admin.
    I searched on web and found this blog: http://rakatechblog.wordpress.com/2013/02/04/sharepoint-2013-spdistributedcacheserviceinstance-cachehostinfo-is-null/
    I tried to run the script but it return error:
    Add-SPDistributedCacheServiceInstance : Object reference not set to an
    instance of an object.
    At C:\root\ps\test.ps1:8 char:13
    + $whatever = Add-SPDistributedCacheServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share…ServiceInstance:
    SPCmdletAddDist…ServiceInstance) [Add-SPDistributedCacheServiceInstance]
    , NullReferenceException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddDistr
    ibutedCacheServiceInstance
    I am not sure what went wrong. Please give me some idea? Thank you for any comment!

    Can you deploy Active Directory as installing without is not a supported installation scenario - http://support.microsoft.com/kb/2764086.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Web-UI error message "Access via 'NULL' object reference not possible"

    I need some help, I'm not a Basis person but I need to get this connection problem resolve.
    This problem is in our DEV ICWeb system.  After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible".  We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
    From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination.  But we don't have that destination setup in all our systems.
    Here is the complete error message:
    Error when processing your request
    What has happened?
    The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    Note
    ■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
    ■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
    ■The termination type was: RABAX_STATE
    ■The ABAP call stack was:
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
    Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
    Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
    Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
    Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    What can I do?
    ■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
    ■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.

    Hi Michael,
    Refer to the link below and check the procedure.
    http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    Regards,
    Arjun

  • How to convert from Finder Object reference to POSIX path

    I'm new to AppleScript. I'm super close to getting what I need done, but I've ran across a snag in the middle.
    The error I'm getting is Can’t make quoted form of POSIX path of item 1 of {«class docf» \"filename\" of «class cfol» \"foldername\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type Unicode text. the problem area is highlighted and notated below. I've looked all around online but can't find what I need.
    Thanks in advance for any and all help!
    set text item delimiters to "."
    tell application "Finder"
      set theFilestoChoose to every item of (choose file with prompt "Please select the file(s) you would like to move and rename" with multiple selections allowed) as list
      display dialog "Would you like to move these files to an existing folder and then rename them, or create a new folder and then rename them?" buttons {"Move to an existing folder and rename", "Create a new folder and rename"}
      if result = {button returned:"Move to an existing folder and rename"} then
      set firstnewname to "Aauuttoommaattoorr"
      repeat with index from 1 to the count of theFilestoChoose
      set theFilesChosenbeingrenamedfirsttime to item index of theFilestoChoose
      set filenamecount to text items of (get name of theFilesChosenbeingrenamedfirsttime)
      if number of filenamecount is 1 then
      set fileextension to ""
      else
      set fileextension to "." & item -1 of filenamecount
      end if
      set the name of theFilesChosenbeingrenamedfirsttime to firstnewname & index & fileextension as string
      end repeat
      log theFilesChosenbeingrenamedfirsttime
      set choosingtheplacetomove to choose folder with prompt "Select the folder to move to"
      set thechosenfoldersname to name of folder choosingtheplacetomove -- sets the folder name as text
      set AppleScript's text item delimiters to {"-"}
      set Numberofthemonthatthebeginningofthefoldername to text item 1 of thechosenfoldersname as string -- for later to append the number back on without having to ask again!
      set shortenedname to text item 2 of thechosenfoldersname as string
      set the name of choosingtheplacetomove to shortenedname as string
      set thefolderstemporarynameaslocation to choosingtheplacetomove as string
      move theFilestoChoose to folder thefolderstemporarynameaslocation
      log theFilestoChoose
      set allfilesindestinationfolder to every file in choosingtheplacetomove as alias list --
      set aInitials to the text returned of (display dialog "Whose camera were this/these pictures taken on?" default answer "")
      set filteredList to my filterList(allfilesindestinationfolder, aInitials) as list
      log filteredList
      -- everything above this is correct so far and works perfect
      --TROUBLE SECTION BELOW
      set theSortedfilterList to (sort filteredList by creation date) -- something happens here with the theSortedfilterList that makes it unintelligible to convert to POSIX later. but I need the files in the order that this line puts them.
      log theSortedfilterList
      set timetorenamelasttime to theSortedfilterList
      set newbasename to shortenedname
      repeat with index from 1 to the count of timetorenamelasttime
      set theonefile to item index of timetorenamelasttime
      set theonefilenamecount to text items of (get name of theonetwothreefile)
      if number of theonefilenamecount is 1 then
      set fileextensionone to ""
      else
      set fileextensionone to "." & item -1 of theonefilenamecount
      end if
      tell application "System Events" to set CreaDate to creation date of file theonefile
      set CreaDate2 to CreaDate as text -- need to trim down to the first 10 characters and eliminate the "-"
      set AppleScript's text item delimiters to {""}
      set shorteneddatename to text items 1 thru 10 of CreaDate2 as string
      set the name of theonefile to shorteneddatename & {"-"} & newbasename & {"-"} & aInitials & {"-"} & index & fileextensionone as string
      end repeat
      --Trouble section above
      set the name of choosingtheplacetomove to Numberofthemonthatthebeginningofthefoldername & "-" & shortenedname as string -- returns the month prefix to the foldername
      else if result = {button returned:"Create a new folder and rename"} then
      set repeatConfirmation to true --Boolean to decided if script should be repeated; default is to repeat
      repeat while (repeatConfirmation = true) --Repeat if Any Tests Are Failed
      set thefirstquestion to choose from list {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} with title "Event Month Selection" with prompt "Select the month in which the event started. Select only one month:"
      set theMonthAnswer to result
      if theMonthAnswer = false then --"For historical reasons, choose from list is the only dialog command that returns a result (false) instead of signaling an error when the user presses the “Cancel” button."
      set repeatConfirmation to false
      set exitingeventmonth to display dialog ("You are exiting selecting the event month phase of the program. You will need to manually fix this decision") buttons {"OK"} with title "Exiting Event Month Selection"
      if button returned of exitingeventmonth = "OK" then
      set theMonthAnswer to ""
      end if
      else
      set confirmationanswer to display dialog "You selected " & theMonthAnswer & ", is this correct? " buttons {"Yes, that's correct.", "No, the picture(s) are from a different month."} with title "Confirm Event Month Selection"
      if button returned of confirmationanswer = "Yes, that's correct." then
      set repeatConfirmation to false
      else
      display dialog ("That's okay, you can select another again!") buttons {"OK"} with title "Return to Event Month Selection"
      end if
      end if
      end repeat
      log theMonthAnswer
      if theMonthAnswer = "" then
      set monthtonumber to "You have cancelled this action."
      log monthtonumber
      else if theMonthAnswer = {"January"} then
      set monthtonumber to "01"
      log monthtonumber
      else if theMonthAnswer = {"February"} then
      set monthtonumber to "02"
      log monthtonumber
      else if theMonthAnswer = {"March"} then
      set monthtonumber to "03"
      log monthtonumber
      else if theMonthAnswer = {"April"} then
      set monthtonumber to "04"
      log monthtonumber
      else if theMonthAnswer = {"May"} then
      set monthtonumber to "05"
      log monthtonumber
      else if theMonthAnswer = {"June"} then
      set monthtonumber to "06"
      log monthtonumber
      else if theMonthAnswer = {"July"} then
      set monthtonumber to "07"
      log monthtonumber
      else if theMonthAnswer = {"August"} then
      set monthtonumber to "08"
      log monthtonumber
      else if theMonthAnswer = {"September"} then
      set monthtonumber to "09"
      log monthtonumber
      else if theMonthAnswer = {"October"} then
      set monthtonumber to "10"
      log monthtonumber
      else if theMonthAnswer = {"November"} then
      set monthtonumber to "11"
      log monthtonumber
      else if theMonthAnswer = {"December"} then
      set monthtonumber to "12"
      log monthtonumber
      end if
      set theNameofFoldertoMake to text returned of (display dialog "Please enter the name of the new folder you are creating:" default answer "" with title "New Folder Name")
      set LocationOfNewFolder to choose folder with prompt "Choose the location of the new folder you are creating:"
      set theNewNameofFoldertoMake to monthtonumber & "-" & theNameofFoldertoMake
      set newfolderaction to make new folder at LocationOfNewFolder with properties {name:theNewNameofFoldertoMake}
      move theFilestoChoose to newfolderaction
      end if
    end tell
    --function
    on filterList(allfilesindestinationfolder, aInitials)
      set patterns to {aInitials as string, "Aauuttoommaattoorr"}
      set output to {}
      repeat with aFile in the allfilesindestinationfolder
      repeat with aPattern in patterns
      set filepath to aFile as string
      if filepath contains aPattern then
      set end of the output to aFile
      exit repeat
      end if
      end repeat
      end repeat
      return output
    end filterList

    Okay, so you wanted the debugging and error messages. Thank you for the coaching. Here is what I get from the following line:
    set theSortedfilterList to (sort filteredList by creation date)
    log theSortedfilterList
    Log returns:
    (*document file Aauuttoommaattoorr3.AVI of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr2.MOV of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr1.mov of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk*)
    set pxFile to POSIX path of ((theSortedfilterList) as alias)
    Error: "Can’t make {«class docf» \"Aauuttoommaattoorr3.AVI\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr2.MOV\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr1.mov\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type alias." number -1700 from {«class docf» "Aauuttoommaattoorr3.AVI" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr2.MOV" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr1.mov" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk»} to alias
    That is why I labeled it with Finder Object reference won’t return POSIX path, because I tried what was suggested about using the POSIX path of line. I thought seeing the lines above and around it would help set the context.
    So I need those files, but I need them sorted by creation date so that they’re in that order for the next renaming step.

  • Test-OutlookConnectivity WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.

    Hi All,
    When we do a test-outlookconnectivity -protocol:http the result is a success but then we get the following:
    ClientAccessServer   ServiceEndpoint                               Scenario                           
    Result  Latency
    (MS)
    xxxxxxxxxxxx... xxxxxxxxxxxxxx                 Autodiscover: Web service request.  Success   46.80
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
     of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    So it looks like it's not completing successfully.
    I can't find anything on this in particular, and don't really know how to go about solving it - We are fully up to date, Exchange 2010 Sp2 with Rollup 5-v2
    Any help appreciated!

    hi,
    I have the same issue also on Exchange 2010 SP2 RU5v2
    I ran your command and get the below
    [PS] C:\Installs\report\Activesync>Test-OutlookConnectivity -Protocol:http |FL
    RunspaceId                  : ebd2c626-1634-40ad-a17e-c9a713d1a62b
    ServiceEndpoint             : autodiscover.domain.com
    Id                          : Autodiscover
    ClientAccessServer          : CAS01.domain.com
    Scenario                    : Autodiscover: Web service request.
    ScenarioDescription         :
    PerformanceCounterName      :
    Result                      : Success
    Error                       :
    UserName                    : Gazpromuk.intra\extest_645e41faa55f4
    StartTime                   : 8/21/2013 4:08:50 PM
    Latency                     : 00:00:00.1250048
    EventType                   : Success
    LatencyInMillisecondsString : 125.00
    Identity                    :
    IsValid                     : True
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
     Any help would be greatly appreciated, I also get random failures of OWA, EAS and web services, very frustrating
    I have no errors in the app event log
    thanks
    Faisal Saleem Windows Systems Analyst 07595781867

  • "An error has occurred:Object reference not set to an instance of an object."

    This error message comes up with a user in InfoView.  The user schedules a report, updates parameters, and the report kicks off successfully.  But then a few minutes later, this error is received.    This occurs sporadically, regardless of the length of time of report or amount of data being retrieved.  Sometimes the report runs to completion.  Other times this error message occurs.
    Has anyone seen this before and have any thoughts?
    Thank you.
    “An error has occurred:Object reference not set to an instance of an object.”

    Are you able to replicate the issue both in Java and .NET InfoView?
    For .NET InfoView, sometimes the "An error has occurred: Object reference not set to an instance of an object" error shows up after the .NET Framework is upgraded to 2.0

  • "Object reference not set to an instance of an object" when opening designer

    I have a Windows Forms project which was originally developed in Visual Studio 2010. I migrated the project to VS2013, and now every time I open the project's main form, the designer complains of a null reference. If I hit "Ignore and Continue",
    the code compiles just fine. The error in question appears in the "Windows Form Designer generated code" region. Even more curious, the line in question is not the first reference to the object. It's as if the first few times it needs to interact
    with the object, it's fine, then at a certain point it becomes null.
    Here is the call stack for the error:
    at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component,
    Object value)at
    Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object
    component, Object value)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager
    manager, CodeAssignStatement statement, CodePropertyReferenceExpression
    propertyReferenceEx, Boolean reportError)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
    manager, CodeAssignStatement statement)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
    manager, CodeStatement statement) 
    And here is the code in question:
    this.optionsControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); 
    this.optionsControl.IsAsciiMode = false;           
    this.optionsControl.Location = new System.Drawing.Point(3, 3);
    this.optionsControl.LogControl = null;           
    this.optionsControl.Name = "optionsControl";           
    this.optionsControl.PlugInManager = null;           
    this.optionsControl.PortFacade = null;           
    this.optionsControl.Size = new System.Drawing.Size(613, 259);
    this.optionsControl.TabIndex = 0;
    The problem is reported at the third line, "this.optionsControl.Location = new System.Drawing.Point(3, 3);".

    Hi Eric,
    I have made a research about your issue, and I found it might be caused by the usercontrol in the project. Was “this.optionsControl” a UserControl? It seems that this issue was difficult to handle.
    If possible, I would recommend you recreate this control in a new project.
    In addition, I think you could turn to the links below, they may be useful to you:
    # How to get more information about exceptions thrown by the designer when switching from code to design view?
    http://community.sharpdevelop.net/forums/p/16124/43105.aspx
    # How to avoid WSODs in the Visual Studio 2005 Designer
    http://www.codeproject.com/Articles/13584/How-to-avoid-WSODs-in-the-Visual-Studio-Desig
    # design time error: object reference not set an instance of an object but runs fine
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b3676bef-e457-4aac-b438-d3ed8a667e3f/design-time-error-object-reference-not-set-an-instance-of-an-object-but-runs-fine?forum=winforms
    Best Regards,
    Edward
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • "object reference not set to an instance of an object" after update datasource lightswitch

    I'm using Latest Visual Studio 2013 Ultimate (2013.3) and when I attempt to open "update datasource"  it throws an error
    "Object reference not set to instance of an object." 

    It's quite possibly an issue with the data source definition being dependent on a newer version of a lightswitch framework DLL.  When I've hit these kinds of issues I've simply deleted the datasource, run a nuget refresh and added the datasource again.
     If you have any code or queries, save a copy of the code-behind files and jot down the details of the queries before you try this.

  • Object reference not set to an instance of an object. at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.

    Hello.
    I just installed a new farm, the wizard was succesfull in all steps.  However when I try to load the default site it created I got this exception.
    Any idea?
    System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()
        at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext)     at Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalAvailable()     at Microsoft.Office.Server.WebControls.MyLinksRibbon.EnsureMySiteUrls()
        at Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalMySiteUrlAvailable()     at Microsoft.Office.Server.WebControls.MyLinksRibbon.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at
    System.Web.UI.Control.LoadRecu...
    Follow me on Twitter <<<

    I tried removing the user profile service application and creating it again, when I did that, and tried to navigate to the page to manager the user profile application it shows me an exception
    According to the uls log viewer its;
    Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: This User Profile Application's connection is currently not available. The Application Pool or User Profile Service may not have been started. Please contact your administrator.
       at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage.get_CurrentApplicationProxy()     at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage.IsProfileSynchronizationRunning()     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderSectionContents(HtmlTextWriter
    writer)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderWebPart(HtmlTextWriter writer)     at Microsoft.SharePoint.WebPartPages.WebPart.Render(HtmlTextWriter ...
    I checked and the sharepoint web services default was stopped, I started and still the same error,  that pool is under Local Service account.
    Follow me on Twitter <<<

  • "Object reference not set to an instance of an object" in WAD

    10:45:09.659 ########## --> com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable ##########
    -EXCEPTION-START- 10:45:09.659: DEBUG ### Browser Init failed. 2nd try will be proceeded. ---
    Exception Message: Object reference not set to an instance of an object.
    Exception    at SAPWADMXHTML.IWADMXBrowser2.AttachAnnotator(Boolean On)
       at com.sap.bi.et.wad.AxSAPWADMXHTML.AxCWADMXBrowser2.AttachAnnotator(Boolean on)
       at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable(Boolean iBool)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Debug.Exception(Exception, String)
         at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable(Boolean)
         at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.set_BrowserDesignMode(Boolean)
         at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.Navigate(String, Boolean)
         at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SetHTMLsafe(String, Boolean)
         at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SetHTML(String, Boolean)
         at com.sap.bi.et.wad.man.WADctlEditViewLayout.SetDocumentHTML(String)
         at com.sap.bi.et.wad.man.WADctlEditViewLayout.TemplateXML2HTMLEdit()
         at com.sap.bi.et.wad.man.WADfrmTemplateMDIWindow.UpdateView(Int32, Int32, Boolean)
         at com.sap.bi.et.wad.man.WADfrmTemplateMDIWindow.tabLayoutTab_Switch(Object, EventArgs)
         at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs)
         at System.Windows.Forms.TabControl.WmSelChange(Message&)
         at System.Windows.Forms.TabControl.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
         at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, Message&)
         at System.Windows.Forms.Control.WmNotify(Message&)
         at System.Windows.Forms.Control.WndProc(Message&)
         at System.Windows.Forms.ScrollableControl.WndProc(Message&)
         at System.Windows.Forms.ContainerControl.WndProc(Message&)
         at System.Windows.Forms.Form.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
         at System.Windows.Forms.Control.DefWndProc(Message&)
         at System.Windows.Forms.Control.WmMouseDown(Message&, MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(Message&)
         at System.Windows.Forms.TabControl.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----

    Hello Dieu,
    Have you found a solution of this exception?? i also come across this one.
    Kind Regards,
    Clark

Maybe you are looking for

  • Safari and yahoo mail not getting along

    Safari and Yahoo Mail don't seem to be getting along this past month

  • How to handle user exit sequence

    how do handle the userexit sequence i,e in which order the user exits are stored?

  • How do I select part of a clip to import in Final Cut Pro 10.0.7?

    Greetings. I'm a newby in FCPX.  I've been watching Michael Wohl's tutorial and it looks like I should be able to mark parts of clips stored on my HD to import into the event browser.  But I don't seem to be able to mark the clips with either the "i

  • Credit for fraudulent calls

    How do I request credit for fraudulent phone calls from my account?  My account was locked, so Skype figured out my account was hacked, but how do I contest the calls and charges?  After this event, there is no way in hell I am keeping more then a fe

  • Putting 2 pages onto on in Numbers

    Hi, I have 2 separate pages/sheets in numbers as one document & I would like to print them both on one page when I print. I was told to change the "pages per sheet" to 2 on the print screen & then go into the numbers section and change it to "all she