-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentOutOfRangeException in TableValueConverter #28
Comments
This is a sample of the v7 data:
There is no "rows" element, just a "cells" element. When I create a new node and manually add table data, I get this:
So it seems that there is a bit of a different format. |
Hi @hfloyd Limbo.Umbraco.Tables has only been available for Umbraco 10, and it's predecessor, Limbo.Umbraco.StructuredData was only available for Umbraco 9. We have never supported Umbraco 7, so I'm unsure where you have the U7 data from. The package is based on some internal code we had been using for Umbraco 8, which I then turned into a package for Umbraco 9. I didn't write the original code, and I'm not aware that my colleagues based it on some other package, but given the JSON format looks alike, maybe they did 🤷♂️ So to sum things up, your issue is not a bug in this package, but due to a different JSON format from another package. One could argue that maybe the |
Hi @abjerner 👋🏻 The v7 site I'm upgrading was using Imulus.TableEditor, and when I was doing the update, and I installed your package and just set those properties to use a Limbo.Tables-backed datatype, the tables appeared beautifully in the back-office, which made me think perhaps it was a direct update of that codebase. Thanks for sharing the history. 🙂 I have a fork and plan to work on a PR for you, I just ran out of time last night and wanted to document my findings. I think it will be easy to support both formats for reading legacy data. Look for something later today. |
I am using Limbo Models Builder for model generation. In the generated model file, the property value converter is called:
=> this.Value<global::Limbo.Umbraco.Tables.Models.TableModel>("ReturnsCalendarYear");
but it is failing:
Limbo.Umbraco.Tables Version 1.1.3
Stepping through the code, it appears the issue is here:
Rows has a count of zero.
Rows is supposed to be populated here:
but doesn't find anything.
This site is an upgrade form Umbraco 7, and the prior Table editor property type. The back-office display of the data works fine, so I assumed that the data model hadn't changed... but I will need to look closer, I guess.
The text was updated successfully, but these errors were encountered: