Skip to main content
10-Marble
May 16, 2017
Solved

Execution error in service script

  • May 16, 2017
  • 2 replies
  • 5288 views

Dear Team,

I am getting error when I am login by Plant Operator1 belongs to PlantOperator (non-administrator). I have given access to all service which is written in Simple1 Thing. but I am opening mashup still getting error.

Execution error in service script [Simple1 getCustomerDetail] : Wrapped com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on CreateValues in LoginUsersDatable Cause: Not authorized for ServiceInvoke on CreateValues in LoginUsersDatable

Mashup View

But when plant operator1 viewing page

Run time access to PlantOperator

.Simple Thing

    Best answer by ankigupta

    In Addition; if you are using one Service inside other service (i.e.wrapping up the Service) then RunTime Permission for Service1 should be given to the System user.

    2 replies

    5-Regular Member
    May 16, 2017

    Hi Bhuwaneshwar Gupta​,

    This is a Permission issue.

    Not authorized for ServiceInvoke on CreateValues in LoginUsersDatable Cause: Not authorized for ServiceInvoke on CreateValues in LoginUsersDatable

    This suggests that User does not have RunTime Permission to execute the CreateValues in LoginUsersDatable.

    Please provide requisite permissions to the user to resolve this error.

    bgupta-210-MarbleAuthor
    10-Marble
    May 16, 2017

    Thanks for help. All permissionhas resolved accept below one

    [context: com.thingworx.webservices.context.HttpExecutionContext@37eeb057][message: Entity Not Found : [CollapseIcon]]

    This system icon so how can I add visibility and runtime permisssion.

    5-Regular Member
    May 16, 2017

    Go to ComposerHome->visualization->Media.

    Select Advanced->Show System Objects.

    Check the checkbox in front of CollapseIcon entity and click on Permission button to change the permission.

    I hope it helps.

    ankigupta5-Regular MemberAnswer
    5-Regular Member
    May 16, 2017

    In Addition; if you are using one Service inside other service (i.e.wrapping up the Service) then RunTime Permission for Service1 should be given to the System user.