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 0spelsrvr 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,
is it %STATUS=Aberto not %STATUS=Aberto?
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?
Hello Diogo, can you please show us exactly what the body of the email looks like when you receive the error?
The content of the message is:
to prevent unwanted errors I recommend to define all constants directly in maileater rule and use email interface to pass only variables.
Hi cdtj, do you mean, define a constant for "%STATUS=Aberto" string?
How to do this? Thanks,
Input called "TextAPI Defaults" where you can declare constants, example:
For Chg object use CHANGE prefix instead.
This will be very useful for us. Thanks!
Diogo, when you have
in one line, you will get this error as the maileater takes "Aberto fhfdshfdshdfhdf" as status. So this is expected. You can do
Yes, but that was not in one line. The original message was: