Possible Erlang Bad Transform Function Solution

Just a quick thing to try if you’re running round in circles trying to work out why your mnesia:transform_table(Tab, Fun, NewAttList, NewRecName). isn’t working and returning you with something like this;

{aborted,{"Bad transform function",test,...}

Now, if you’re table is distributed then make sure the beam file has been loaded onto all nodes first.

This particular one had me for almost an hour before I sussed it, so I hope this quick blog post saves some of you some time too.

3 Replies to “Possible Erlang Bad Transform Function Solution”

Leave a Reply

Your email address will not be published. Required fields are marked *