The expression contains unrecognized token "%1!s!". If "%1!s!" is a variable, it should be expressed as "@%1!s!". The specifed token is not valid. If the token is intended to be a variable name, it should be prefixed with the symbol. The specifed token is invalid. If the token was intended to be a variable name, it should be prefixed with the symbol.
Community Notes
This occurred when attempting to construct a date time expression in the expression builder.
The expression builder did not like the syntax I used for retrieving Hour from date time.
I used DatePart(HOUR,GETDATE()) and it wanted DATEPART("HOUR",GETDATE())
Pipeline HRESULT codes for SQL Server Integration Services. Each code has an individual topic page with the full description and related codes. You can also include any additional information about symptoms, cases and fixes as you find the. Please contribute your findings.