dbTalk Databases Forums  

Invalid procedure call or argument: 'DTSDestination'

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Invalid procedure call or argument: 'DTSDestination' in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Drew
 
Posts: n/a

Default Invalid procedure call or argument: 'DTSDestination' - 08-29-2005 , 11:07 AM






I am getting the following error, Invalid procedure call or argument:
'DTSDestination'

I have the following code,

If DTSSource("Complete") <> "" Then
DTSDestination("Amount") = DTSSource("Complete")
DTSDestination("Complete") = 1
Else
DTSDestination("Complete") = 0
End If

Main = DTSTransformStat_OK

It is erroring on the DTSDestination("Amount").Value = DTSSource("Complete")
line. I have 4 of these type columns, 3 of them are working fine and this
one is giving me problems. I even copied/pasted the code from the other
transforms, and then they error out too. I even deleted the transformation
and re-created it, still the same error.

What am I doing wrong?

Thanks,
Drew



Reply With Quote
  #2  
Old   
Drew
 
Posts: n/a

Default Re: Invalid procedure call or argument: 'DTSDestination' - 08-29-2005 , 01:33 PM






Figured it out... Since my conditional was transforming 2 columns, I had to
add the Amount column to the Destination Columns tab.

Everything works fine now.

Thanks,
Drew

"Drew" <drew.laing (AT) NOswvtc (DOT) dmhmrsas.virginia.SPMgov> wrote

Quote:
I am getting the following error, Invalid procedure call or argument:
'DTSDestination'

I have the following code,

If DTSSource("Complete") <> "" Then
DTSDestination("Amount") = DTSSource("Complete")
DTSDestination("Complete") = 1
Else
DTSDestination("Complete") = 0
End If

Main = DTSTransformStat_OK

It is erroring on the DTSDestination("Amount").Value =
DTSSource("Complete") line. I have 4 of these type columns, 3 of them are
working fine and this one is giving me problems. I even copied/pasted the
code from the other transforms, and then they error out too. I even
deleted the transformation and re-created it, still the same error.

What am I doing wrong?

Thanks,
Drew




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.