Copied to clipboard

Flag this post as spam?

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


  • jeff mayer 122 posts 200 karma points
    Mar 18, 2015 @ 14:37
    jeff mayer
    0

    MNTP, Property type converter and Archetype

    I posted this in the archetype forum but I think the issue may be more so related to the property type converter.

    I have this perplexing issue that throws an intermittent error that happens to go away when restarting the site. Eventually the issue resurfaces after time. The issue even occurs on multiple servers. Running 7.22, but had the same issue with 7.16

    The error reported doesn't detail the issue other then not returning the value from the Archetype MNTP field. As I said the odd thing about this is that it will work for a period of time, then its stop working out of the blue.

    Here's my snippet of code.

    .......

    
    @foreach (var fieldset in childPage.GetPropertyValue("committeeselect"))
    
    {
    
    
    
    if (fieldset.HasProperty("member") && fieldset.HasValue("member"))
    
        {
    
             string members = fieldset.GetValue("member");
    
            string[] split = members.Split(',');
    
             foreach (string item in split)
    
            {
    
    @item  ( Where it fails. If it fails it just returns System.Int32  othewise it returns the correct value) 
    
    

    ....

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 26, 2015 @ 18:56
    Jeavon Leopold
    0

    Hi Jeff,

    Sorry I missed this post, did you solve it?

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft