Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Does Save Data Table To Excel File Step creates excel or I need to do it before executing process script?

Answered
1
1

In Robotiq documentation writes  : If file at the defined File path folder does not exist, file will be created containing the data from the datatable variable at the defined sheet name.

Today, my process failed because the datatable could not be saved into the dtPath variable that I create in the script step (this process had previously run successfully in production this way). Compared to the last deployment, I made minor changes to the filter settings on the website, but these changes do not affect either dtPath or the dt itself. The entire point of the process is to scrape data into a datatable and save it in an Excel file that is sent to the client. When I identified the error, I tried to create a process that would save an empty dt to a path that was not defined, resulting in the following error message (link below). When I manually created the file and saved the datatable into it, it executed successfully. I am wondering if it is necessary to manually create Excel files or this step automatically creates them? I should note that I currently have multiple processes in production where the described situation occurs and i dont have problems with that. Did something change in way which this step works?

https://drive.google.com/file/d/1TX2zb_-MmlkzsVw33hrjTHdq7nbSODGl/view?usp=sharing

  • You must to post comments
Great Answer
0
0

The issue arises when trying to save an empty datatable. If the variable does not have any values, it cannot be saved. However, the process will succeed if the datatable variable is not empty. Furthermore, this step will work correctly if the datatable is not empty, even if you don’t have Excel (it will create the Excel file) and/or if you don’t have that specific sheet name (it will create the sheet and save the datatable within it).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.