and more in a single search tool across platforms. Read the announcement here. |
11/20/2023 01:30 AM - edited 11/20/2023 01:31 AM
Hi,
Getting following error on updating NULL value using Enhanced query execution job.
Query:
11/21/2023 10:11 PM
Hi @Knight
I tried with a sample query to test, and it was able to update null with similar syntax.
SELECT NULL AS ENDPOINTS__CUSTOMPROPERTY2 , ep.endpointkey as ENDPOINTS__PRIMARYKEY FROM ENDPOINTS ep ep.endpointkey=1;
Can you please check and confirm if it is giving expected result in Preview before running the job.
Regards,
Dhruv Sharma
11/28/2023 03:11 AM
Hi @Knight ,
REFERENCED_ACCOUNTKEY is big integer it wont be allow null update, try without refrencekey it will work.
11/30/2023 07:46 AM
Hi Raghu and Dhruv,
Is it possible to force null into REFERENCED_ACCOUNTKEY if needed? Schema in Data Analyzer says that it accepts a null value. Thanks!
11/30/2023 10:10 PM
SELECT Concat(NAME, '-Removed', ' ', 'on-', CURRENT_TIMESTAMP) AS accounts__name
,
'SUSPENDED FROM IMPORT SERVICE' AS
accounts__status,
'NULL' AS
accounts__REFERENCED_ACCOUNTKEY,
accountkey AS
accounts__primarykey
FROM accounts
WHERE endpointkey = 3
AND status IN ( 'Manually Suspended', '2', 'Inactive' )
AND NAME NOT LIKE '%Removed on%';