Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • k 256 posts 654 karma points
    Oct 31, 2019 @ 07:24
    k
    0

    Checkbox list - Umbraco 8

    Hello,

    I have upgraded umbraco 7 to 8.

    However checkboxlist code is no more working .

    I am getting the below error:

    Exception Details: System.ArgumentException: Could not cast or convert from System.Int64 to System.String[].

    Can someone please help.

    Thanks,

    Kusum

  • Steve Megson 151 posts 1024 karma points MVP c-trib
    Oct 31, 2019 @ 12:08
    Steve Megson
    0

    Do you have a stack trace showing where this exception is being thrown?

  • k 256 posts 654 karma points
    Nov 04, 2019 @ 10:30
    k
    0

    In the logs I go the below :

    Umbraco.Core.PropertyEditors.ValueConverters.CheckboxListValueConverter.ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, Object source, Boolean 
    
  • Steve Megson 151 posts 1024 karma points MVP c-trib
    Nov 04, 2019 @ 12:06
    Steve Megson
    0

    The stored values for the CheckBoxList should have been updated from numeric IDs to strings during the migration from v7 to v8, but that doesn't seem to have happened here. Is the CheckBoxList property inside a nested content property?

  • k 256 posts 654 karma points
    Nov 04, 2019 @ 12:56
    k
    0

    No it's not in nested content.

    can you please advise how I can solve this issue.

    Thanks,

    kusum

  • Weber 12 posts 36 karma points
    Nov 04, 2019 @ 15:57
    Weber
    0

    Is that your only error?

    Try to check upgrade guide.

    https://our.umbraco.com/documentation/getting-started/setup/upgrading/migrating-to-v8

    It´s not straight forward, to upgrade from v7 to v8, as there are major changes in Core internals.

Please Sign in or register to post replies

Write your reply to:

Draft