Lỗi tờ khaiinput value not long enough for date format năm 2024

Error during conversion of query result to XML: java.sql.SQLException: ORA-01840: input value not long enough for date format

Please help me out.

  • SAP Managed Tags:
  • SAP Process Integration

hI Could you send your query.?

According Oracle FAQ you

Either add more input or shorten the date picture format, then retry the operation.

Hi Narendra,

\>


Error during conversion of query result to XML: java.sql.SQLException: ORA-01840: input value not long enough for date format 

According to Oracle,

Cause: The data to be converted to date format was incomplete; the date format picture was longer than the input data.

Action: Either add more input or shorten the date picture format, then retry the operation.

So, check the date format / value and your problem will be resolved.

regards,

Neetesh

Hi,

Check the date format value in the database. The date format picture is longer than the input data. Could you show the data send to?

runs with no errors, we are restricting to columns with a col10 width of 6. So if we go looking for columns of less or mare than 6 chars:

select count[*] FROM SPOT_LOAD1 WHERE load_sequence = 17395 AND fmt6_file_number = 1 and col10 is not null and length[col10] 6

returns zero rows. using DDMMYY for the date format makes no difference.

The following three queries return the same number of rows:

select count[*] FROM SPOT_LOAD1 WHERE load_sequence = 17395 AND fmt6_file_number = 1 and col10 is not null and length[col10] = 6 and to_date[col10,'DDMMRR'] between '01-dec-06' and '28-feb-07'

select count[*] FROM SPOT_LOAD1 WHERE load_sequence = 17395 AND fmt6_file_number = 1 and col10 is not null and length[col10] = 6 --and to_date[col10,'DDMMRR'] between '01-dec-06' and '28-feb-07'

select count[*] FROM SPOT_LOAD1 WHERE load_sequence = 17395 AND fmt6_file_number = 1 and col10 is not null --and length[col10] = 6 --and to_date[col10,'DDMMRR'] between '01-dec-06' and '28-feb-07'

If I select distinct col10 I get 90 entries, and inspecting them manually shows no noticeable issues. All have width of 6.

I am confused how to resolve the problem. I need the original query to run without error, on this data which seems to be correct.

Mình có một vấn đề xin mọi người giúp đỡ. Đó là khi mình nộp tờ khai trên website //nhantokhai.gdt.gov.vn/ihtkk_nnt/nopTKhaiXML.do thì mình bị " lỗi hệ thống java.sql.SQLDataException: ORA-01840: input value not long enough for date format"

Mình cũng đã tra Google nhưng chỉ có 2 bài viết trả lời về vấn đề này nhưng mình làm theo mà vẫn không giải quyết được.

Rất mong các bạn giúp đỡ!

hocviecchuaxong

Cao cấp
  • 2

    Xin chào mọi người!

Mình có một vấn đề xin mọi người giúp đỡ. Đó là khi mình nộp tờ khai trên website //nhantokhai.gdt.gov.vn/ihtkk_nnt/nopTKhaiXML.do thì mình bị " lỗi hệ thống java.sql.SQLDataException: ORA-01840: input value not long enough for date format"

Mình cũng đã tra Google nhưng chỉ có 2 bài viết trả lời về vấn đề này nhưng mình làm theo mà vẫn không giải quyết được.

Rất mong các bạn giúp đỡ!

Bạn nộp tờ khai gì vậy?

phucct

Sơ cấp
  • 3

Mình nộp bổ sung tờ khai xin đăng ký cấp mã số thuế cho người phụ thuộc. Mình gặp lỗi trên khi làm trên cả 2 hệ điều hành win 7 64 bit và win 8.1 64 bit, đã cài luôn java 7u49[down từ web của Tổng cục thuế], java 8 u161 và u162. Mỗi hệ điều hành đều đã thử cài lần lượt các bản java này nhưng sau khi chọn được tệp tờ khai và ký được chữ ký điện tử xong rồi tới bấm nút nộp tờ khai thì lại bị lỗi như vậy. Mình dùng trình duyệt web IE 11 bản 32 bit

hocviecchuaxong

Cao cấp
  • 4

    Mình nộp bổ sung tờ khai xin đăng ký cấp mã số thuế cho người phụ thuộc. Mình gặp lỗi trên khi làm trên cả 2 hệ điều hành win 7 64 bit và win 8.1 64 bit, đã cài luôn java 7u49[down từ web của Tổng cục thuế], java 8 u161 và u162. Mỗi hệ điều hành đều đã thử cài lần lượt các bản java này nhưng sau khi chọn được tệp tờ khai và ký được chữ ký điện tử xong rồi tới bấm nút nộp tờ khai thì lại bị lỗi như vậy. Mình dùng trình duyệt web IE 11 bản 32 bit

Bạn làm trên HTKK 3.8.x hay làm trên TNCN3.3.1?

phucct

Sơ cấp
  • 5

Cám ơn bạn đã hỗ trợ mình. Do mình thay nản quá nên đã tìm cách cài lại máy và may mắn là bây giờ thì đã gửi được rồi. Chắc là do máy nó bị thiếu file gì đó nên mới bị vậy quá.

Chủ Đề