BIRT报告错误列绑定

问题描述 投票:0回答:5

我有一个 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 中我什么也没得到。有什么想法吗?

java eclipse birt
5个回答
7
投票

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

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


2
投票

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

我尝试过这个并为我工作:

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

希望对您有帮助!


1
投票

转到表的属性编辑器。然后是绑定选项卡。数据列绑定下有一个绑定,该绑定仍然链接到您引用的旧列。


0
投票

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


0
投票

在 BIRT 中对报告进行更改后,您应该转到报告的 XML 文件并删除“isComplete_18”元素。这将解决问题并确保报告正常运行。enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.