Micro Focus QTP (UFT) Forums
QTP not exporting to excel - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP not exporting to excel (/Thread-QTP-not-exporting-to-excel)



QTP not exporting to excel - vwk2 - 01-03-2013

I am having issues with certain results being exported to excel. It works on some of the URLs that I am grabbing data from but all of a sudden it is giving me a general export error on a specific set of urls. I cant figure out what in the results it doesnt like. I am trying to resolve this so I can scan all of the urls.

I am just getting a general export error. I can provide more info as requested. I did not write the QTP script. I am new to QTP. I run the script weekly and I have not had an issue with this until now. I know that it is specific to specific urls it is trying to export the data from. I have trouble shooted it to that. Any help would be appreciated. I will need specific instructions though or code examples.

ERROR I am receiving:
A general error occurred while exporting to file D:\CDC-Automation\Data\Iteration2Analysis\Batch1\Target\Target_Scan_URL.xls.

Function file: D:\CDC-Automation\CDC_QTP_MAIN\Function Libraries\CDC_functions.qfl
Line (694): " datatable.export Target_file".


RE: QTP not exporting to excel - Ankesh - 01-04-2013

Chk the below link.

Hope you find it useful

http://automatingsap.blogspot.in/2012/07/general-error-when-exportimport.html

Regards,
Ankesh


RE: QTP not exporting to excel - vwk2 - 01-04-2013

Thank you I have tried this but I get an error when I perform these steps. It says that the file is not a data table compatible file. Also I have to stop running the script to perform these steps which doesnt work as well cause cant stop and start the run of the script it has hundreds of urls it needs to process.


RE: QTP not exporting to excel - Ankesh - 01-07-2013

Please QTP will work fine when you are using excel in 97-2003 format, i.e., .XLS format.