Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




CustomFieldsService.SaveCustomFieldData returning error

api

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.

dongertz
· 1
dongertz
Replies (5)
helpful
0
not helpful

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.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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.


dongertz
· 1
dongertz
helpful
0
not helpful

We can't seem to replicate the error. Is it possible to send us your database (support at countersoft dot com)?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

A backup copy of the database and additional information have been emailed to the address above with the subject line of ATTN: Saar Cohen


dongertz
· 1
dongertz
helpful
0
not helpful

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.


dongertz
· 1
dongertz