Symptom
- When attempting to generate execution plan in HAC, the error message "Error generating Query Plan" is shown.
- In DT, relevant requests to /hac/azurehac/executionplan/query for execution plan fail with HTTP 400.
- Below exception can be observed in sampled DT trace.
| Exception: com.microsoft.sqlserver.jdbc.SQLServerException Message: Incorrect syntax near '?'. Stacktrace: com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:276) com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1787) com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:975) com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:869) com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7745) com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:4700) com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:321) com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:253) com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:790) de.hybris.platform.jdbcwrapper.interceptor.StatementWithJDBCInterceptor.lambda$executeQuery$2(StatementWithJDBCInterceptor.java:45) de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandler.passThrough(SQLRecoverableExceptionHandler.java:93) de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandler.get(SQLRecoverableExceptionHandler.java:51) de.hybris.platform.jdbcwrapper.interceptor.JDBCInterceptor.get(JDBCInterceptor.java:61) de.hybris.platform.jdbcwrapper.interceptor.StatementWithJDBCInterceptor.executeQuery(StatementWithJDBCInterceptor.java:45) de.hybris.platform.jdbcwrapper.StatementImpl.executeQuery(StatementImpl.java:155) de.hybris.platform.azure.hac.facade.impl.DefaultAzureQueryFacade.executeWithExplainPlan(DefaultAzureQueryFacade.java:205) de.hybris.platform.azure.hac.services.impl.DefaultAzureSqlSearchService.executeWithExplainPlan(DefaultAzureSqlSearchService.java:196) de.hybris.platform.hac.controller.QueryPlanTabController.explainQuery(QueryPlanTabController.java:49) jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java) jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ... |
Read more...
Product
SAP Commerce Cloud 2211
Keywords
hac, execution plan, error generating query plan, sqlserverexception, incorrect syntax near '?', azure sql, microsoft sql server, plain sql, flexible search, hybris, commerce cloud, sql console, explain plan, http 400, query plan failure , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview