Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Inbound Action with invalid user

simonvolkwe
Tera Expert

Hello Community,

 

I am currently working on Inbound email actions for the creation of an incident.

 

We want to change the Inbound Action so it will create an Incident even when the Inbound action can't find a User for this email address in the system. 

I changed the script so when the User is not found via email, the Incident will still be created but with a generic "Guest User" Account.

 

My problem is, somehow there is a second check for the user outside of the Inbound Action and I am apparently unable to find it. Because i have this Error Message: " Skipping script 'Create Incident', user cannot be resolved "   and i want to know where exactly does this message come from? 

 

Greetings

Simon

 

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@simonvolkwe 

I believe those messages comes from platform level script and we don't have access to change/update that.

This is similar to how you get "Invalid Update" message when before update BR aborts the update. This also cannot be found in instance.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

@simonvolkwe 

 

Did you get a chance to review this as I believe the information provided should answer your question.

 

Check your instance for guest user and make sure it it active and not locked out and has access to create/update the records on the target table for inbound email action 'incident'.

 

If guest user do not have required access, provide necessary roles or permissions and try again.

Bhuvan_0-1759287275353.png

If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

View solution in original post

9 REPLIES 9

Siddhesh Wani1
Tera Guru

hi @simonvolkwe ,

Try this script 

 

    var userID = gs.getUserID();
    if (userID) {
        current.opened_for = userID;
    } else {
        current.opened_for = gs.getProperty('guest.user.sysid'); // guest | Guest
    }


If this helped to answer your query, please mark it helpful & accept the solution.
Thanks
Siddhesh

Hi thank you for you answer, but not sure what I should do with the script above, I need an answer for this

Error Message: " Skipping script 'Create Incident', user cannot be resolved "   and I want to know where exactly does this message come from? 

 

Greetings

Simon

 

Common cause of this are 

 

Inactive or locked-out user: 

The sender's email address might be linked to a user account that is either inactive or locked out in ServiceNow. Inbound actions are generally not processed for such users.

Invalid email address format: 
The email address in the "From" field might contain invalid characters (e.g., underscores in the domain part), preventing ServiceNow from resolving it to a valid user.
User not found in the system: 
The email address in the "From" field might not correspond to any existing user record in ServiceNow.

Try the above script to solve your issue.

Hi thank you again,

 

Maybe I didn't describe the question well enough. I want to know where exactly in the script this error message is generated. I do NOT want to know why this error message is thrown.