[Pivot Table] limitation of the pivot table size

Posted by: anh.pham on 24 April 2024, 2:10 am EST

  • Posted 24 April 2024, 2:10 am EST

    Hi support team,

    We are encountering an issue with the Pivot Table size. Specifically, when we set up an Excel file on our customer device and then upload it to our application with Spread Designer support to open, we receive an error message stating “Incorrect file format.” Performing a similar action with a smaller data set (around 50,000 rows and 2,000 columns) works successfully. We are working with a source data set of 100,000 rows and 25 columns. After setting up the pivot table, the resulting data set has 14,180 rows and approximately 2,000 columns. It is at this point that we encounter the aforementioned error message.

    Please kindly advise us on a workaround for this issue.

    Kindly refer to the attachment to verify our sample Excel file. The sample file too heavy so I can not upload it

    Best Regards,

    Marco

  • Posted 24 April 2024, 2:11 am EST

  • Posted 24 April 2024, 11:33 pm EST - Updated 24 April 2024, 11:38 pm EST

    Hi Marco,

    Based on my understanding, when attempting to import an Excel file containing approximately 100k rows and 25 columns, it fails to export and displays an “Incorrect file format” error.

    I’ve successfully replicated this issue on my end. Upon inspecting the Excel file, it seems that the file size exceeds the loading capacity of the web platform. Even attempting to load the file into Google Sheets results in an error message stating “Too large to import,” as depicted in the provided image “googleSheet.png.”

    However, it’s noteworthy that the error message should not indicate “Incorrect file format.” As I’m uncertain about this, I’ve escalated the matter to the relevant team for further investigation. The internal track ID for this issue is “SJS-23996”. I’ll keep you updated once I receive any further information.

    Regards,

    Priyam

  • Posted 25 April 2024, 1:31 pm EST

    Hi Priyam,

    Based on your information, it appears that the file size exceeds the standard. Could you ideally tell us what the ideal file size is? Namely, since we typically use the pivot table function, we should provide information to our customers to reduce their concerns when working with large files.

    Best Regards,

    Marco

  • Posted 29 April 2024, 12:03 am EST

    Hi,

    We are still investigating the issue at our end. We will let you know about our findings as soon as possible.

    Regards,

    Priyam

  • Posted 29 April 2024, 5:44 pm EST - Updated 29 April 2024, 5:52 pm EST

    Hi,

    The concerned team informed us that the Excel file initially existed as a zip file. After unzipping it, SpreadJS proceeds to read the XML file, parsing it into an object, and then loading it into SpreadJS.

    However, in the provided Excel file, upon unzipping, the sheet2.xml file is almost 700MB. When attempting to load that blob and extract text from it using the native JavaScript API, no data is returned. You can verify this by referring to the attached GIF “Demo.gif” and the demo available at this link: https://drive.google.com/file/d/1fTJFrRj7xCX53nZWnR0e2h8yKUiZnfto/view

    In SpreadJS, if text cannot be extracted from the blob, the initial assumption is typically that the file format is incorrect or that the file is damaged. Due to SpreadJS’s loading strategy, there isn’t a file size restriction, hence, no “File is too big” exception is raised.

    Ultimately, the success of file loading depends on the application’s current environment and any limitations imposed by the web technology platform being used.

    Regards,

    Priyam

  • Posted 29 April 2024, 7:55 pm EST

    Hi Priyam,

    We have already set up the other scenario on the sample file I sent above already. On the source data sheet, we’ve separated the data into two sources for the pivot table: one with 73,000 rows and 20 columns, and the other containing the remaining data. As a result, we can successfully load the sample file onto Spread Demo. Even when we increase the data size to over 100MB, it continues to function properly.

    Could you review whether this issue comes from a limitation of the pivot table function?

    Best Regards,

    Marco

  • Posted 30 April 2024, 10:03 pm EST

    Hi,

    SpreadJS does not have size limitations and the same with the pivot table. However, as mentioned previously, this can vary depending on your web platform and application environment. If the native JavaScript API can extract text from the file, it will load and function smoothly without any issues. Please refer to the GIF and sample above for a clearer understanding.

    Regards,

    Priyam

  • Posted 1 May 2024, 8:34 pm EST

    Hi Priyam,

    We agree with what you mentioned. However, we can’t explain this to our customer as we’ve discussed. Could you provide us with some advice about the standard file size or update the warning message through the SpreadJS designer to a clear message?

    Best Regards,

    Marco

  • Posted 2 May 2024, 11:32 pm EST

    Hi,

    I’ve inquired with the developer regarding your concerns. I’ll keep you informed once I receive any updates. The internal tracking ID is “SJS-23996”.

    Regards,

    Priyam

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels