I keep getting errors when trying to update an existing record using Epicor rest. I can add records no problem. When I do a getbyID modify the fields I want and set my row mod to u I get row has been modified by another user. I have turned off all BPMs and another else that could cause this issue but with no success. It is because I am doing a post instead of a patch? Any ideas I’d greatly appreciated.
If you are updating data, I presume you are using the related BO’s Update method (as opposed to trying to patch Odata) right?
If so, many BO’s require a PRE (before change, rowmod = “”) and POST (after change, rowmod = “U”) record
2 Likes
Interesting. In the same JSON array?
Yes
Chris,
Thank you. It does seem that if you call MasterUpdate you must pass in both pre and post update rows.
Though this was not my issue. For anyone that runs across this post the problem was sysrevid. I had not added this to my Data model(I do not like to use system.dynamic). When you do not have SysRevID in the update Epicor adds one. Hence the dirty row… “Row Modified by another user”
4 Likes