주 콘텐츠로 건너뛰기

"Please reference a specific column" error - 지식 베이스 / Using Deskpro / Reports - Deskpro Support

"Please reference a specific column" error

저자 리스트

Question:

I'm getting an error message like this: "Failed to compile DPQL. tickets.messages cannot be referenced directly. Please reference a specific column." What does this mean?

 

Answer:

This happens when your query is referring to a table, instead of a particular column of values within that table.

In this case, you are doing a "FROM tickets" query. You can see in the tickets table that you can reference tickets.messages; this is not a reference to a column in the tickets table (like, say, tickets.id), but a cross-reference to a table that stores columns of data about ticket messages. This is indicated in the documentation by the table name ‘Ticket Message’ being shown in italics.

For the report to work, you need to look at the Messages table and pick a column to reference: for example, tickets.messages.date_created

도움이 되었습니다 도움이 되지 않음