GetErrorLogsFiltered/GetErrorLogs method(Error Log smartobject) throws error when we use in Workflow


1) Tried to access  Workflow Server -> Errors -> Error profile = "ALL" in the newly created Workflow.

2) Created smart object reference for "Error Log" -> GetErrorLogsFiltered method with input mappings(ErrorProfileName=All) 

3) When we execute the above steps, system throws the following error (but records are there)

         "Index was out of range. Must be non-negative and less than the size of the collection.
          Parameter name: startIndex"

4) But if we access the above method using 'Smartobject Service Tester', it is working correctly(records are listing).

 

 

14364iC6D201CAA2022C85.png

  Can anyone help us, what could be the reason for this error? How to fix it?

 


4 replies

Userlevel 1
Badge +8

Hi selvakumar_rama


 


I would recommend that you review the below TKB this will be assist you in achieving the same result.


 


https://help.k2.com/support-services/kbt152547


 


Hope this helps


 


 

Hi Selvakumar_rama,


 


Kindly check the values that you are using for the input mapping. You can also know the full information of the error by checking the HostServer logs or Smartobject logging


 


Should you feel that this post is of use and or an accurate solution to the raised question, I kindly encourage you to mark it as such
using the 'Mark as Solution', 'Kudo' andor ‘Me Too’ options.


 


Cheers,
Kate


 


K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.

Hi,

 

Thanks for your reply. We had pass Error profile name as "All" (input). We verified multiple times the Error profile name. Still, we are not able to get any results. But this error profile("All") has 100+ records in our system.

 

Why the above two methods not returning any records and throwing an error when we pass the correct profile name("All") as an input?

 

Thanks,

 

 

Hi,

 

Thanks for your reply. As you suggested, we followed https://help.k2.com/support-services/kbt152547 link suggestion. This link method asks Error profile ID instead of Error profile Name.  We used the above and resolved our problem.

 

But we still have the question, above method(available in other places) asking only Error profile name as input. Even after passing the correct input("All"), why is it still throwing the error?   

 

Thanks,

Reply