Looks like you are adding Exceptions, It should be .Add
try this and see if you still get the error.
spsCommitment.Exceptions.Add(ospsReqEx)
Exceptions and Requirement
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Exceptions and Requirement
Can you let me know, how to fix this?
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Exceptions and Requirement
This is what I have.
ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")
spsCommitment.Exceptions.add(ospsReqEx)
ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")
spsCommitment.Exceptions.add(ospsReqEx)
Re: Exceptions and Requirement
ok, try the code below.
ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")
spsCommitment.Exceptions.Add(ospsReqEx)
ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")
spsCommitment.Exceptions.Add(ospsReqEx)
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Exceptions and Requirement
Sorry, it is the same thing.