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. Deduplicate transformation
  9. Expression transformation
  10. Filter transformation
  11. Hierarchy Builder transformation
  12. Hierarchy Parser transformation
  13. Hierarchy Processor transformation
  14. Input transformation
  15. Java transformation
  16. Java transformation API reference
  17. Joiner transformation
  18. Labeler transformation
  19. Lookup transformation
  20. Mapplet transformation
  21. Normalizer transformation
  22. Output transformation
  23. Parse transformation
  24. Python transformation
  25. Rank transformation
  26. Router transformation
  27. Rule Specification transformation
  28. Sequence Generator transformation
  29. Sorter transformation
  30. SQL transformation
  31. Structure Parser transformation
  32. Transaction Control transformation
  33. Union transformation
  34. Velocity transformation
  35. Verifier transformation
  36. 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.