SSIS脚本转换错误

时间:2016-06-10 11:57:29

标签: c# c#-4.0 ssis ssis-2012 script-component

SSIS脚本转换发出错误: 找不到脚本的二进制代码。

请单击“编辑脚本”按钮打开设计器中的脚本,并确保

成功构建“

我已打开编辑器并重建,但显示错误

错误3'Input0Buffer'不包含'Column1'的定义,并且没有可以找到接受类型为'Input0Buffer'的第一个参数的扩展方法'Column1'(您是否缺少using指令或程序集引用?)< / p>

2 个答案:

答案 0 :(得分:3)

您必须在脚本组件中提供输入列(请参阅图片,在我的情况下,我使所有列都可用)。

available input column from data stream

答案 1 :(得分:1)

您可能在数据源中有一个名为!AddPluginDir ".\release\" !include WndSubclass.nsh !include WinMessages.nsh !include LogicLib.nsh !define N "WndSubclassExample" Name ${N} OutFile "$%temp%\${N}.exe" ShowInstDetails show LicenseText "<<< hover over the icon, or click it$\n>>> or move this window with the minimize button!!!" Caption "${N}" SubCaption 0 " " page license "" licshow var MainWndSubProc var IconSubProc var hLic var IconAnim var firstbrandscroll Function .onInit !if 0 FindWindow $0 dbgviewClass SendMessage $0 ${WM_COMMAND} 40020 0 System::Call user32::SetForegroundWindow(i$0) !endif FunctionEnd Function IconSubProc #System::Call 'kernel32::OutputDebugString(t "IconSubProc: $1 $2 $3 $4 $\n")' ${If} $2 = ${WM_NCHITTEST} ${If} $IconAnim = 0 System::Call 'user32::SetTimer(i $HWNDPARENT,i 1,i 50,i0)' StrCpy $IconAnim 1 System::Call 'user32::SetTimer(i $1,i 1,i 50,i0)' ${EndIf} ${WndSubClass_Ret} 1 ${ElseIf} $2 = ${WM_TIMER} System::Call *(i,i,i,i)i.r0 System::Call user32::GetWindowRect(i$1,i$0) FindWindow $2 "#32770" "" $HWNDPARENT System::Call 'user32::MapWindowPoints(i 0,i $2,i $0,i 2)' System::Call '*$0(i.r5,i.r6)' IntOp $IconAnim $IconAnim + 1 IntOp $9 $IconAnim % 2 ${If} $9 = 1 IntOp $6 $6 + 2 ${Else} IntOp $6 $6 - 2 ${EndIf} ${If} $IconAnim > 10 System::Call user32::KillTimer(i$1,i1) call ResetLicTick StrCpy $IconAnim 0 ${EndIf} System::Call 'user32::SetWindowPos(i $1,i 0,i $5,i $6,i0,i0,i 1)' System::Free $0 ${ElseIf} $2 = ${WM_LBUTTONUP} ${If} $hLic = 0 quit ${EndIf} call ResetLicTick StrCpy $0 $hLic StrCpy $hLic 0 SendMessage $0 ${WM_SETTEXT} 0 "STR:You disabled the ticker, don't click the icon again" ${EndIf} FunctionEnd Function MainWndSubProc #System::Call 'kernel32::OutputDebugString(t "MainWndSubProc: $1 $2 $3 $4 $\n")' ${If} $2 = ${WM_NCHITTEST} ${WndSubClass_CallNextWndProc} $MainWndSubProc "" "" "" "" ;result in $0 ${IfThen} $0 = 8 ${|} StrCpy $0 2 ${|} ;take over minimize btn and fake as HTCAPTION ${WndSubClass_Ret} $0 ${ElseIf} $2 = ${WM_TIMER} ${If} $3 == 1 System::Call kernel32::GetTickCount()i.r0 SendMessage $hLic ${WM_SETTEXT} 0 "STR:Tick=$0" ${ElseIf} $3 == 2 GetDlgItem $0 $HWNDPARENT 0x404 System::Call 'user32::SendMessage(i $0,i ${WM_GETTEXT},i 99,t.r1)' ${If} $firstbrandscroll != 1 StrCpy $firstbrandscroll 1 StrCpy $1 "$1... " ${EndIf} StrCpy $2 $1 1 StrCpy $1 "$1$2" "" 1 SendMessage $0 ${WM_SETTEXT} 0 "STR:$1" ${EndIf} ${EndIf} FunctionEnd Function ResetLicTick System::Call user32::KillTimer(i$HWNDPARENT,i1) SendMessage $hLic ${WM_SETTEXT} 0 "STR:Tick=?" FunctionEnd Function licshow ${WndSubclass_Subclass} $HWNDPARENT MainWndSubProc $MainWndSubProc $MainWndSubProc CreateFont $9 Arial 22 FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $hLic $0 1000 GetDlgItem $1 $0 0x407 ${WndSubclass_Subclass} $1 IconSubProc $IconSubProc $IconSubProc SendMessage $hLic ${WM_SETFONT} $9 0 call ResetLicTick System::Call 'user32::SetTimer(i $HWNDPARENT,i 2,i 250,i0)' FunctionEnd Section SectionEnd 的数据列,该列将输入您的脚本组件。

检查进入脚本编写组件的数据源/查询,并删除该Column1字段,或取消选中该字段,以便它不会输入脚本组件。