Troubleshooting
Problem
How to resolve the java.nio.charset.UnmappableCharacterException error when executing a SQL INSERT with unmappable characters?
Symptom
The error java.nio.charset.UnmappableCharacterException is displayed when executing a SQL INSERT that contains unmappable characters.
Example: The below SQL INSERT execution produces this error
13:35:01:304, 12 Jul 2023 - INSERT INTO DVSQL.ORGSEQ(DEPTNUMB, DEPTNAME) values (999,'LONDON– T+1')
13:35:01:319, 12 Jul 2023 - Error executing statement.
13:35:01:320, 12 Jul 2023 - [DV][JDBC Driver][3.1.202303130554] Cannot encode LONDON– T+1, java.nio.charset.UnmappableCharacterException: Input length = 1
The data 'LONDON– T+1 contains unmappable characters – which produce the error.
Document Location
Worldwide
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS4NKG","label":"IBM Data Virtualization Manager for z\/OS"},"ARM Category":[{"code":"","label":""}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSKRKK","label":"IBM Db2 Analytics Accelerator Loader for z\/OS"},"ARM Category":[{"code":"","label":""}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS3H8V","label":"IBM Open Data Analytics for z\/OS"},"ARM Category":[{"code":"a8m0z000000cxHeAAI","label":"IBM z\/OS Mainframe Data Service for Apache Spark"}],"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"1.2.0","Line of Business":{"code":"LOB70","label":"Z TPS"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6QWT","label":"IBM QMF Analytics for Multiplatforms"},"ARM Category":[{"code":"a8m0z000000cxH0AAI","label":"QMF Data Service"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
04 August 2023
UID
ibm17018742