You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trace "Value of the formula cell is not computed." #442
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?
throwError('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
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.
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.
Activity
wojciechczerniak commentedon Jul 7, 2020
hyperformula/src/DependencyGraph/FormulaCellVertex.ts
Line 74 in 508e4e4
You can check
this.cellAddressin the debugger. For future a simpleJSON.stringifycould 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.
It should be a
#REF!until the dependency condition is met. Implemented in #207doczoidberg commentedon Jul 8, 2020
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?
wojciechczerniak commentedon Jul 8, 2020
Negative indices are ok. Internally, we're using relative references.
Right. Then we have to narrow it down first to a simple example how our developer can reproduce it and propose a fix.
doczoidberg commentedon Jul 8, 2020
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
getCellValueis called?I could send you a table with my data to your e-mail....
wojciechczerniak commentedon Jul 8, 2020
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
wojciechczerniak commentedon Jul 14, 2020
@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.doczoidberg commentedon Jul 21, 2020
Is think the error code is still not very informative. I can't trace where the error happens:

wojciechczerniak commentedon Jul 21, 2020
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.
doczoidberg commentedon Jul 21, 2020
there is no mistake in the formula. In Excel the cell has no error.
wojciechczerniak commentedon Jul 21, 2020
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.