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.

This entry was posted in Erlang, technology and tagged . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>