11-08-2017 07:31 AM
I'm pulling out my hair over this, and I'm sure I'm just overlooking something simple.
I have a Unity Script (C#) where I am performing an operation in a called external SQL query (% times an amount) and am trying to write the result to a currency keyword in an MIKG.
If I attempt to set the keyword value using this "Keyword keyword = resultKeys.CreateKeyword(result);", I get an error saying " The keyword type (AP Allocation Amount) is incompatible with the desired value type: string."
Same error with this: "Keyword keyword = resultKeys.CreateKeyword(string.Format("C",result));"
And with this "Keyword keyword = resultKeys.CreateKeyword(decimal.Parse(result));" I get an error that says "Keyword AP Allocation Amount : '498.90' is not valid for AddKeyword."
Any ideas where I've gone wrong?
11-08-2017 07:46 AM
Hello Robert,
It looks like you may be adding a MIKG nested keyword as a standalone keyword, which will not exist on the Document.
Are you creating an EditableKeywordRecord in your process to add / update the MIKG keyword?
Bryan Sorensen
API Analyst| OCAPI - OCI
API Support Team
11-08-2017 07:46 AM
Hello Robert,
It looks like you may be adding a MIKG nested keyword as a standalone keyword, which will not exist on the Document.
Are you creating an EditableKeywordRecord in your process to add / update the MIKG keyword?
Bryan Sorensen
API Analyst| OCAPI - OCI
API Support Team
11-08-2017 08:01 AM
Bryan, Thanks - that is exactly what the problem was.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.