security-services-tools icon indicating copy to clipboard operation
security-services-tools copied to clipboard

Update Error: No character set conversions possible for one or more characters

Open abap-weasel opened this issue 2 years ago • 1 comments

Hi guys,

when trying to pull security-services-reports I get errors like this for each report:

No character set conversions possible for one or more characters. Section from the source buffer from the first character that could not be converted: "A7 27 2E 20 20 20 20 67 73 5F 72 65 73 75 6C 74 No character set conversions possible for one or more characters. Section from the source buffer from the first character that could not be converted: "A7 27 2E 20 20 20 20 67 73 5F 72 65 73 75 6C 74 (.'. gs_result)". Import of object ZRFC_STATRECS_SUMMARY failed

We are using latest abapgit 1.125.0 (updated earlier today). Issue is exlusive to this repository as all other repos we imported to our system could be updated without errors.

Currently we have version from 04/2023 active in system, so back then it worked.

abap-weasel avatar Oct 26 '23 13:10 abap-weasel

I had updated ZRFC_STATRECS_SUMMARY two month ago.

It could be related to some Unicode conversion issue, but in fact, I've no idea yet how this could happen...

What happens if you copy and paste the code manually from https://raw.githubusercontent.com/SAP-samples/security-services-tools/main/ABAP/basis/zrfc_statrecs_summary.prog.abap ?

FrankBuchholz avatar Nov 15 '23 15:11 FrankBuchholz

Same for me:

Character set conversion not possible for one or more characters. Source data from the first non-convertible byte: "C4 27 2E 0A 20 20 20 20 20 20 20 20 20 20 52 45 (.'.. RE)".
Import of object ZCHECK_NOTE_2934135 failed
Character set conversion not possible for one or more characters. Source data from the first non-convertible byte: "A7 27 2E 20 20 20 20 67 73 5F 72 65 73 75 6C 74 (.'. gs_result)".
Import of object ZRFC_STATRECS_SUMMARY failed

daberlin avatar May 28 '24 18:05 daberlin

For ZRFC_STATRECS_SUMMARY, the problem seems to be this line: WHEN '§'. gs_result-tasktype = 'lrrfc'. "(417) paragraph sign

It triggers an exception in ABAPGIT, line 28.076, METHOD CONVERT

daberlin avatar May 29 '24 17:05 daberlin

Usually, I use either copy & paste in Notepad++ or download within SE38 because Ì have to deal with various source systems and rarely ABAPGIT is available in the system. Notepad++ shows that the files are either to be encoded in UTF-8 or in ANSI - and the xml files are encoded in UTF-8 BOM.

That means that ABAPGIT cannot handle the paragraph character or some German Umlaute like "Ä" in a string constant - at least not in the ANSI encoding which is used in some files.

As a first try I change the file encoding to UTF-8 and repair the wrong characters.

FrankBuchholz avatar May 30 '24 17:05 FrankBuchholz

Please try again

FrankBuchholz avatar May 30 '24 18:05 FrankBuchholz

Works now, thank you!

daberlin avatar May 30 '24 19:05 daberlin