Skip to main content
1-Visitor
Feb 8, 2018 2:22 AM UTC
Question

Not authorized for PropertyWrite

I used kafka, but when I assign a value to a property, there's an error:com.thingworx.common.exceptions.InvalidRequestException: Not authorized for PropertyWrite on strvalue in TestReceiver

 

@ThingworxPropertyDefinitions(properties = {

@ThingworxPropertyDefinition(name = "strvalue", description = "", category = "", baseType = "STRING", aspects = {"isReadOnly:false","isPersistent:true"}) })

 

setPropertyValue("strvalue", new StringPrimitive(results));

 

Please help me solve this problem.

 

 

 

 

7 replies

22-Sapphire I
Feb 8, 2018 6:50 AM UTC

For the User that is doing the Write, did you verify permissions for Runtime Property Write in the platform?

Translate
振霍_011-VisitorAuthor
1-Visitor
Feb 8, 2018 10:09 AM UTC

My user is Administrator

Translate
22-Sapphire I
Feb 8, 2018 10:19 AM UTC

When you look in the Application Log in Thingworx, does it show that same error and Administrator as the user?

Translate