2

我有一个 BIRT 报告,在我更改它所连接的数据库之前它运行良好。我从数据库的表中删除了一个列,并在我的数据查询中删除了对它的任何调用,现在每当我尝试生成 BIRT 报告时都会收到此错误。

The following items have errors: 

Data (id = 291): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:291) 

Data (id = 298): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:298) 

Data (id = 292): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:292) 

Data (id = 299): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:299) 

Data (id = 293): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:293) 

Data (id = 300): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:300) 

Data (id = 585): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:585) 

Table (id = 443): 
+ Column binding "name_19" has referred to a data set column "name_19" which does not exist. (Element ID:443) 

Data (id = 583): 
+ Column binding "isComplete_18" has referred to a data set column "isComplete_18" which does not exist. (Element ID:583) 

谷歌搜索没有出现很多其他未解决的问题,我不知道如何继续。我已经在 phpmyadmin 中测试了查询,它返回了预期的结果,但在 BIRT 中我什么也没得到。有任何想法吗?

4

4 回答 4

7

您很可能在报告 XML 文件中有已删除列的引用,转到 XML 视图并搜索:“isComplete_18”、“name_19”,然后删除包含该字符串的每个 xml 元素。

手动删除对两列的所有引用后,再次重新运行报告...

于 2013-08-15T18:18:40.423 回答
2

我曾经遇到过这个问题。似乎(不确切知道)当您更改数据库或更改 DataSet 上的某些内容时,报告正在绑定不再存在的列(对我来说是第二种情况)。

我试过这个并为我工作:

  • 选择您的餐桌;
  • 转到“属性编辑器”;
  • 转到“绑定”选项卡;
  • 点击“清除”;
  • 选择您之前使用的相同数据集;
  • 尝试生成报告。

希望它可以帮助你!

于 2013-08-15T18:14:22.703 回答
1

转到表的属性编辑器。然后是绑定标签。在数据列绑定下有一个绑定,它仍然链接到您引用的旧列。

于 2013-10-18T15:29:34.337 回答
0

我所做的是,在 XML 源中搜索元素并将其删除。

于 2020-10-01T11:51:00.217 回答