CA Service Management

  • 1.  Error creating contacts with createObject method.

    Posted Jan 23, 2018 09:12 AM

    Hi guys,

    I'm using the createObject method in a PAM flow to create new contacts on SDM. The insert is performed but an error is returned by WS, the operator becomes locked and the post execution code fail.

     

    Request code:

    <impl:createObject xmlns:impl="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <sid>sid__</sid>
    <objectType>objectType__</objectType>
    <attrVals>
    attributes__
    </attrVals>
    <attributes> </attributes>
    <createObjectResult>createObjectResult__</createObjectResult>
    <newHandle>newHandle__</newHandle>
    </impl:createObject>

     

    Where 'sid__' , 'objectType__' and 'attributes__' are replaced at execution time

     

     

     

    Error message:

    Error code:

     

    Falt Message:



  • 2.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 10:47 AM

    Hi,

     

    You mention the insert is performed, are all the attributes being filled in as expected?



  • 3.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 11:26 AM

    Yes,

     

    all attributes was filled as expected. The method response may be the cause, because the process variable 'ContactHandle' still NULL after operator execution.

     

    Do I need to pass any value on this tags?
    <createObjectResult>createObjectResult__</createObjectResult>
    <newHandle>newHandle__</newHandle>

     

    The way the process was deployed don't replace this values under Dynamic Parameters section.

     

     

    The post execution code try it:



  • 4.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 11:37 AM

    That's strange, I would have thought one or more attributes was not being set correctly.  Can you check the SDM logs for errors? jsrvr.log and stdlog.x may have some information.



  • 5.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 11:50 AM

    The stdlog.x contains this error message:

     

    01/23 11:31:18.31 UDPCAITSMAP05  spelsrvr             6816 ERROR        api.spl                974 Error on fetch with attribute list: persistent_id,all_creq,roles,z_srl_Empresa,request_tasks,pgroups,userid,schedule,all_iss,ldap_dn,z_dte_Admissao,all_chg,active_special_handling,supervisor_contact_uuid,contact_num,service_wftpl,iss_nf_list,cnthandling_list,sap_personID,auto_bias_isswf,tenant_group,phone_number,macro_ntf,last_name,att_ntfrlist,access_type,admin_org,last_mod_by,fax_phone,middle_name,z_str_Cpf,z_dte_FeriasInit,delete_time,version_number,z_dte_Demissao,workload,log_reader,chg_nf_list,workload_crwf,member_list,combo_name3,combo_name2,all_open_creq,id,tenant,creation_date,workload_isswf,billing_code,company,vendor,service_chgcat,notify_ws4,change_tasks,notify_ws3,notify_ws2,notify_ws1,type,notes,workload_iss,beeper_phone,z_srl_gerente,room_location,confirm_save,workload_wf,notify_urgency4,workload_chg,notify_urgency3,notify_urgency2,notify_urgency1,service_pcat,mgs_ntf,email_address,timezone,integration_cnt,service_type,dept,group_list,z_dte_FeriasFim,KD_APPROVAL,available,first_name,service_isscat,alt_phone,issue_tasks,creation_user,audit_userid,currency_type,cntchgntf,position,pemail_address,exclude_registration,notify_method4,notify_method3,delete_flag,service_locs,notify_method2,web_url,notify_method1,cr_nf_list,mobile_phone,cost,linked_id_usp_contact,combo_name,domain,z_srl_Disponivel,auto_bias_crwf,alias,z_str_Empresa,cntissntf,cntntf,auto_bias_wf,last_mod_dt,cenv,location,persistent_id,organization



  • 6.  Re: Error creating contacts with createObject method.
    Best Answer

    Posted Jan 23, 2018 11:57 AM

    In your request code try updating the following.

     

    <attributes> </attributes>

    to

    <attributes><string>persistent_id</string></attributes>

     

    When you leave this blank it'll return everything, but you can limit the response by adding one or more fields.  If that doesn't help you might want to open a support case.



  • 7.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 03:29 PM

    Yeah! inserting the persistent_id on the attributes section the operator works fine as you can see below:

     

     

    Many thanks !



  • 8.  Re: Error creating contacts with createObject method.

    Posted Jan 23, 2018 03:35 PM

    That's great!  It looked like the response was being truncated, I'm not sure if that was PAM or the SDM WS that was cutting off the response..  Either way this is probably a bug.