Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Reader Expression Error #901

Open
nbozhkov-ucl opened this issue Sep 26, 2024 · 0 comments
Open

SQL Reader Expression Error #901

nbozhkov-ucl opened this issue Sep 26, 2024 · 0 comments

Comments

@nbozhkov-ucl
Copy link

Trying to use countervalue in a sql reader step but getting the below error:

Engine 'Test' Symfony\Component\ExpressionLanguage\SyntaxError: Variable "countervalue" is not valid around position 1 for expression `countervalue`. in /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/Parser.php:204
    Stack trace:
    #0 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/Parser.php(149): Symfony\Component\ExpressionLanguage\Parser->parsePrimaryExpression()
    #1 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/Parser.php(110): Symfony\Component\ExpressionLanguage\Parser->getPrimary()
    #2 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/Parser.php(100): Symfony\Component\ExpressionLanguage\Parser->parseExpression()
    #3 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/ExpressionLanguage.php(105): Symfony\Component\ExpressionLanguage\Parser->parse()
    #4 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/vendor/symfony/expression-language/ExpressionLanguage.php(78): Symfony\Component\ExpressionLanguage\ExpressionLanguage->parse()
    #5 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/parser.php(290): Symfony\Component\ExpressionLanguage\ExpressionLanguage->evaluate()
    #6 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/parser.php(251): tool_dataflows\parser->internal_evaluator()
    #7 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/variables/var_value.php(156): tool_dataflows\parser->evaluate_or_fail()
    #8 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/variables/var_object_visible.php(165): tool_dataflows\local\variables\var_value->evaluate()
    #9 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/step/reader_sql.php(154): tool_dataflows\local\variables\var_object_visible->evaluate()
    #10 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/step/reader_sql.php(79): tool_dataflows\local\step\reader_sql->construct_query()
    #11 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/execution/flow_engine_step.php(62): tool_dataflows\local\step\reader_sql->get_iterator()
    #12 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/execution/engine.php(471): tool_dataflows\local\execution\flow_engine_step->go()
    #13 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/classes/local/execution/engine.php(423): tool_dataflows\local\execution\engine->execute_step()
    #14 /data/apache/htdocs/43-enov-2923/admin/tool/dataflows/run.php(147): tool_dataflows\local\execution\engine->execute()
    #15 {main} 

My sql is as follows:

SELECT * 
FROM mdl_logstore_standard_log
[[ WHERE id > ${{countervalue}} ]]
ORDER BY id ASC
LIMIT 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant