02-10-2017 09:48 AM
My Context Service code relies on a set of fields and fieldsets on the Context Service objects. I used to be able to create these without issue, however, now Context Service complains. Any idea if anything has changed on the Context Service side related to this issue? Any idea what I need to do to create new fields and fieldsets now?
User is not authorized to create / update public fields / fieldsets, trackingId: cda174db-f26c-4dfd-9654-ae12c19cf8aa
2017-02-10 12:39:35,365 [localhost-startStop-1] INFO com.cisco.as.cs.Connection Connection.java:createField:290 - Creating Field: "MAR_OWNER_ID"
12:39:35.423 [Thread-24] INFO com.cisco.thunderhead.RESTClient - ERROR HTTP STATUS = 401
12:39:35.424 [Thread-24] INFO com.cisco.thunderhead.RESTClient - Error on CREATE: https://dictionary.produs1.ciscoccservice.com/dictionary/field/v1/
12:39:35.424 [Thread-24] INFO com.cisco.thunderhead.RESTClient - Error: retry #0: RestApiException=RestApiError with errorType: unAuthorized.publicField, errorData: identifier, errorMessage: User is not authorized to create / update public fields / fieldsets, trackingId: cda174db-f26c-4dfd-9654-ae12c19cf8aa
12:39:35.424 [Thread-24] ERROR c.c.t.c.ContextServiceClientImpl - RestApiError with errorType: unAuthorized.publicField, errorData: identifier, errorMessage: User is not authorized to create / update public fields / fieldsets, trackingId: cda174db-f26c-4dfd-9654-ae12c19cf8aa
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.cisco.thunderhead.errors.ApiExceptionFactory.getApiException(ApiExceptionFactory.java:78)
at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:113)
at com.cisco.thunderhead.RESTClient.createExceptionFromErrorString(RESTClient.java:877)
at com.cisco.thunderhead.RESTClient.throwApiException(RESTClient.java:894)
at com.cisco.thunderhead.RESTClient.create(RESTClient.java:497)
at com.cisco.thunderhead.RESTClient.create(RESTClient.java:452)
at com.cisco.thunderhead.RESTClient.create(RESTClient.java:556)
at com.cisco.thunderhead.client.BaseEncryptionService.encryptAndCreate(BaseEncryptionService.java:138)
at com.cisco.thunderhead.client.ContextServiceClientImpl$1.execute(ContextServiceClientImpl.java:363)
at com.cisco.thunderhead.client.ContextServiceClientImpl$1.execute(ContextServiceClientImpl.java:359)
at com.cisco.thunderhead.client.ContextServiceClientImpl$ContextCallable.call(ContextServiceClientImpl.java:1100)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: {"errorType":"unAuthorized.publicField","errorData":"identifier","errorMessage":"User is not authorized to create / update public fields / fieldsets, trackingId: cda174db-f26c-4dfd-9654-ae12c19cf8aa"}
... 15 more
Solved! Go to Solution.
02-28-2017 06:41 PM
Hi Joseph,
Context Service no longer allows users to create public fields and fieldset. Please make them private and try again.
Thank you
Ankit Parikh
02-28-2017 06:41 PM
Hi Joseph,
Context Service no longer allows users to create public fields and fieldset. Please make them private and try again.
Thank you
Ankit Parikh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide