Hello - We just started using the fixed asset mod...
# suiteflow
l
Hello - We just started using the fixed asset module and I am receiving an error when I run the depreciation JEs. The error is because we have the created by field in our JE approvals. INVALID_KEY_OR_REF: Invalid custbody_be_createdby reference key -4 . I added the following to my JE workflow approval and it works in sandbox but it does not work in production. Production is on 2024.2 and the sandbox has not been upgraded yet. Any suggestions on how to get this to work in production? TIA
m
What actions do you have in the approved state?
This is most likely caused by an action trying to set a field value to -4 OR and email being sent with the author or recipient as -4
l
I do have and email action and the send from and to was "created by" (even though it was going only to one person). I changed it to send from me and only go to her but I am still receiving the error.
m
You have a script or a workflow that is setting this field value to -4 custbody_be_createdby
You need to update that action so it does not trigger if User = -4
l
user -4 is the system. I added a transition that goes from entry to approved if the user is -4.which i have at before record submit. It worked fine in sandbox. I do have to set created by = current user on entry before any transitions, should I change my transition for the -4 to entry?
m
You could try that
Actually...transitions fire after actions, so I don't think that would work
Unless you change your Set Field value to Before Load
l
I got it to work! I ended up putting a condition on the set value for the created by field to {user.id}!=-4 and that worked. Thank you for being a sounding board, it really helped me narrow down the issue.