Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrfc.Connection failed with "Conversion error between two character sets" #141

Closed
georgik opened this issue Nov 1, 2019 · 5 comments
Closed

Comments

@georgik
Copy link

georgik commented Nov 1, 2019

pyRFC version 1.9.99, Python 3.7, OS Windows 10.

Invoke of Connection(**params) to some server works (e.g. miniSAP and test env) and Connection to other servers (e.g. some production) fails with following error:

Traceback (most recent call last):
 ...
  File "src/pyrfc/_pyrfc.pyx", line 181, in pyrfc._pyrfc.Connection.__init__
  File "src/pyrfc/_pyrfc.pyx", line 239, in pyrfc._pyrfc.Connection._open
  File "src/pyrfc/_pyrfc.pyx", line 269, in pyrfc._pyrfc.Connection._error
pyrfc._exception.ABAPRuntimeError: RFC_ABAP_RUNTIME_FAILURE (rc=3): key=RFC_CONVERSION_FIELD, message=Conversion error between two character sets. [MSG: class=, type
=, number=, v1-4:=;;;]

I would appreciate any hint what could be wrong.

@bsrdjan
Copy link
Member

bsrdjan commented Nov 4, 2019

The error usually indicates a gap in unicode/non-unicode configuration, on client and server side.

You could compare settings on working ABAP server with settings on non-working ABAP server, like

Extras -> System information -> Target system -> "Character set"
Target

and ABAP Connection Settings, in SM59 transaction in ABAP system:
SM59

Above figures show one standard working configuration. Perhaps changed in affected system for some reason?

@georgik
Copy link
Author

georgik commented Nov 12, 2019

Thank you very much for the advice. It helped a lot.
Which doc/*.rst file is the best to include this information?
I can prepare PR for that.

@bsrdjan
Copy link
Member

bsrdjan commented Mar 6, 2020

Sorry for the longer waiting, a section could be added here: http://sap.github.io/PyRFC/install.html#problems

Could be helpful for more miniSAP users.

@shrirang3010
Copy link

How can we use pyrfc.connection() for python3?

@bsrdjan
Copy link
Member

bsrdjan commented Jul 28, 2020

How can we use pyrfc.connection() for python3?

https://github.com/SAP/PyRFC#getting-started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants