1

Could someone please help me with this? I am trying to get rid of the ATTRIBUTE "effective_date" or set it to null date by using the below 2 queries and am getting different errors.

=====================================
UPDATE 
    cd_quality (ALL) OBJECTS
TRUNCATE
    effective_date
WHERE
    FOLDER ('C:/temp/path')
AND
    object_name = 'ab'

...

[DM_QUERY_E_UP_SINGLE]error:  "The attribute effective_date is a single-valued attribute."

===============================
UPDATE
    cd_quality(all) objects 
SET
    effective_date = ''
WHERE
    FOLDER ('C:/temp/path')
AND 
    object_name = 'ab'

...
[DM_QUERY_E_UP_CHAR]error:  "UPDATE:  You have attempted to set a non-string attribute (effective_date) with a string value ()."

I also tried the second query with: Set effective_date = null But it still didn’t work. Is there a different null value for dates?

Anzil khaN
  • 1,974
  • 1
  • 19
  • 30
HelenL
  • 11
  • 1
  • 2

2 Answers2

2

SET als_cancellation_date = DATE('NULLDATE')

vishwen
  • 21
  • 2
0

DQL ref. guide mentions “NULLDATE”. Maybe this is an option. BTW: Your folder predicate looks odd - I do not believe your repository root folder is named “C:” ;-)

If DQL fails, there is always API scripting. Here the truncate API call will work for sure.