Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tmap error

Hello, I get an error message in tmap since I added the calculation of a quantity by a price.

Could you help me to decode this error message please, tanks

 

Démarrage du job test3 a 15:26 06/07/2017.
[statistics] connecting to socket on port 4023
[statistics] connected
Exception in component tMap_1 (test3)
java.lang.NullPointerException
at coupe2.test3_0_1.test3.tOracleInput_1Process(test3.java:1742)
at coupe2.test3_0_1.test3.runJobInTOS(test3.java:2341)
at coupe2.test3_0_1.test3.main(test3.java:2190)
[statistics] disconnected
Job test3 terminé à 15:26 06/07/2017. [Code sortie=1]

 

0683p000009LvJu.png

Labels (3)
1 Solution

Accepted Solutions
cterenzi
Specialist
Specialist

In some row, either T10_PV or T10_QTE is null. You'll either need to replace the null values in the SQL of your tOracleInput component or handle them in the tMap expression.
Ex: row1.T10_PV == null || row1.T10_QTE == null ? 0 : row1.T10_PV * row1.T10_QTE

View solution in original post

1 Reply
cterenzi
Specialist
Specialist

In some row, either T10_PV or T10_QTE is null. You'll either need to replace the null values in the SQL of your tOracleInput component or handle them in the tMap expression.
Ex: row1.T10_PV == null || row1.T10_QTE == null ? 0 : row1.T10_PV * row1.T10_QTE