Skip to main content
Solved

Insert/update data in a CSV file using database actions

  • July 18, 2024
  • 2 replies
  • 249 views

Forum|alt.badge.img+1

I am trying to insert/delete data in/from a CSV file using database actions but getting syntactical error,

INSERT INTO [WBSApprover_20210712.csv] ([PUPlant], [User], [PasswordAdapter]) VALUES ('$recSNOWData[0]$', '$recSNOWData[2]$', 'PasswordAdapter1');

Any help would be greatly appreciated.

Best answer by mamoonmanzoor

Unfortunately, CSV files are static and cannot be updated.
You must either write the data to Excel and update it there

This topic has been closed for replies.

2 replies

jon.stueveapeople
Automation Anywhere Team
Forum|alt.badge.img+7

How are you setting up the Database connection string?


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • Answer
  • July 22, 2024

Unfortunately, CSV files are static and cannot be updated.
You must either write the data to Excel and update it there