locked
Picklist out of range (4.0) RRS feed

  • Question

  •  

    I'm trying to create a record using a DynamicEntity. On that record is a picklist wiht a few options.

     

    This:

     

    Code Snippet
    PicklistProperty deductiontype = new PicklistProperty();
          deductiontype.Name = "nlx_deductiontype";
          deductiontype.Value = new Picklist(7165);

     

     

     

    Gives the following error:

     


      0x8004431a
      A validation error occurred.  The value of 'nlx_deductiontype' on record of type 'nlx_housededuction' is outside the valid range.
      Platform

     

    Another place in my code i have almost the same:

    Code Snippet
    PicklistProperty deductiontype = new PicklistProperty();
          deductiontype.Name = "nlx_deductiontype";
          deductiontype.Value = new Picklist(7181);

     

     

    and that works fine.

     

    Any suggestions?

     

     

    /C

     

     

    www.dollerupit.dk

     

    Thursday, August 7, 2008 2:40 PM

Answers

  • Deleted and careated the picklist again and it worked.

     

    /C

    Friday, August 8, 2008 7:02 AM