on 2019 Apr 11 6:13 AM
Hi,
I got an error during consuming data at gateway client "Error log "Property 'begda' has invalid value '00000000'"".
I am exposing data from CDS view to odata service using "import->reference->data definition".
begda (last changed date) - data type is DATE and it has null value
If there is any specific annotation to make the date field null-able or correct the format, please let me know
Awaiting for you reply,
Sudarshan David
Request clarification before answering.
Hi,
I've got the solution to avoid the error,
If data in table contain null value or ' ' we have to change the value to '00000000' in consumption CDS as below
case
when aedtm is null then '00000000'
when aedtm = '' then '00000000' else aedtm
end as aedtm,
why I am using reference to CDS because if any changes occurs in CDS or addition of field, we can do just add the field and regenerated the ODATA which makes less amount of work.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It Work for me, thank you!
In my case "CodOper" is type Guid, then initial value valid for this type is "00000000000000000000000000000000"
Then solution was:
key case
when CodOper is null then '00000000000000000000000000000000'
when CodOper = '' then '00000000000000000000000000000000'
else CodOper
end as CodOper,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shilpa,
Yes we can make Nullable manually, I have created Odata using CDS reference though I am can't change the properties directly,
But I can add properties in CDS which will affect after regenerating,
For example: in CDS
Below code is working fine,
@Semantics.businessDate.from: true
begda,<br>
and below code in not working,
@Semantics.businessDate.from: true
key begda,
Hi sudarshan
When i add the below code in my CDS the date property is not changing to Nullable
can you please suggest any other way to achieve this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.