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

ID Injection using ObjectId type #41

Open
mathbastian opened this issue Jan 13, 2020 · 0 comments
Open

ID Injection using ObjectId type #41

mathbastian opened this issue Jan 13, 2020 · 0 comments

Comments

@mathbastian
Copy link

Hello @htammen,

We created an OData app based on your tutorials and we used the IdInjection set to true in the model json. It works just fine.

However, we are trying to consume this data on SAP Analytics Cloud and we are getting the error:
"Attribute should specify a namespace qualified name or an alias qualified name" when we try to create a model from the service.

The reason for this error is that the id type is 'ObjectId'. When we disable IdInjection and set the id the field to be a string, its type turns Edm.String and we do not get the error anymore. However, then we are not able fetch any entries from the entity as we get the error "TypeError: Cannot read property 'property' of undefined"

Do you know if it is possible to change the default type of the property when IdInjection is activated?

Thanks

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

1 participant