Skip to main content
shukurs2366
Known Participant
Mar 26, 2023 5:16 AM UTC
Question

write to multiple data store entity issue.

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
Participating Frequently
Mar 26, 2023 7:55 AM UTC

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
Known Participant
Mar 26, 2023 11:45 AM UTC

Hi Sunil,

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

stefanhelzle0001
Brainy
Mar 26, 2023 10:23 AM UTC

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

shukurs2366
Known Participant
Mar 26, 2023 11:51 AM UTC

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
Mar 26, 2023 12:40 PM UTC

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.