Should CODEARTICLE (from Oracle DB) be a id (likely integer primary key) in Postgres destination table?
If CODEARTICLE is not unique in source db, it will fail.
If the type is not numeric datatype but varchar, with sometimes numbers stored in it, it will give errors whenever it's a string.
If you wish to log when it's not a number and store when it's a number, then you need a test indeed, done with an extra attribute or an extra query.
I would go with the extra parameter:
SELECT CODEARTICLE,STRUCTURE, DES,TYPEMARK,TYP,IMPLOC,MARQUE,GAMME,TAR, is_numeric(CODEARTICLE) as is_number
FROM IPTECH.TMP_ARTICLE ;
Then use is_number in the jexl test you did in 1st email: if ="is_number==true"
Please note Oracle normally does not have a built-in function to detect if a string is numeric or not.
If you cannot do it in Oracle, you need a janino block checking if the value from query is a number, and then set the result of the test as is_number.
Hope this clarifies. Sometime Scriptella is limited by the abilities of the SQL engines called in connections, but overall with jexl+janino it's a very good product.
Christian