Skip to main content
Solved

There is a syntactical error in the SQL statement using Data Table : Write to file Action item

  • December 22, 2022
  • 4 replies
  • 491 views

Forum|alt.badge.img+4

Scenario:

Open URL - https://www.nseindia.com/market-data/live-equity-market?

Extract the whole table data into Excel (xslx)

Method 1: 

Under Data table package, I have used Write to file “Throws an exception”

Error:

Note:

The Extracted Table header value contains two rows of values. how to change the Data table column header value.

Best answer by Raul Jaimes

Hi @Prabu.B1 

I get the same error if i use ANSI. Try to change the codification to UTF-8. Using  a csv file is a suggestion.

 

This may be due to the following reason: An unknown error occurred while trying to write data table to "C:\RPA\Test\ExtractedData.csv". If the problem persists, please contact your System Administrator.

 

 

 

 

HTH

 

Regards

 

View original
Did this topic help answer your question?

4 replies

Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • December 22, 2022

Hi @Prabu.B1 ,

 

Could you please confirm your Control Room build?  Else, you can check the Encoding option which have selected. It could be because of that.


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • Answer
  • December 22, 2022

Hi @Prabu.B1 

I get the same error if i use ANSI. Try to change the codification to UTF-8. Using  a csv file is a suggestion.

 

This may be due to the following reason: An unknown error occurred while trying to write data table to "C:\RPA\Test\ExtractedData.csv". If the problem persists, please contact your System Administrator.

 

 

 

 

HTH

 

Regards

 


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • 9 replies
  • December 23, 2022

Hi @Raul Jaimes 

 

Thank you. Really appreciated.😀

 

Moreover UTF-8 - Second line of header value doesn’t appear. 

I have tried UTF-8 with BOM works fine exactly what extracted from webpage.

 

 

Regards,

Prabu Baskaran.


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • December 23, 2022
Prabu.B1 wrote:

Hi @Raul Jaimes 

 

Thank you. Really appreciated.😀

 

Moreover UTF-8 - Second line of header value doesn’t appear. 

I have tried UTF-8 with BOM works fine exactly what extracted from webpage.

 

 

Regards,

Prabu Baskaran.

Great!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings