Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. Web Services transformation

Transformations

Transformations

Identifying the error type

Identifying the error type

Compilation errors can appear as a result of errors in the user code. Errors in the user code might also generate an error in the non-user code for the class.
Compilation errors can be of the following types:
User code errors
Errors can occur in the user code in different sections of the Java editor. User code errors include standard Java syntax and language errors. User code errors might also occur when
Data Integration
adds the user code to the full class code.
For example, a Java transformation has an input field with a name of int1 and an integer data type. The full code for the class declares the input field variable with the following code:
int int1;
However, if you use the same variable name in the On Input Row section, the Java compiler issues an error for a redeclaration of a variable. To fix the error, rename the variable in the On Input Row section.
Non-user code errors
User code in sections of the Java editor can cause errors in non-user code.
For example, a Java transformation has an input field, int1, and an output field, out1, with integer data types. You enter the following code in the On Input Row section to calculate interest for input field int1 and assign it to output field out1:
int interest; interest = CallInterest(int1); // calculate interest out1 = int1 + interest; }
When you compile the transformation,
Data Integration
adds the code from the On Input Row section to the full class code for the transformation. When the Java compiler compiles the Java code, the unmatched brace causes a method in the full class code to end prematurely, and the Java compiler issues an error.

0 COMMENTS

We’d like to hear from you!