SSRS Error : Warning 1 [rsLookupOfInvalidExpressionDataType] The Value expression for the textrun ‘Textbox20.Paragraphs[0].TextRuns[0]’ uses a lookup function + Solution
Problem : have a Report with 2 data sources & 2 Data sets
1. SQL (ProjectWebApp)
2. SharePoint List
The lookup() function works as expected, however I want the multilookup() to work. I have many rows in the SharePoint List I want to return.
When I use the multilookup() SSRS returns the following and I am not sure how to resolve this:
Warning 1 [rsLookupOfInvalidExpressionDataType] The Value expression for the textrun ‘Textbox20.Paragraphs[0].TextRuns[0]’ uses a lookup function with an expression that returned a data type that is not valid for the lookup function. The data type must be an RDL Variant type.
Here is the Lookup() expression that works
=lookup(Fields!ECP.Value, Fields!Project_Code.Value, Fields!Daily_Update.Value, "List")
Solution :
If you want to returns all matching values for the Daily_Update field from List dataset, I suggest you should use LookupSet Function. The following expression is for your reference:
=Join(LookupSet(Fields!ECP.Value, Fields!Project_Code.Value, Fields!Daily_Update.Value,"List"), ", ")
For more details about LookupSet Function, please refer to the article below:
http://msdn.microsoft.com/en-IN/library/ee240819.aspx
1. SQL (ProjectWebApp)
2. SharePoint List
The lookup() function works as expected, however I want the multilookup() to work. I have many rows in the SharePoint List I want to return.
When I use the multilookup() SSRS returns the following and I am not sure how to resolve this:
Warning 1 [rsLookupOfInvalidExpressionDataType] The Value expression for the textrun ‘Textbox20.Paragraphs[0].TextRuns[0]’ uses a lookup function with an expression that returned a data type that is not valid for the lookup function. The data type must be an RDL Variant type.
Here is the Lookup() expression that works
=lookup(Fields!ECP.Value, Fields!Project_Code.Value, Fields!Daily_Update.Value, "List")
Solution :
If you want to returns all matching values for the Daily_Update field from List dataset, I suggest you should use LookupSet Function. The following expression is for your reference:
=Join(LookupSet(Fields!ECP.Value, Fields!Project_Code.Value, Fields!Daily_Update.Value,"List"), ", ")
For more details about LookupSet Function, please refer to the article below:
http://msdn.microsoft.com/en-IN/library/ee240819.aspx
Comments
Post a Comment