Skip to main content
November 1, 2023
Question

Write to multiple DSE returning empty CDT instead of null.

  • November 1, 2023
  • 5 replies
  • 0 views

We are using Write to Multiple Data Store Entity smart service to write multiple Process variables at once ( In that couple of Process Variables are null. ). After writing to DB in output we are trying to get data written back to PV using ac!storedValues.  

However even though PVs are null, after writing to DB it is returning empty CDT instead of null.

5 replies

stefanhelzle0001
Brainy
November 1, 2023

I am not sure I understand. In your screenshot the returned entityData seems OK.

November 2, 2023

Hi Stefan, 

Thank you for your response.

As you rightly pointed out that entityData output is correct. However, when we try to store that output back to Pv using ac!StoredValues[1] it is storing as empty CDT instead of null.

stefanhelzle0001
Brainy
November 2, 2023

Using "ac!StoredValues[1]" is not correct. Use "ac!StoredValues[1].data".

Some documentation: docs.appian.com/.../Write_to_Multiple_Data_Store_Entities_Smart_Service.html