Method Community

 

RecurrenceInfo field too short

Last post 10-26-2012 1:08 PM by Matt. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-22-2012 5:12 PM

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    RecurrenceInfo field too short

    I am trying to use the API to make a copy of an activity. For some recurring records, the RecurrenceInfo field contains more than 8000 characters and I get an error when trying to insert the copy that there are too many characters to be inserted.

    How can the field have more characters than are allowed in the first place?

    What can I do to be able to insert the new record? Is there information that can be taken out of the RecurrenceInfo with ruining the integrity?


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 10-23-2012 11:19 AM In reply to

    Re: RecurrenceInfo field too short

    Answer


    Hi Matt,

    I would not recommend editing it.

    Did you use MethodAPISelect_XML or MethodAPISelect_XMLV2 to retrieve the RecurrenceInfo field your are trying to copy? RecurrenceInfo is xml that is saved in a varchar field. But the api is also returning xml. So in order to transmit the data in the field, it gets encoded.

    Before sending the data back as part of the insert first try to decode it with a simple .NET HttpUtility.HtmlDecode

    Dave

  • 10-23-2012 6:40 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: RecurrenceInfo field too short

    Hi Dave,

    I am using the MethodAPSelectXML_V2.

    The HttpUtility.HtmlDecode does shorten it up a bit, but not enough in all cases. One example I just tried was 9099 characters before decoding and 8739 after decoding. I customized the FieldService Work Order screen to display the RecurrenceInfo field and it is over 8000 characters there as well.

    If you would like the Account and Activity RecordID info, I can send that to you in an email.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 10-26-2012 11:34 AM In reply to

    Re: RecurrenceInfo field too short


    Hi Matt,

     

    This issue should now be fixed

     

    Dave

  • 10-26-2012 1:08 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: RecurrenceInfo field too short

    It worked correctly when I just tried it. Thanks Dave.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


Page 1 of 1 (5 items)