Skip to main content
April 18, 2023
Question

Write to Datastore entity is not writing value to table

  • April 18, 2023
  • 6 replies
  • 0 views

Hi 

I am trying to write data to a table using write to datastore entity . In production environment, some of the instance is not working as expected. Nodes are getting executed successfully but not writing in db. If i restart the particular node it works.

Anyone faced this issue? What could be the issue?

Please help.

Thanks in advance 

6 replies

stefanhelzle0001
Brainy
April 18, 2023

That node only returns if the database returns a success. Can you make sure that the instances which did work had the primary key set to null?

mallepup3914
April 19, 2023

Adding to Stefan,

There are possibilities:

Database connection issues: One possibility is that there is an issue with the database connection. The node may not be able to establish a connection to the database or the connection may have been lost or timed out. The node may be taking too long to execute or write data.

 

christineh465186
April 25, 2023

If the node completed successfully the first time,
1. check the stdout log for info on the action

2. make sure you are capturing outputs on the node to see if success without error and value was returned (like the new PK if increment)

3. check the pv history, did the pv have a value before that write to ds was executed

I would start there...

April 12, 2024

Not sure if you're still having this issue, but I had a very similar issue which turned out to be a race condition with another process model that was writing to the same table.

karumurua531442
April 12, 2024

Hi [mention:adb9dead450b44deb5ee397d6d6ae95d:e9ed411860ed4f2ba0265705b8793d05]  could raise  this issue as new thread and post the context regarding your issues / errors you are having that would be more helpful to solve the issue. 

prakhars0731
April 13, 2024

You have to check database configuration like fileds are properly mapped or not