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.
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.
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.
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.
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.
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.