# Functions Outputs stopped working on our test system

**URL:** <https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665>\
**Category:** Kinetic ERP\
**Created:** [December 4, 2023, 8:32pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665 "2023-12-04T20:32:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 4, 2023, 8:32pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/1 "2023-12-04T20:32:09Z")

</div>

I’m afraid to play around with them on Live in case the same thing happens, but randomly our Functions on the test system stopped working for any that have an output variable. I can’t create new ones with output variables either; they save fine but when ran through Schedule Epicor Function it errors in system monitor with a generic message: “System.ArgumentException: Unknown parameter: ‘PriceBreaks’.” or whatever the variable name we gave it was.

Anyone run into this before? Hasn’t been an issue in the past - the only thing that might have happened since last developing on our test environment was refreshing it with our Live environment. But currently our live environment runs functions nightly, with outputs, and it works fine.

I see a few posts about functions being janky and doing this, weird thing is they are all recent from what I can see. I’m on 2022.2 though. I tried recreating them from scratch, and even did a new function with 1 input 1 output and the same error occurs.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [December 4, 2023, 8:37pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/2 "2023-12-04T20:37:53Z")

</div>

Have you tried turning it off and on again… as the ole IT joke goes?

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 4, 2023, 8:42pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/3 "2023-12-04T20:42:14Z")

</div>

We are saving money by having our test environment on the same app server / task agent / sql server as our live environment… So I will have to wait to try that one until after hours haha. (also, that means I’m not allowed to make our BPMs do an infinite loop anymore)

Wasn’t sure if there was some setup that I did a long time ago that I’ve forgotten about and it got wiped/changed when moving live to test.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [December 4, 2023, 8:43pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/4 "2023-12-04T20:43:08Z")

</div>

It should still be a separate app server you stop that app server all together

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 4, 2023, 8:43pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/5 "2023-12-04T20:43:50Z")

</div>

You’re right, app server I should be able to at least try. We usually go nuclear and do reboots when things break lol

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [December 4, 2023, 8:44pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/6 "2023-12-04T20:44:25Z")

</div>

![go do it GIF](https://media3.giphy.com/media/139lMwJ9ow7bKE/giphy.webp?cid=e90edba3ksynlce2yzt7h1p7cpuxhyde7n2i78w86s23iik8&ep=v1_gifs_search&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 4, 2023, 8:54pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/7 "2023-12-04T20:54:47Z")

</div>

No dice for now. Going to try a full reboot of servers next time I can and read the darkest depths of the user guide for functions…

For anyone else interested in the future to match up error messages:

 ![image](https://www.epiusers.help/uploads/default/original/3X/4/2/42a7d5105b0244398afc03b57a8ea69ecfa00bca.png)

Not seeing anything on event viewer for it.

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 4, 2023, 9:04pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/8 "2023-12-04T21:04:27Z")

</div>

Definitely something strange going on. I bumped it up to production library and the REST side of it works fine. May just use REST as a workaround until I can fix this error.

---

<div class="post-metadata">

**Author:** ![aosemwengie1](https://www.epiusers.help/user_avatar/www.epiusers.help/aosemwengie1/32/95533_2.png) [@aosemwengie1](https://www.epiusers.help/u/aosemwengie1)\
**Post date:** [December 4, 2023, 11:04pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/9 "2023-12-04T23:04:34Z")

</div>

Its just a limitation of scheduling functions. There are a bunch of other posts about it floating around.

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [December 5, 2023, 2:41pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/10 "2023-12-05T14:41:21Z")

</div>

Weird part about it is our live system works fine right now and hasn’t had any issues. Our test system worked fine as well, until some time between October and yesterday to my knowledge. It’s a sudden blanket failure across all functions new or old on our test system, for any with an output.

I only see two relative posts that seem to have the same issue; one remained unsolved while the other had the solution as “there are bugs”. Now I just need to track down which bug I happen to have and how I can get it running again.

Didn’t get a chance to restart the server so it will likely be on the backburner today.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [December 5, 2023, 3:21pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/11 "2023-12-05T15:21:28Z")

</div>

We’ve seen this it’s some sort of cache. Reboot usually fixes it or IIS Reset

---

<div class="post-metadata">

**Author:** ![carlosqt](https://www.epiusers.help/user_avatar/www.epiusers.help/carlosqt/32/477_2.png) [@carlosqt](https://www.epiusers.help/u/carlosqt)\
**Post date:** [December 5, 2023, 6:11pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/12 "2023-12-05T18:11:49Z")

</div>

Hi Logan,  
The workaround is to create a wrapper function without output params, and schedule it to call the main function. That works for us.

```auto
// Function: "CallMainFuncName"
try
{
  //discard results
  var result = this.ThisLib.MainFuncName();
}
catch(Exception ex)
{
  throw new Ice.BLException(ex.ToString());
}

```

---

<div class="post-metadata">

**Author:** ![JasonMcD](https://www.epiusers.help/user_avatar/www.epiusers.help/jasonmcd/32/22326_2.png) [@JasonMcD](https://www.epiusers.help/u/JasonMcD)\
**Post date:** [May 21, 2024, 1:38pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/13 "2024-05-21T13:38:22Z")

</div>

This is ridiculous. The function scheduler freaks out with outputs?

The solution is to remove the outputs?!

Or wrap in another function with no outputs - which is similar: ignore the outputs.

I guess I could also call the EFx from a Flow and schedule the Flow.

Strange.

Anyone reported this? ~~I’m about to go check.~~ Not seeing it anywhere on EpicCare.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [May 21, 2024, 1:43pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/14 "2024-05-21T13:43:40Z")

</div>

Occasionally there is a bug with parameters.

The solution is to export the library and edit the json if it’s totally screwed, or sometimes just reimport as is.

See it rarely but it has happened a few times to me.

Haven’t been able to pinpoint the exact issue to report.

---

<div class="post-metadata">

**Author:** ![JasonMcD](https://www.epiusers.help/user_avatar/www.epiusers.help/jasonmcd/32/22326_2.png) [@JasonMcD](https://www.epiusers.help/u/JasonMcD)\
**Post date:** [May 21, 2024, 1:59pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/15 "2024-05-21T13:59:08Z")

</div>

> [@JasonMcD](#):
>
> Anyone reported this?

I have submitted it to EpicCare.

🤞

---

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [May 21, 2024, 1:59pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/16 "2024-05-21T13:59:16Z")

</div>

> [@JasonMcD](#):
>
> The function scheduler freaks out with outputs?
> 
> The solution is to remove the outputs?!

Or…run the function from an external scheduler. 🤷

Bonus: You have a lot of options to recover and to notify when failures occur.

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [May 21, 2024, 2:03pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/17 "2024-05-21T14:03:21Z")

</div>

> [@LoganS](#):
>
> I’m not allowed to make our BPMs do an infinite loop anymore

![films generation GIF](https://media0.giphy.com/media/mjCbsSiHkZNfy/giphy.webp?cid=e90edba3vlcfnm4ca46k4fh6nrxpppnsvi1c0scrw0tp8t57&ep=v1_gifs_search&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

**Author:** ![LoganS](https://www.epiusers.help/user_avatar/www.epiusers.help/logans/32/53356_2.png) [@LoganS](https://www.epiusers.help/u/LoganS)\
**Post date:** [May 21, 2024, 2:12pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/18 "2024-05-21T14:12:41Z")

</div>

> [@JasonMcD](#):
>
> The solution is to remove the outputs?!

I wish I would have remembered to update this with our solution - but I would agree it is some sort of cached data. I believe a full restart with a full IIS reset as suggested fixed it for us but I’m not 100% sure at this point.

> [@josecgomez](#):
>
> We’ve seen this it’s some sort of cache. Reboot usually fixes it or IIS Reset

* * *

We have also done a bunch of refreshes of our test server with the live server so it could be a table’s data I suppose, but I tend to live on the side of “Jose is usually right” when perusing this site.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [May 21, 2024, 2:25pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/19 "2024-05-21T14:25:28Z")

</div>

> [@LoganS](#):
>
> also, that means I’m not allowed to make our BPMs do an infinite loop anymore)

I agree with @NateS . Time to start looking for work elsewhere. You should be able to enjoy your work.

---

<div class="post-metadata">

**Author:** ![JasonMcD](https://www.epiusers.help/user_avatar/www.epiusers.help/jasonmcd/32/22326_2.png) [@JasonMcD](https://www.epiusers.help/u/JasonMcD)\
**Post date:** [May 21, 2024, 2:28pm UTC](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665/20 "2024-05-21T14:28:40Z")

</div>

> [@klincecum](#):
>
> You should be able to enjoy your work.

By crashing the production server?

[Next page](https://www.epiusers.help/t/functions-outputs-stopped-working-on-our-test-system/109665.md?page=2)
