on 2020 Mar 31 7:50 PM
Hello Experts,
I have the below scenario.
I have created the ODATA project from BW query. In BW query, one field length is 30. In odata, I choose that field type as edm.string and max length as 30.
But when I have executed my service with $metadata, I saw the field max length as 10. When I have executed the service for fetching all data(GET_ENTITY_SET), I am getting error: "value 'xxxxxxxxxxxx' violates facet information 'maxlength=10'.
I have checked my MPC class and in attribute, the field length is 30. But in gateway client its showing max length is 10.
Due to this I am getting internal server error with "value 'xxxxxxxxxxxx' violates facet information 'maxlength=10' ".
Could you please help me to resolve this issue? Its very urgent.
Thanks,
Arindam
Try a cache clean up.
GW Client > Metadata (from the menu in the top of the screen) > Clean up cache > On both system
This is suggested to be done after runtime artifacts modifications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arindam,
You wrote "I have checked my MPC class and in attribute, the field length is 30. But in gateway client its showing max length is 10." If you have this service as a newer version of the original one, then that is one thing I can think of. So like you might be using the URL of the previous service version and not the one which has the maxLength facet as 30.
If that's still not the issue then I suggest to open an incident on OPU-GW-COR component and we'll take a look in your system directly.
Thanks,
Ákos
Hi,
could be a wrong solution but I guess you have an old class or you look at the wrong field or do something wrong here in general. What I would do:
Go to SEGW, open your project and change the length of the field to 152 - a length that is usually not part of your metadata.
Compile the project again in SEGW.
Read the metadata in GW_CLIENT
Search for that particular length in your metadata. It has to be there - so check if you have the correct field.
Hope that helps.
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, in this case - and because anything that usually works does not:
I would open a different project in SEGW - create an entity by importing the structure and check if it is building with correct values.
If not, check the properties of your structure and give more details on the data type and so on.
If it is correct in the new project - how did you create the problematic project and structure?
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.