Can some one help here on how to implement Update query with Jinja SQL for Process Mining Transformation, I am trying to implement Transformation to refelect data in PM app, however getting following error:
(‘42000’, "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword ‘UPDATE’. (156) (SQLMoreResults); [42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword ‘case’. (
Each .sql file should result in one final select query that defines the new table in the data model. An insert/update statement will be derived from that automatically.
Your final table should be named the same as the .sql file, Case_Transformation_table in your case.
So for example you could add something like this to your select statement:
case
when Cases_raw."Case_value" > 500 then "Big Invoice"
else NULL
end as "Big invoice"
Hello @Martijn_Wijffelaars very happy to share that, able to execute query successfully and also able to reflect same in SQL server, please refer attached screen shot:
Btw, you should be able to refer to the fields without the pm_utils functions. They only needed when you need to convert from one data type into another.
Also, @Martijn_Wijffelaars now that I am able execute transformations successfully, but still after importing transformations to PM app, can not see newly added table with PM app, where and how will it be reflected.
Also, have tried to upload the data once again after import transformation
Thank you so much, @Martijn_Wijffelaars for the updates, so If I am not wrong your saying with current version of PM automation cloud, it does not reflect the new added transformation (tables/feilds) in PM app post import, is this correct understanding?
and this will be reflected with upcoming version of PM app?
Also, for now if I want to see the reflection of Transformation with my PM App, what kind of transformation I can perform right now, if you could please give me any sample of transformation?
ok, it means, if we added new transformations (new tables/ fields) through .sql file with dbt it won’t reflect now, as I have added new table with new sql file in dbt project and it properly reflected the same in my SQL Database schema however same is not reflecting with PM App.
And for now the only way is to use the Custom fields and manually map them for new transformations right?