KNOWN ISSUE: CreateJob error in Administrator SDK 1.4, "Error Value cannot be null" when job have Condition set

Article:TECH39616  |  Created: 2008-03-13  |  Updated: 2009-04-02  |  Article URL http://www.symantec.com/docs/TECH39616
NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.
Article Type
Technical Solution


Issue



Using the SDK, while importing or creating a job which has specific conditions set, I receive an exception. The error occurs when the XML-file contains a <Condition_Item_Table> tag (see the example below).

Other jobs that do not have this tag do not present a problem.

<Condition_Item_Table>
     <job_id>2000307</job_id>
     <condition_sequence>0</condition_sequence>
     <item_sequence>0</item_sequence>
     <field_type>Processor Type</field_type>
     <operation_type>Is</operation_type>
     <key_value>1</key_value>
     <conjunct>None</conjunct>
</Condition_Item_Table>

In the Administrator SDK log the following problem is displayed:

<event date="7-3-2008 14:10:12" severity="1"
source="Altiris.ASDK.DS.ObjectManagement.LogMessage">Value cannot be null.
Parameter name: type ( Unhandled exception.
Type=System.ArgumentNullException Msg=Value cannot be null.
Parameter name: type Src=mscorlib
StackTrace=
    at System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture,
Object[] activationAttributes)
    at System.Activator.CreateInstance(Type type, Object[] args,
Object[] activationAttributes)
    at Altiris.ASDK.DS.JobManagement.createJob(String jobData, Boolean
update) )</event>
<event date="7-3-2008 14:10:12" severity="1"
source="Altiris.ASDK.DS.ObjectManagement.LogMessage">Value cannot be
null.
Parameter name: type ( Unhandled exception.
Type=Altiris.ASDK.ASDKException Msg=Value cannot be null.
Parameter name: type Src=Altiris.ASDK.DS
StackTrace=
    at Altiris.ASDK.DS.JobManagement.createJob(String jobData, Boolean
update)
    at Altiris.ASDK.DS.JobManagement.CreateJob(String jobData)
)</event>


Environment



Using Administrator SDK 1.4 to import or export jobs in Deployment Solution 6.8 SP2.

Cause



The ASDK 1.4 was not compatible with some of the the DS 6.8+ code.


Solution



This issue has been resolved in DS 6.9 SP2


Supplemental Materials

SourceDEFECT
ValueLB 66445
DescriptionLogged in Littlebuggy (Altiris - Lindon, Plymouth) database

Legacy ID



40878


Article URL http://www.symantec.com/docs/TECH39616


Terms of use for this information are found in Legal Notices