SSIS : Variable Expression Error : Attempt to parse the expression "@[User::DestFilePath]+"\"" failed. The token """ at line number "1", character number "23" was not recognized.
when we try to write the expression on a variable and we made some mistake in the expression then we will get this parsing issue .
Error :
===================================
Attempt to parse the expression "@[User::DestFilePath]+"\"" failed. The token """ at line number "1", character number "23" was not recognized. The expression cannot be parsed because it contains invalid elements at the location specified.
(Microsoft.DataTransformationServices.Controls)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Controls.ExpressionEvaluator.Validate(IDTSVariableDispenser100 vars)
at Microsoft.DataTransformationServices.Controls.ExpressionBuilder.EvaluateExpression()
When we will get this Error : When we are trying to Write an Expression to add "\" for example to create a complete file path ie FolderPath+"\"+FileName
C:\Users\Public\Documents\SurendraData\DRA +"\"+ Filename.csv
Solution : @[User::DestFilePath]+"\\"+"metrics.csv"
Put Token with back slash ie put double slash to achive that string
Error :
===================================
Attempt to parse the expression "@[User::DestFilePath]+"\"" failed. The token """ at line number "1", character number "23" was not recognized. The expression cannot be parsed because it contains invalid elements at the location specified.
(Microsoft.DataTransformationServices.Controls)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Controls.ExpressionEvaluator.Validate(IDTSVariableDispenser100 vars)
at Microsoft.DataTransformationServices.Controls.ExpressionBuilder.EvaluateExpression()
When we will get this Error : When we are trying to Write an Expression to add "\" for example to create a complete file path ie FolderPath+"\"+FileName
C:\Users\Public\Documents\SurendraData\DRA +"\"+ Filename.csv
Solution : @[User::DestFilePath]+"\\"+"metrics.csv"
Put Token with back slash ie put double slash to achive that string
Wow, that is a very good article about SSIS Upsert and its related aspects.
ReplyDeleteSSIS Upsert