Skip to Content

Selecting and aggregating from SAP HANA Model

I have a query on a sap hana model that uses the same column (payment_amount) in the where clause and in the select as well and for some reason sap hana is not able to find the column when we do that. It returns with an error -

Error: (dberror) [2048]: column store error: search table error: [34051] Error during plan execution; Failed to find column 'PAYMENT_AMOUNT'

the query im trying to execute is -

select TOP 100 GSL_CATEGORY_1, GSL_CATEGORY_2, '2|$ for GSL payments given' as Metric_dsc ,SUM(PAYMENT_AMOUNT) as FY_amount FROM "" (placeholder."$IP_AS_AT_DATE$"=>'2019-01-17') WHERE PAYMENT_AMOUNT > 0 and PAYMENT_SENT_DATETIME between '2018-07-01' and '2019-06-30' GROUP BY GSL_CATEGORY_1, GSL_CATEGORY_2

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 07 at 05:35 AM

    Please check upper/lower case characters in your column name in the db table. If you have a mix of upper/lower case characters or just lower case characters you have to enclose your column name in double quotes, so that the name is not automatically adjusted to all upper case.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.