Skip to content

Boolean is not supported #106

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
PMX opened this issue Jun 8, 2020 · 2 comments
Closed

Boolean is not supported #106

PMX opened this issue Jun 8, 2020 · 2 comments
Labels
V4 OData V4

Comments

@PMX
Copy link

PMX commented Jun 8, 2020

CalculatePoEScore c4codata.SellingPointValuation TypeInfo(namespace='c4codata', name='SellingPointValuation', is_collection=False)
CalculateScore c4codata.StoreValuation TypeInfo(namespace='c4codata', name='StoreValuation', is_collection=False)
CheckAppointmentByGroupwareID Collection(c4codata.Boolean) TypeInfo(namespace='c4codata', name='Boolean', is_collection=True)
Traceback (most recent call last):
File "C:/dev/PyOdataTest/pyodata_test.py", line 19, in
my_service = pyodata.Client(SERVICE_URL, session)
File "C:\dev\python-pyodata\pyodata\client.py", line 68, in new
schema = pyodata.v2.model.MetadataBuilder(metadata, config=config).build()
File "C:\dev\python-pyodata\pyodata\v2\model.py", line 2499, in build
schema = Schema.from_etree(edm_schemas, self._config)
File "C:\dev\python-pyodata\pyodata\v2\model.py", line 1139, in from_etree
efn.return_type = schema.get_type(efn.return_type_info)
File "C:\dev\python-pyodata\pyodata\v2\model.py", line 878, in get_type
raise PyODataModelError(
pyodata.exceptions.PyODataModelError: Neither primitive types nor types parsed from service metadata contain requested type Boolean

@filak-sap
Copy link
Contributor

filak-sap commented Jun 10, 2020

It seems to me that Edm.Boolean was introduced in OData V4 which we do not support yet. Please, attached $metadata to make sure the service is V2.

@phanak-sap phanak-sap added the V4 OData V4 label Sep 1, 2020
@phanak-sap
Copy link
Contributor

Since Edm.Boolean is V4 only and no update of the issue for a long time, I would consider this as duplicate for enhancement #39

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

No branches or pull requests

3 participants