Skip to content

Trace "Value of the formula cell is not computed." #442

Closed

Description

@doczoidberg

On some sheets I get "cell is not computed". How can I trace which cell it is?

VM1564:37 ERROR Error: Uncaught (in promise): Error: Value of the formula cell is not computed.
Error: Value of the formula cell is not computed.
    at FormulaCellVertex.getCellValue (FormulaCellVertex.js:109)
..

How are cross sheet references handled if the sheet was not added?

Activity

  1. added
    Question
    on Jul 7, 2020
  2. wojciechczerniak commented on Jul 7, 2020

    @wojciechczerniak
    Contributor

    On some sheets I get "cell is not computed". How can I trace which cell it is?

    throw Error('Value of the formula cell is not computed.')

    You can check this.cellAddress in the debugger. For future a simple JSON.stringify could help here: throw Error('Value of the formula cell is not computed. ${JSON.stringify(this.cellAddress)}

    Can you attach a sample data set where you see this error? This shouldn't happen and reproduction would help us debug.

    How are cross sheet references handled if the sheet was not added?

    It should be a #REF! until the dependency condition is met. Implemented in #207

  3. doczoidberg commented on Jul 8, 2020

    @doczoidberg
    Author

    hmm the cell formula looks right: =IF(B1086-1,J1367-B1096*B1089,J1367+B1096*B1089)

    B1086 is 2 so that the first argument results to 1 which should result to true. Maybe the parser does not do that correct?

    I can't post the whole table here because it's quite huge and also commercial data in it.

    There are negative indices for the first argument?

    image

  4. wojciechczerniak commented on Jul 8, 2020

    @wojciechczerniak
    Contributor

    Negative indices are ok. Internally, we're using relative references.

    I can't post the whole table here because it's quite huge and also commercial data in it.

    Right. Then we have to narrow it down first to a simple example how our developer can reproduce it and propose a fix.

  5. doczoidberg commented on Jul 8, 2020

    @doczoidberg
    Author

    Negative indices are ok. Internally, we're using relative references.

    My cell with the formula is 9,1368. So B1086 would have the indices 1,1086 which seem to be right.

    How can I further debug? cachedCellValue is null. What are the steps before getCellValue is called?

    I could send you a table with my data to your e-mail....

  6. wojciechczerniak commented on Jul 8, 2020

    @wojciechczerniak
    Contributor

    Do you have any CRUD operations applied or it's static data you're just trying to load as is?

    Sure, you can send it to me at wojciech.czerniak@handsontable.com, that would help a lot to debug the case

  7. added
    Bug
    and removed
    Question
    on Jul 13, 2020
  8. wojciechczerniak commented on Jul 14, 2020

    @wojciechczerniak
    Contributor

    @doczoidberg Thanks to your help we've found and fixed a serious bug deep inside the engine #446. Thanks!

    The fix was published yesterday as v0.1.2.

  9. added this to the July 2020 milestone on Jul 14, 2020
  10. linked a pull request that will close this issuePu/issue 442 #446on Jul 14, 2020
  11. doczoidberg commented on Jul 21, 2020

    @doczoidberg
    Author

    Is think the error code is still not very informative. I can't trace where the error happens:
    image

    image

  12. wojciechczerniak commented on Jul 21, 2020

    @wojciechczerniak
    Contributor

    This is a very different error type. The one that was thrown is developer error. The one you have here is a calculation result no other than spreadsheet apps provide. It's a value (#VALUE! here) wrapped with an object that has few more details: translation or an optional message.

    Then the UI provides some dependents tracking #441 to help end-user find a mistake in their formulas.

  13. doczoidberg commented on Jul 21, 2020

    @doczoidberg
    Author

    there is no mistake in the formula. In Excel the cell has no error.

  14. wojciechczerniak commented on Jul 21, 2020

    @wojciechczerniak
    Contributor

    Hard to tell. Not all ODFF evaluation rules are 1:1 with Excel. Additionally, they have Host-Defined Behaviors, other ambiguities are marked in the body of the spec as "Evaluator shall support" or "Evaluator may support" or "Evaluator will choose which one to support and break all other use cases" 🙈

    We've tried to support as many of those variations as possible. Some HF config rules may affect those. Sometimes additional work is needed to fill the gaps. ie. you need to add more date formats that are supported by a spreadsheet app you want to be compatible with.

    Let's split those case by case with a simple reproduction example and then we can decide how to support them best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugVerified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions