Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  Error with the Python script

    Posted 08/13/20 04:31 PM
      |   view attached
    ​Hi There,

    Can someone throw somelight on the below error while trying to execute the python script inturn calling the pre defined python scripts. I tried using the Post Man and it seems a different error using it.

    Thanks in advance

    Error while Executing the python script:

    Traceback (most recent call last):

      File "1_Opex_PL_Reports_Test -kc.py", line 74, in <module> df_GL = tm1.cubes.cells.execute_mdx_dataframe(mdxStatements.mdx_GL)

      File "C:\Automation\env\lib\site-packages\TM1py\Services\CellService.py", line 368, in execute_mdx_dataframecellset_id = self.create_cellset(mdx)

      File "C:\Automation\env\lib\site-packages\TM1py\Services\CellService.py", line 830, in create_cellset

        response = self._rest.POST(request=request, data=json.dumps(data, ensure_ascii=False))

      File "C:\Automation\env\lib\site-packages\TM1py\Services\RESTService.py", line40, in wrapperself.verify_response(response=response)

      File "C:\Automation\env\lib\site-packages\TM1py\Services\RESTService.py", line314, in verify_response

        raise TM1pyException(response.text, status_code=response.status_code, reason=response.reason)

    TM1py.Exceptions.Exceptions.TM1pyException: Text:  Status Code: 401 Reason: Unauthorized



    Error from Postman attached.




    ------------------------------
    Karunakar Viswaraju
    ------------------------------

    #PlanningAnalyticswithWatson


  • 2.  RE: Error with the Python script

    Posted 08/13/20 04:35 PM
    Edited by System Admin 01/20/23 04:34 PM

    401 Reason: Unauthorized. You don't have permissions to do what you are requesting. Possibly a TM1 security problem, but most likely a credentials issue.

     

     

     

    Ryan Clapp | Sr. Manger Dev Engineering