Skip to content

Error while parsing Dynamics365 metadata #140

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

Closed
ultrabug opened this issue Dec 2, 2020 · 3 comments
Closed

Error while parsing Dynamics365 metadata #140

ultrabug opened this issue Dec 2, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@ultrabug
Copy link

ultrabug commented Dec 2, 2020

I get this error while trying to access a Dynamics365 service URL:

PyODataParserError("Type None is not valid as underlying type for EnumType - must be one of {'Edm.Byte': [0, 255], 'Edm.Int16': [-32768, 32767], 'Edm.Int32': [-2147483648, 2147483647], 'Edm.Int64': [-9223372036854775808, 9223372036854775807], 'Edm.SByte': [-128, 127]}")

How can we investigate the culprit of this please?

Cheers and thanks for your work

@phanak-sap phanak-sap self-assigned this Dec 11, 2020
@phanak-sap phanak-sap added the question Further information is requested label Dec 11, 2020
@phanak-sap
Copy link
Contributor

phanak-sap commented Dec 11, 2020

Hi @ultrabug.

  1. Are you sure you are trying to connect to Odata V2 service (and not V3/V4, which protocol versions are not supported yet?)
  2. With such generic issue, there is nothing much to investigate on your side really. Could you update the issue / post as Gist the XML for $metadata from the service? Since you can initialize the pyodata with $metadata as local file, this would at least create something reproducible locally - see https://pyodata.readthedocs.io/en/latest/usage/initialization.html#get-the-service-with-local-metadata. Since the metadata parameter takes stream of bytes, you could even have as a Gist simple python script that reproduces the bug.

Nothing to really do on our side for the moment to be frank, need more info.

Cheers to you as well, thanks for using this package.

@ultrabug
Copy link
Author

Thanks for your reply @phanak-sap indeed I'm trying to reach a V4 Odata service :(

I didn't realize that this lib didn't support it (yet?!!) Thanks

@phanak-sap
Copy link
Contributor

Not yet, but hopefully in the future yes.. we got stuck a bit. Watch #39 for closure.

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

No branches or pull requests

2 participants