mscrm 2011onpremise plug in not working crm online RRS feed

  • Question

  • Hi ,

    I have simple plug in where it has to insert a record in custom entity when a new case is created.It is working properly in 2011 & 2013 on-premise instances but same is throwing error in IFD hosted on-premise instance.

    "System.Format.Exception: Input string was not in correct format"

    string casenum = '100'

     int number = int.Parse(caseNum);

    string cNum = (number + 1).ToString();

    CaseNum.Attributes["twc_string"] = cNum;
    CaseNum.Attributes["twc_name"] = cName;
    Guid cn = myServiceProxy.Create(CaseNum);


    Thursday, November 20, 2014 3:10 PM

All replies

  • How are CaseNum and cName defined ? The issue may be with other attributes of CaseNum

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Saturday, November 22, 2014 12:37 PM
  • I dont see any issue with onpremise or IFD. 

    Should be a problem with value you are assigning. 

    Sreeni Pavalla

    Tuesday, November 25, 2014 9:14 AM