Skip to main content
shukurs2366
March 26, 2023
Question

write to multiple data store entity issue.

  • March 26, 2023
  • 7 replies
  • 0 views

Hi techie, 


I'm getting following error while using writeToMultipleDataStoreEntities. 

Input Parameters -

Entity - cons!DSE,
Data - Record Type
_______________________________________________________________

While I'm using writeToDataStoreEntity with same parameters  then I'm not getting any error.

7 replies

sunilc6392
March 26, 2023

As far as I understand you should change the type of the process variable as you are storing data through an entity and using record type as the process variable type.
If you don't want to change your variable type then you can use write records smart service for storing data in the database.

shukurs2366
March 26, 2023

Hi Sunil,

Then it should give same error while using writeToDataStoreEnity also right, why it is not giving then?

stefanhelzle0001
Brainy
March 26, 2023

The public Appian documentation explains clearly how to configure that node. docs.appian.com/.../Write_to_Multiple_Data_Store_Entities_Smart_Service.html

shukurs2366
March 26, 2023

Hi Stefan,


Thank for your comment in this discussion,
I know how to configure the things in this smart service, It is giving me an error while using WriteToMultipleDataStoreEntity not to the WriteToDataStoreEntity. Even though I casted from dictionary  to CDT, It is giving same error castInvalid to the WriteToMultipleDataStoreEntity not to the WriteToDataStoreEntity.

If there is any data type mismatch then why it is not giving an error while using WriteToDataStoreEntity.?

stefanhelzle0001
Brainy
March 26, 2023

Because you try to feed a list of dictionaries into the a!entityData function. That does not work. You need to treat each item individually.