Reporting services 隐藏表达式具有无效的输入字符串

Reporting services 隐藏表达式具有无效的输入字符串,reporting-services,Reporting Services,有错误:tablix Group23的隐藏表达式包含错误,输入字符串格式不正确 我没有相信这一点,我是新来的,必须修复所有问题。 下面是隐藏的表达 ="Your screening results..." +VBCRLF+VBCRLF+"• Your Body Weight was :" & (Fields!weight_loss.Value) & "lbs" + VBCRLF+ "• Your Body Mass Index (BMI) , which is based

有错误:tablix Group23的隐藏表达式包含错误,输入字符串格式不正确

我没有相信这一点,我是新来的,必须修复所有问题。
下面是隐藏的表达

="Your screening results..." +VBCRLF+VBCRLF+"•  Your Body Weight was :" & (Fields!weight_loss.Value) & "lbs" 
+ VBCRLF+ "•  Your Body Mass Index (BMI) , which is based on your height and weight, was:" & (Fields!bmi.Value)& " " & "[Healthy Range: 18.5-24.9]"
+VBCRLF+ "•  Your waist circumference was:" & (Fields!waist.Value) & "inches." & "[Healthy Range:]" &IIF(Fields!gender.Value="M",35,40)
+ VBCRLF+ "•  To be in the healthy BMI range , your recommended weightshould be between " & (Fields!goal_wt_low.Value) & "and" &(Fields!goal_wt_high.Value) & "lbs." & "You told us that.." +VBCRLF+VBCRLF+
"• With regard to weight loss," & IIF(Fields!weight_loss.Value=1,"you are satisfied with the way you are now and have no desire to change.", IIF(Fields!weight_loss.Value=2,"•  you have considered making healthier choices."
, IIF(Fields!weight_loss.Value=3,"you have seriously considered making healthier choices and are ready to make a change.",IIF(Fields!weight_loss.Value=4,"you have started making healthier choices."
,IIF(fields!weight_loss.Value=5,"you have already made changes for a healthier lifestyle and are trying to maintain them.",IIF(Fields!weight_loss.Value=99,"you are not sure how satisfied you are with your current body weight.",nothing))))))

虽然这是大量数据,但我认为问题可能相当简单。我打赌其中一种数据类型不是字符串类型,也不是数据库中的varchar/nvarchar。它基本上是这样说的:“我不能在一个字符串中添加一个数字,除非你将其转换。”


我想您只需要在字段(thing).Value表达式周围添加CSTR(),将它们转换为字符串。如果在这之后它仍然爆炸,我会一次尝试一个片段并删除第一个表达式之后的所有内容。

我猜字符串值不是隐藏表达式所需的布尔响应。Hidden有两个可接受的答案,对和错。字符串表达式永远不会计算为布尔响应。

您没有提供太多:这是否总是返回错误?如果没有,发生了什么变化?何时返回错误?特别是哪些部分需要帮助?我刚从周五开始,所以我不知道是否总是抛出错误。我不确定还要提供什么,我提供了参数,然后预览了报告,发现了错误。参数来自数据库查询创建的数据集。SSRS的哪个版本?如果是最新版本,则开始将其拆分为多个占位符。