cancel
Showing results for 
Search instead for 
Did you mean: 

Value ‘*XXXXX XXXX*’ violates facet information ‘maxlength=10’

arindam_samanta
Participant
0 Kudos
5,177

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

former_member338801
Participant
0 Kudos

Hi Arindam,

Did you get the solution? I am also facing same issue.

fardeen09
Member
0 Kudos

Hi Arindam,

I'm facing the same error value "XXXXXXXX" violates facet information 'maxlength=10' and tried with above answers from experts but still the same error. can you please tell how did you reslove that error as it's crucial for me.

Thanks

fardeen

Accepted Solutions (0)

Answers (2)

Answers (2)

grabz
Advisor
Advisor
0 Kudos

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.

arindam_samanta
Participant
0 Kudos

Hello Akos,

I have done the cache clear in both system. Still there is same result. i have done other work around as well. But no result.

Thanks,
Arindam.

grabz
Advisor
Advisor
0 Kudos

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

oliver_kaluscha3
Participant
0 Kudos

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

arindam_samanta
Participant
0 Kudos

Hello Oliver,

I have checked with your proposal. But there is no luck. My metadata does not have 30 max length.

Thanks,
Arindam.

oliver_kaluscha3
Participant
0 Kudos

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?