Symantec Developer Group

 View Only
  • 1.  Error "An unknown exception was thrown"

    Posted Feb 14, 2014 11:23 PM
      |   view attached

    When I run a script to update the custom data class. An error (attached captured) "An unknown exception was thrown" showed.

    It is strange that all clients have this error except the first PC for testing this script.



  • 2.  RE: Error "An unknown exception was thrown"

    Posted Feb 14, 2014 11:24 PM

    I am using Altiris Management 7.1. Thanks.



  • 3.  RE: Error "An unknown exception was thrown"

    Posted Feb 15, 2014 12:37 AM

    See if it help

    KNOWN ISSUE: Discovery tasks fail immediately with error ''An unknown exception was thrown''

    Article:TECH44241  |  Created: 2009-08-25  |  Updated: 2009-08-25  |  Article URL http://www.symantec.com/docs/TECH44241

     



  • 4.  RE: Error "An unknown exception was thrown"

    Posted Feb 18, 2014 01:50 AM

    Hi AJ,

    Thanks for your reply. But the solution is failed unfortunately. I doubt that why the 1st day created the custom data class is okay, then error shows from 2nd day of custom data class creation.



  • 5.  RE: Error "An unknown exception was thrown"

    Posted Feb 18, 2014 08:14 PM

    I found a link report that it is a bug.

    Do anyone know that it is solved or not? Thanks,

    http://www.symantec.com/business/support/index?page=content&id=TECH208832

     



  • 6.  RE: Error "An unknown exception was thrown"
    Best Answer

    Broadcom Employee
    Posted Mar 04, 2014 07:51 AM

    Bug was resolved by using custom token.

     

     custom token that uses the following SQL:

    select top 1
    igugd.Email
    from TaskInstances ti
    join TaskInstanceParents tip on ti.TaskInstanceGuid = tip.TaskInstanceGuid
    join TaskInstanceSummaries tisum on tip.ParentTaskInstanceGuid =
    tisum.TaskInstanceGuid
    right outer join Inv_Global_Windows_Users igwu on userid = right
    (tisum.ExecutedBy,((CHARINDEX('\',reverse(ExecutedBy))-1)))
    join Inv_Global_User_General_Details igugd on igwu._ResourceGuid =
    igugd._ResourceGuid
    where ti.ResourceGuid = '%COMPUTERID%'
    order by tisum.StartTime DESC



  • 7.  RE: Error "An unknown exception was thrown"

    Posted Mar 12, 2014 10:53 PM

    Thanks Alex.

    I want to get the last value from a custom data class by "token" method.

    But in 1st run, since it is no value in the class and make this error.

    My custom token is :

    SELECT  [LastRun_Date] FROM  [dbo].[Inv_run_record]
    WHERE  [_ResourceGuid] = '%COMPUTERID%'

    Since your suggested custom token is too complicated for me. I don't know how to translate it to my situation.

    Would you give some hints to do that?

    Thank you very much.