Changes to BPM not saving

I have probably a very simple/stupid problem regarding changes to a BPM not saving.

I have a Data directive BPM on Kinetic 2025 (self hosted) which has a ‘execute custom code’ caller that will throw an error when a user tries to move Part A into Bin XYZ if that bin already contains Part B IF the attribute OPB (one part per bin) is set on that bin.

However during initial coding we had the attribute in the code set to LRG and I need to change the BPM to use OPB. I can make the change and test and it seems to work, but as soon as I exit the BPM designer and go back in, the code in the BPM has reverted to using LRG again instead of the change that I THOUGHT is saved of OPB

var attrBin = Db.whsebinattr.Where(x => x.Company == first.Company && x.BinNum == first.BinNum2 && x.AttrCode == “LRG”).FirstOrDefault();

Vs

var attrBin = Db.whsebinattr.Where(x => x.Company == first.Company && x.BinNum == first.BinNum2 && x.AttrCode == “OPB”).FirstOrDefault();

I’m sure I’m missing some seemingly arbitrary sequence of enable, save, and/or compile that is needed to make the change persistent. Heaven forbid simply hitting save would do just that…

appreciate any help!

2 Likes

I’ve seen weird things with the Kinetic UI version of the BPM designer. Clear your browser cache perhaps will clear up the issue. Also, have you tried to modify the BPM in Classic UI? I have better luck in Classic personally.

You are saving twice right? You have to save inside the code editor and again the bpm itself.

4 Likes

I wasn’t saving twice. I assumed the ‘save all’ button at the top did just that … silly me.

Heaven forbid the ‘save all’ button saved all changes to the BPM. Saving the custom code using the save in the bottom left and THEN the save all seems to work.

Thank for the help!

3 Likes