CA Service Management

Expand all | Collapse all

Command line interface Text API. Problem setting category

Lucas Mesquita

Lucas MesquitaSep 04, 2018 10:37 AM

  • 1.  Command line interface Text API. Problem setting category

    Posted Sep 03, 2018 03:31 PM

    I'm currently trying to open a request through commmand line interface but an error is exibited:

     

    AHD58007 -

     

    Basically it means that he could not find the category, even though i double checked it;

     

    any clues about this?



  • 2.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 03, 2018 10:09 PM

    Hi Lucas,

     

    What version of Service Desk are you using?

    What is the command you are running and what does your input file look like?

    What is written to the stdlog when you run the pdm_text_cmd command?

     

    Regards,

    Gordon.



  • 3.  Re: Command line interface Text API. Problem setting category

    Posted Sep 04, 2018 08:34 AM

    Version 17.0

    the command: pdm_text_cmd -t Request -u userTest -f c:\dados\tst.txt

     

    the log: 

    09/04 09:30:32.38 FORSRQ326      spelsrvr             3836 ERROR        text_api.spl  fetch_dob_list sym (Smartphone.Sistemas.Getrans) in factory (pcat_cr) not found



  • 4.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 04, 2018 09:10 AM

    What are the contents of this file?  c:\dados\tst.txt  

     

    And do any other input files work (what are their contents for comparison?)



  • 5.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 11, 2018 05:25 PM

    Lucas, does "userTest" user's access type has proper Command Line Utility Role  ? Or can you post some more stdlog messages BEFORE that error message? Thanks _Chi



  • 6.  Re: Command line interface Text API. Problem setting category

    Posted Sep 04, 2018 09:16 AM

    the file contents:

    %DESCRIPTION=teste1
    %CATEGORY=Smartphone.Sistemas.Getrans

    %%%%%

    %DESCRIPTION=teste2.
    %CATEGORY=acessos.email

    %%%%%

    %DESCRIPTION=teste3.
    %CATEGORY=massiva

     

     

     

    first time trying the text api, no previous test.



  • 7.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 04, 2018 09:43 AM

    Lucas, do you see the same behavior if you only include one set of DESCRIPTION and CATEGORY tags? I'm concerned that the API might be getting confused by multiple entries in a single file.



  • 8.  Re: Command line interface Text API. Problem setting category

    Posted Sep 04, 2018 10:37 AM

    Tried that too



  • 9.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 04, 2018 09:59 AM

    Hello,

     

    I tested the syntax of your input file and it works fine.  Three cases get created with your input file.

     

    I did change the categories on my end to ones that were present (Application, Email, and Hardware instead of "Smartphone.Sistemas.Getrans", "acessos.email", and "massiva")

     

    I'd be curious to find out if you could try another user in the command you are using:

     

    pdm_text_cmd -t Request -u userTest -f c:\dados\tst.txt

     

    ie:  try
    pdm_text_cmd -t Request -u ServiceDesk -f c:\dados\tst.txt

    pdm_text_cmd -t Request -u Administrator -f c:\dados\tst.txt

     

    You may have a DP that is blocking view access of the categories on userid "userTest"



  • 10.  Re: Command line interface Text API. Problem setting category

    Posted Sep 04, 2018 10:37 AM

    Tried with these users, but still no solution :/



  • 11.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 04, 2018 11:15 AM

    Hi Lucas,

    Logon as Administrator in Service Desk web UI.
    In Administration tab >Service Desk >Request/Incidents/Problems >Areas.
    Look for what value in columns Self-Service Include and Self-Service Symbol for Request Area 'Smartphone.Sistemas.Getrans'.
    Also, is Yes in Requests column?

    Regards,
    Derek



  • 12.  Re: Command line interface Text API. Problem setting category

    Posted Sep 12, 2018 08:01 AM

    Hello Derek, Is it needed that the category is assigned to self service?



  • 13.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 12, 2018 09:04 AM

    Hi Lucas,

    It should have the checked/Yes for the 'Smartphone.Sistemas.Getrans' since you are using the command line. It sounds like you have No/unchecked in Self-Service column, right?

    When a category is Yes in Self-Service, Employee UI create ticket would appear in Request Area to select.

    Let me know the result after you make Yes for the 'Smartphone.Sistemas.Getrans' in Self-Service.

    Derek



  • 14.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 07, 2018 12:41 PM

    LucasMesquita 

    Do you require any additional assistance on this topic?

    If not, please mark one of the provided responses as correct so that this thread can be closed.



  • 15.  Re: Command line interface Text API. Problem setting category

    Broadcom Employee
    Posted Sep 18, 2018 10:45 AM

    LucasMesquita 

     

    Do you require any additional assistance on this topic?

     

    If not, please mark one of the provided responses as correct so that this thread can be closed.



  • 16.  Re: Command line interface Text API. Problem setting category
    Best Answer

    Posted Sep 19, 2018 10:41 AM

    No further assistance required! the text file I was using was corrupted( probably with other special caracters or something)