Question

REST PATCH ODP_RESOURCE_NOTFOUND

  • 5 September 2022
  • 2 replies
  • 565 views

Userlevel 1
Badge +3

Hi

I Try to unissue material from WO Task. Use same 3 REST calls than AURENA.

3 steps

1. POST add new line 2. PATCH update the quantity unissued 3. POST Finish the unissue

the PATCH step doesn’t work gives the Resource Not Found (ODP_RESOUCE_NOTFOUND) error, if taken the If-Match = ‘*’ away from Header get the ODP_NOT_ALLOWED error

Any ideas what might help

 

2.

 

3.

 


2 replies

Userlevel 4
Badge +9

Hi @Petri P,

The problem is most likely due to an incorrect key (Objkey) that points to the child item in the WoUnissArray. Just looking at the URL that calls the PATCH, it seems like the same key value (E7CO...812D) that refers to the master is used to refer to the item in the array which is usually not the case. The child item should usually have a different key value. (I’m not sure about this WO functionality in particular so I could be wrong here)

Perhaps you can verify this by just calling a GET with the same URL in step 2 after performing Step1?

Regards, 

 

Userlevel 1
Badge +3

Hi Rifki,

Yes I think you are right.

The Traced values were almost the same but not quite when I now look more carefully.

I need one more GET to get the correct children objkey the parent one  I get when creating the new entity to virtual set.

I test this later but seems that this may work now.

Thanks a million!

br.petri

Reply