Drupal 7 export Excel cannot open the file - drupal-7

Using Drupal 7, I do an excel export of a webform report.
When I try to open the excel file, I get an error: "Excel cannot open the file myfile.xlsx because the file format of file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file."
I open the file in an editor and I see an xml file which specifies the row data fine.
Can someone explain to me why Drupal is building excel files as xml as you can see in:
modules/contrib/webform/includes/exporters/webform_exporter_excel_xlsx.inc
and what's causing it not to load in excel?

MS Office docs are just zip files containing xml docs and resources like images. You can change the extension of an xlsx (or docx) file and open it to see what is inside. I'm assuming a simple xml file could define a simple Excel file.
I've had issues in the past opening xlsx files from Drupal modules (and other systems) and I found that I could almost always open them in LibreOffice. I don't know enough about the format of an Excel file to determine the reason, it just became my workaround.

This issue is related to overwriting existing temp zip files. You can update the webform module to the latest version or fix this single bug.

Related

Get file content acitivity on a Logic App in Azure

I'm running issues with an Azure's Logic App activity. I've got a 'for each' activity which is checking and copying some files (Excel) from a source into a blob storage. Now in the path (URL) where the files (Excel) are locate there is also a Folder which is giving me trouble in the 'for each' activity. Before the folder was created, the files were alone inside that path. Once this new folder was created, the for each activity is erroring out reading the 'folder' and succeding in the Excel files. I now it can be solved just moving the folder out or the files into a different path but the source is managed by a different team. I'd like to know if there is some kind of filter that allow me just to pick the files (Excel)and skipping the existing Folder in the source path. Thanks in advance
Instead of Get file content you can use Get file content using path.
Get file content gives the file content using the file identifier. The contents can be copied somewhere else or be used as an attachment.
But in Get file content using path gives the file contents using the path.
So, It’s Get file content using path we get the file only it cannot identify the folder.
Refer here for sharepoint actions

How to use PDF file as data source in SSIS

I'm wondering it's possible using PDF how data source in SSIS. I've tried converting to another flat file, but I haven't been able to. Please is someone have a script to convert PDF or something that might help me.
First, You have to specify if the .pdf file contains text, table or just images. If the pdf file can be parsed (not images / scanned documents), then you can use a Script Component as Source and write a C# code to convert the pdf content into rows.
You can refer to the following links for more details about parsing pdf and using Script Component as Source:
Parsing pdf using C#
Convert a pdf file to text in C#
Converting PDF to Text in C#
Read and Extract PDF Text in C# and VB.NET
Using Script Component as Source
Creating a Source with the Script Component
SSIS – USING A SCRIPT COMPONENT AS A SOURCE

How can be copied the data showed in an frx report on screen?

I have a exe based on VFP9, and I'm looking to copy the data that appears on the screen when a large report (200+ pages) is generated, since the option to save it has been disabled. (when you hit ctrl+F3).
I would like to export the data to a txt, csv or xls file.
I don't have the project files, only the exe and some dlls.
There is a folder called reports that I'm guessing should contain the report files, but it is empty.
Can this be done from within the VFP9 IDE?

Zip file format for uploading pre-annotated data in Watson Knowledge Studio

I am trying to figure out how to include a pre-annotated model in Watson Knowledge Studio. I have followed the information found here but it doesn't seem to generalize. As a start I have tried exporting an annotated set from Knowledge Studio to re-upload (using the "Import corpus documents and include ground truth" option). If I re-upload the exported zip as-is this works but if I unzip the folder and then recompress it I get the following error:
A file could not be imported: The imported ZIP file is not in the expected format. Check whether the file was exported from another project. The type system from the same project must be imported first. (You selected 'Import corpus documents and include ground truth').
I have tried using the zip command in Linux (both with and without the -k flag which tries to force to MS-DOS style naming) and also used the compress utility in Windows but I get the same error each time. This is without making any changes to the contents of the folder.
Any help would be greatly appreciated!
Would you please check internal structure of your created ZIP with comparing the original ZIP ? Sometime I got the similar trouble report and found that their created ZIP contains root folder in ZIP structure. WKS expects the same folder structure in the ZIP file.

Is it possible to get data out of .lightspeedBackup file without using Lightspeed POS?

I have a Lightspeed POS 3.x Backup file. I would like to abstract the database out of it. Is this at all possible? The file extension of the backup file is .lightspeedBackup.
I believe you should be able to just rename it as a .zip and extract it. Once you do you should have several directories and files with all your data in it.
Not sure why they try to hide that or are using their own extension.

Resources