CA Service Management

Expand all | Collapse all

Mail Eater rule error

Jump to Best Answer
  • 1.  Mail Eater rule error

    Posted 01-29-2018 10:00 AM

    Hi all,

     

    I'm trying to build a Mail Eater rule for creating a Change Request when receiving a message. At first, I got this error:

    domsrvr              5444 ERROR        top_ob.c              4030 Got msg with type set to 0
    spelsrvr             5024 ERROR        cr_chg_text_api.spl   1387 AHD58009:Não foi possível criar Requisição de mudança. Motivo: INVALID - AHD03075:O atributo necessário status está ausente no objeto Requisição de mudança

     

    The second line translates to "AHD58009:Unable to create Change Request. Reason: INVALID - AHD03075:The attribute status is not present in object Request change".

     

    Ok, so I did some research and learned that I needed to put the text %STATUS=Aberto% (Open) into the message, so SDM will know the status is "Aberto" (Open).

     

    However, when I put this string in the message, I got the following error:

    spelsrvr             5024 ERROR        pcexec.c              6403 Spell interp failed at text_api.spl:2385:fetch_dob_list | text_api.spl:2221:fetch_dob | text_api.spl:2172:fetch_dob_string | text_api.spl:1453:lookup_chg_status | text_api.spl:498:tapi_set_col_attr | cr_chg_text_api.spl:706:text_api::cmd_cr_chg: Arg mismatch in printf or scanf

     

    Anyone have a hint in what this could be? Note: I'm already using Plain Text in the messages.

     

    Thanks in advance,

     

    Diogo



  • 2.  Re: Mail Eater rule error
    Best Answer

    Posted 01-29-2018 10:45 AM

    is it %STATUS=Aberto not %STATUS=Aberto?



  • 3.  Re: Mail Eater rule error

    Posted 01-29-2018 11:40 AM

    Hi Chi_Chen, for some reason, I thought it needed a '%' symbol at the end. I tried without it and worked, thanks!

     

    However, it seems this only works when this string is at the end. When I put this identifier and after I write some text, I get an error:

     

    spelsrvr             5024 ERROR        text_api.spl          2385 fetch_dob_list sym (Aberto     fhfdshfdshdfhdf) in factory (chgstat) not found

     

    Is this an expected behavior?

     

    Thanks,

     

    Diogo



  • 4.  Re: Mail Eater rule error

     
    Posted 01-29-2018 12:09 PM

    Hello Diogo, can you please show us exactly what the body of the email looks like when you receive the error?

     

    Thank you,

    Richard



  • 5.  Re: Mail Eater rule error

    Posted 01-29-2018 01:22 PM

    Hi ritri01,

     

    The content of the message is:

     

    %STATUS=Aberto


    fhfdshfdshdfhdf

     

    Diogo



  • 6.  Re: Mail Eater rule error

    Posted 01-29-2018 12:13 PM

    Hi,

    to prevent unwanted errors I recommend to define all constants directly in maileater rule and use email interface to pass only variables.

     

    Regards,

    Timur Alimov



  • 7.  Re: Mail Eater rule error

    Posted 01-29-2018 01:24 PM

    Hi cdtj, do you mean, define a constant for "%STATUS=Aberto" string?

    How to do this? Thanks,

     

    Diogo



  • 8.  Re: Mail Eater rule error

    Posted 01-29-2018 01:40 PM

    Input called "TextAPI Defaults" where you can declare constants, example:

    For Chg object use CHANGE prefix instead.

     

    Regards,

    Timur Alimov



  • 9.  Re: Mail Eater rule error

    Posted 01-30-2018 12:15 PM

    This will be very useful for us. Thanks!



  • 10.  Re: Mail Eater rule error

    Posted 01-29-2018 12:18 PM

    Diogo, when you have

    $STATUS=Aberto     fhfdshfdshdfhdf

    in one line, you will get this error as the maileater takes "Aberto     fhfdshfdshdfhdf" as status. So this is expected. You can do

    $STATUS=Aberto

    %DESCRIPTION=fhfdshfdshdfhdf

    Thanks _Chi



  • 11.  Re: Mail Eater rule error

    Posted 01-29-2018 01:22 PM

    Yes, but that was not in one line. The original message was:

     

    %STATUS=Aberto
     
     
    fhfdshfdshdfhdf