• Font Size
  • S
  • M
  • L

Search via FAQ No.


  • No : 30779
  • Open Date : 2019/09/05 12:09
  • Print
NEW

[DataSpider Servista] About the cause of the [IllegalPaddingException padding characters could not be inserted] error when outputting a fixed length file.

When I write a fixed-length file, the following error occurs.
Please explain the cause of the following error.
 
Error:
[IllegalPaddingException padding characters could not be inserted]
 
Settings:
 "あいうえお" is input for the item specified with Field Length [5] (Shift-JIS); a full-width character is specified for the padding character.
 
Category : 

Answer

■Specification
The “Write Fixed-Length File” process is a process when it writes a multi-byte string that exceeds a length specified in the structure definition, it writes only a string that can fit the "length" and fills the rest with padding characters.
 
From the specification limits of the Help "Write Fixed-Length File” process
-----
When it writes, if the data does not fit exactly into a specified length field due to a result of the string operation (left / right alignment, padding, etc.), the space that did not fit correctly is filled with "padding characters".
-----
 
■About Cause
When filling with "padding characters", the following error will occur if the part that did not fit in the "length" is 1 and a full-width character is specified for "padding characters".
 
IllegalPaddingException padding characters could not be inserted
 
For more information about the above error, please refer to the "General Exception" of the help "Write Fixed-Length File" process.