5 Replies Latest reply on May 16, 2017 4:52 AM by bgupta RSS
    bgupta Apprentice

    Execution error in service script

    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

      • Re: Execution error in service script
        Ankit Gupta Ninja

        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.

          • Re: Execution error in service script
            bgupta Apprentice

            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.

              • Re: Execution error in service script
                Ankit Gupta Ninja

                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.

                  • Re: Execution error in service script
                    bgupta Apprentice

                    Thanks Ankit.

                     

                    That error has gone. But now when user  trying to open simple1 thing. It showing error in appocation log.

                     

                    [context: com.thingworx.webservices.context.HttpExecutionContext@87f19d][message: Unable to Invoke Service GetLogLevel on ConfigurationLog : null]

                     

                    [context: com.thingworx.webservices.context.HttpExecutionContext@2286483c][message: Entity Not Found : [GenericThing]]

                     

                    [context: com.thingworx.webservices.context.HttpExecutionContext@38bbabcd][message: Entity Not Found : [ConfiguredThing]]

                     

                     

              • Re: Execution error in service script
                Ankit Gupta Ninja

                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.