Hi All,
I am getting error when trying to execute package from a webservice. It works absolutely fines when run from BIDS or from console application. I have already tried options like setting default valuesfor each variable, delayvalidation = true and
evaluateasexpression = true.
Adv_SP_ErrorLogInsert is a SP which inserts error log entries into ErrorLogFile table.
Error that I am getting is as below:
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing reverse module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing Transaction Import module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_START', 0, 'TranImport', 0, 'Transaction Import module started at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for Starting Transaction Import modul.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'BTRIEVEERR', 'THRD_IMPRT_TRAN_FAILED', 0, 'Transaction Import', 0, 'Unable to update original WIMPLOG RequestID " +
(DT_WSTR,10)@[User::v_RequestID] + " with new WBILDIRS RequestID " + (DT_WSTR,10)@[User::v_ReverseRequestID] + " for WIMPLOG ImportLogDirKey " + (DT_WSTR,10) @[User::v_ImpLogDirKey] + "', 1"" on
property "\Package\ErrorLog Entry for Updating RequestID in WIMPLOG.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'LOGICALERROR', 'SPLIT_TRAN_REVERSE', 0, 'Transaction Import', 0, 'Unable to create billdir entry. Insert failed into BILLDIRS
table.', 0"" on property "\Package\ErrorLog Entry for WBILLDIRS Entry Failed.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, 'Unable to import transactions. The file " + @[User::v_ImportFileName]+ " was already imported!', 1"" on property "\Package\Foreach Loop Container\ErrorLog Entry for file already imported.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be
set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression "Lower(@[User::v_ImportMode]) == "regular" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
Lower(@[User::v_ImportMode]) == "reverse" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_REV_TRAN_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
Lower(@[User::v_ImportMode]) == "suspense" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_IMPRT_SUSP_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"" on property "\Package.EventHandlers[OnError]\ErrorLog Entry for Master.Properties[SqlStatementSource]" cannot be written
to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing reverse module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing Transaction Import module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_START', 0, 'TranImport', 0, 'Transaction Import module started at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for Starting Transaction Import modul.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'BTRIEVEERR', 'THRD_IMPRT_TRAN_FAILED', 0, 'Transaction Import', 0, 'Unable to update original WIMPLOG RequestID " +
(DT_WSTR,10)@[User::v_RequestID] + " with new WBILDIRS RequestID " + (DT_WSTR,10)@[User::v_ReverseRequestID] + " for WIMPLOG ImportLogDirKey " + (DT_WSTR,10) @[User::v_ImpLogDirKey] + "', 1"" on
property "\Package\ErrorLog Entry for Updating RequestID in WIMPLOG.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'LOGICALERROR', 'SPLIT_TRAN_REVERSE', 0, 'Transaction Import', 0, 'Unable to create billdir entry. Insert failed into BILLDIRS
table.', 0"" on property "\Package\ErrorLog Entry for WBILLDIRS Entry Failed.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, 'Unable to import transactions. The file " + @[User::v_ImportFileName]+ " was already imported!', 1"" on property "\Package\Foreach Loop Container\ErrorLog Entry for file already imported.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be
set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression "Lower(@[User::v_ImportMode]) == "regular" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
Lower(@[User::v_ImportMode]) == "reverse" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_REV_TRAN_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
Lower(@[User::v_ImportMode]) == "suspense" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_IMPRT_SUSP_FAILED', 0, 'Transaction Import', 0, ?, 0"
:
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"" on property "\Package.EventHandlers[OnError]\ErrorLog Entry for Master.Properties[SqlStatementSource]" cannot be written
to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing reverse module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_STOP', 0, 'TranImport', 0, 'Transaction Import module stopped at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for completing Transaction Import module.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_START', 0, 'TranImport', 0, 'Transaction Import module started at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for Starting Transaction Import modul.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'BTRIEVEERR', 'THRD_IMPRT_TRAN_FAILED', 0, 'Transaction Import', 0, 'Unable to update original WIMPLOG RequestID " +
(DT_WSTR,10)@[User::v_RequestID] + " with new WBILDIRS RequestID " + (DT_WSTR,10)@[User::v_ReverseRequestID] + " for WIMPLOG ImportLogDirKey " + (DT_WSTR,10) @[User::v_ImpLogDirKey] + "', 1"" on
property "\Package\ErrorLog Entry for Updating RequestID in WIMPLOG.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'LOGICALERROR', 'SPLIT_TRAN_REVERSE', 0, 'Transaction Import', 0, 'Unable to create billdir entry. Insert failed into BILLDIRS
table.', 0"" on property "\Package\ErrorLog Entry for WBILLDIRS Entry Failed.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dt
s.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert ?, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, 'Unable to import transactions. The file " + @[User::v_ImportFileName] + "
was already imported!', 1"" on property "\Package\Foreach Loop Container\ErrorLog Entry for file already imported.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the
property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression "Lower(@[User::v_ImportMode]) == "regular" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"
:Lower(@[User::v_ImportMode]) == "reverse" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_REV_TRAN_FAILED', 0, 'Transaction Import', 0, ?, 0"
:Lower(@[User::v_ImportMode]) == "suspense" ?
"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'THRD_IMPRT_SUSP_FAILED', 0, 'Transaction Import', 0, ?, 0"
:"EXEC Adv_SP_ErrorLogInsert -111, 24, 'LOGICALERROR', 'IMPRT_TEXT_FILE_FAILED', 0, 'Transaction Import', 0, ?, 0"" on property "\Package.EventHandlers[OnError]\ErrorLog Entry for Master.Properties[SqlStatementSource]" cannot be written
to the property. The expression was evaluated, but cannot be set on the property.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : The result of the expression ""EXEC Adv_SP_ErrorLogInsert 0, 24, 'DEBUGLABEL', 'TRANIMP_START', 0, 'TranImport', 0, 'Transaction Import module started at " + RIGHT("0" +
(DT_STR,4,1252)DATEPART("hh",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("mi",GETDATE()),2) + ":" + RIGHT("0" + (DT_STR,4,1252)DATEPART("ss",GETDATE()),2)+ " on " + RIGHT("0" + (DT_WSTR,2)DAY(GETDATE()),2) + " " + @[User::v_MonthNumber] + ", " + (DT_WSTR,4)YEAR(GETDATE()) + "', 0"" on property "\Package\ErrorLog
Entry for Starting Transaction Import modul.Properties[SqlStatementSource]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.
Any help would be appreciated. Thanks.