Question

Why do i get a "resource not found" message after executing a MCPR workflow?


Badge +3

Hi all

Context 

We created a workflow in context of MCPR. We attempt to trigger the event when an employee gets linked to a Customer Company for MCPR. The underlining should afterwards  update to the adjusted CompanyId, EmpNo & EmpCatName 

The workflow exists of the following parts:

1 READ to get the empcategory from the original employee 

1 script taskt to (store it as a variable)

1 READ to read the employee you want to change

(1 script task for etag compatibility) 

1 PATCH to update the employee with the category 

 

ISSUE: 

When filling the time registration of the MCPR linked employee, we receive the error “resource not found”. We started troubleshooting to see if the error comes from the workflow itself. On first look, that was not the issue. On second look, when reading through the log window, we define a bpa automisation error as u can see on the log window below 

 

How to fix this error? 

 

Warm regards

 

 


7 replies

Userlevel 4
Badge +7

you can troubleshoot the workflow using observations to narrow down the location in the workflow where the error comes from

ref: Workflow Tooling - Technical Documentation For IFS Cloud

 

Badge +3

Hi, I have already tried this method to narrow the location down. Or i’m not narrowing correctly or i still didnt find the location

you can troubleshoot the workflow using observations to narrow down the location in the workflow where the error comes from

ref: Workflow Tooling - Technical Documentation For IFS Cloud

 

 

Userlevel 4
Badge +7

If I were to troubleshoot this error I will start with enabling observations. Then troubleshoot from the inputs received in observation(https://docs.ifs.com/techdocs/23r2/040_tailoring/500_business_process_automation/040_workflow_tooling/?#troubleshoot_an_execution) Why I do this is that sometimes the inputs that are received to the Workflow may not be the ones that are actually expected and using observations I make sure that I’m not using different inputs for debugging. Then in designer I might be able to observe where the red eye icon is seen. Then I will know which task the error is generated. Next if it is a projection task I will make sure the parameters sent to the projection is correct and the data types are correct. I will most probably compare it with the same projection called from web client, probably using chrome dev tools to see how and what is sent as the payload. Another way is to issue the same call from postman and compare. Parameter names, values, data types, case of the parameters are some things that can go wrong.

Badge +3

hi @Lahirumala de Mel thank you for the prompt response. After narrowing the error down in the workflow, Im puzzled of getting this error away? what are the first steps i should take?

kr
mehdi

Userlevel 4
Badge +7

This particular message can come for various errors. Since you are getting the error in a script task this can be a variable mismatch or a data type error. Perhaps need to check all the variables used in the script, if they are spelled correctly, their data types are considered correctly and so on. @kamnlk please correct me if I’m wrong.

Userlevel 4
Badge +7

Resource not Found usually means that the Resource you are Reading does not exist in the system. 

Steps you can usually try are,

  • check if the resource actually exists in the system
  • check the parameters you use in the READ operation are the expected parameters. Sometimes there is a chance that some of the filter keys are not what the api expect

 

Userlevel 2
Badge +4

If the above suggestions still leave you with the error, check the permission set of the user(s) triggering the workflow. If they do not have read permission to the projection that you are attempting to read in the workflow, they will get this error. Permissions applied to workflows are based on the permissions of the user who triggers the workflow, not the user who creates the workflow.

Reply