cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
916
Views
0
Helpful
1
Replies

Not authorized to create new field / fieldset

joshorva
Cisco Employee
Cisco Employee

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

Stack trace:

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

1 Accepted Solution

Accepted Solutions

ankparik
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

ankparik
Cisco Employee
Cisco Employee

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