-
Notifications
You must be signed in to change notification settings - Fork 7
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:
![image](https://private-user-images.githubusercontent.com/1252593/304572982-4c970d42-55db-41fe-ae12-46c090502002.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc0MDMsIm5iZiI6MTcyNTU5NzEwMywicGF0aCI6Ii8xMjUyNTkzLzMwNDU3Mjk4Mi00Yzk3MGQ0Mi01NWRiLTQxZmUtYWUxMi00NmMwOTA1MDIwMDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDZUMDQzMTQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjA0Yjg2ODkxNmQyZmZkZDVlZWM1ZGNhYzM1ZGM2ODg5OTY1ZGE4MDQxYmY3MWM4ZTNmNjE3MzAwNWY1MDVmMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.n52CJohx5IHv5a-TyiUbjVHgy5iUWC2LPAXbxnubIlM)
Rows has a count of zero.
Rows is supposed to be populated here:
![image](https://private-user-images.githubusercontent.com/1252593/304573484-83e73739-6363-43db-91dd-1049ea8e9b16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc0MDMsIm5iZiI6MTcyNTU5NzEwMywicGF0aCI6Ii8xMjUyNTkzLzMwNDU3MzQ4NC04M2U3MzczOS02MzYzLTQzZGItOTFkZC0xMDQ5ZWE4ZTliMTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDZUMDQzMTQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTMwNTRjMDFkNzk4ZmU5NGZlMTEzMmQ4NGJmYjg2OTVkNDFmMTlmNjljNjk3NWJhMmYwOGY3OWRiZDUwOGE5ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-XP8f-Xzw-93Hh6SwSZoE3QkvHWylhYnRN6VEwbZWnM)
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: