CounterSoft User Forums

Welcome to CounterSoft User Forums Sign in | Join | Help
Home Forums

CustomFieldsService.SaveCustomFieldData returning error

Last post 01-14-2010, 6:25 PM by dongertz. 5 replies.
Sort Posts:
  •  01-12-2010, 5:03 PM

    CustomFieldsService.SaveCustomFieldData returning error

    Version: v3.6.0 Build 2543.

    I am saving custom field data against an existing issue, but the SaveCustomFieldData method is returning:

    "'100' is an unexpected token. The expected token is '\"' or '''. Line 20, position 65."

    Any help is appreciated.

    Cheers.

  •  01-12-2010, 5:07 PM

    Re: CustomFieldsService.SaveCustomFieldData returning error

    Please make sure that you have enabled "All Verbs" in the ASHX file handler in IIS for the Gemini site.
    Also, please post sample code.

  •  01-12-2010, 5:33 PM

    Re: CustomFieldsService.SaveCustomFieldData returning error

    All Verbs is set.

    Code example:

    CustomFieldDataEN cfData = new CustomFieldDataEN();

    cfData.IssueID = createdIssue.IssueID;

    cfData.ProjectID = createdIssue.ProjectID;

    cfData.CustomFieldID = customFieldId;

    cfData.CustomFieldData = cfTextBox.Text;

    cfData.UserID = this._user.UserID;

    this._serviceManager.CustomFieldsService.SaveCustomFieldData(cfData);

    NOTE: If cdData.UserID is set with my UserID (I'm part of Gemini Administrators) the custom field is set.  If cfData.UserID is set with the UserID, who has Project Administration and Issue Administration permissions, the previously stated error is returned.

  •  01-12-2010, 7:50 PM

    Re: CustomFieldsService.SaveCustomFieldData returning error

    We can't seem to replicate the error. Is it possible to send us your database (support at countersoft dot com)?
  •  01-12-2010, 10:06 PM

    Re: CustomFieldsService.SaveCustomFieldData returning error

    A backup copy of the database and additional information have been emailed to the address above with the subject line of ATTN: Saar Cohen
  •  01-14-2010, 6:25 PM

    Re: CustomFieldsService.SaveCustomFieldData returning error

    First, Saar, etal, thank you for the excellent off-forum support to diagnosis and solve this issue.

    Resolution:  The error was generated because of a lack of permissions on the file system.  Per Saar's, suggest, "Try to give the user full access in Windows file/folder permissions on the “api” folder located under the Gemini web application."

    I granted the user Full Control and the exception was no longer being thrown.

    Saar and the rest of the CounterSoft Tech Team, thanks again for the great support !!!

    Cheers.

View as RSS news feed in XML