# Problem with system.recipe.setItemRecipe

**URL:** <https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 21, 2023, 11:21pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417 "2023-03-21T23:21:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jair\_Lara](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jair\_Lara](https://forum.inductiveautomation.com/u/Jair_Lara)\
**Post date:** [March 21, 2023, 11:21pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417/1 "2023-03-21T23:21:22Z")

</div>

Hello, I maked a copy of production server (project, DB) working into a Sanbox server. I have an issue when I try to download the recipe to the PLC, it do not is downloaded, debugging into the script, I found this code for the recipe:

system.recipe.setItemRecipe(itemPath, recipeName, True)  
That code is not changing with the recipe, and it not reflect the value, so I need to modify directly with the script o into the tag using:

system.tag.write(event.source.parent.parent.tagPath + '/PLC/PartNumber',recipeName).

Do you know what I need check for System.recipe.setItemRecipe funtion works? I already validate the tags, and the recipe and all it is fine, I do not find any error with it. I think there are something wrong with the tags that maybe I skipped something when I mounted this copy of production server into this another sandbox server; I have same structure as production server tag.

I appreciate any sugestion.

---

<div class="post-metadata">

**Author:** ![Jair\_Lara](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jair\_Lara](https://forum.inductiveautomation.com/u/Jair_Lara)\
**Post date:** [March 22, 2023, 3:42pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417/2 "2023-03-22T15:42:52Z")

</div>

Testing with this code:  
linePath = "[IGT]Juarez\Finishing\FIN01"  
system.recipe.setItemRecipe(linePath, recipeName, True)

Show me this error:  
08:42:09.324 [AWT-EventQueue-0] ERROR com.sepasoft.recipe.rpc.RecipeRPCProxy - Exception invoking setItemRecipe RPC call.  
com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Item path ([global][IGT]Juarez\Finishing\FIN01) not found.  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:359)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:333)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:286)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.moduleInvoke(GatewayInterface.java:922)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2023, 3:51pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417/3 "2023-03-22T15:51:06Z")

</div>

Have you contacted Sepasoft support?

---

<div class="post-metadata">

**Author:** ![Jair\_Lara](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jair\_Lara](https://forum.inductiveautomation.com/u/Jair_Lara)\
**Post date:** [March 22, 2023, 5:06pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-recipe-setitemrecipe/71417/4 "2023-03-22T17:06:10Z")

</div>

Hello, yes, I am already in contact with them, but I am looking for another suggestions, maybe I skipped in some config.
