Thanks demiGod. Might be a good idea considering how rare this error message appears to be on the forum. A pity that it is not in the documentation.
Maybe I can trim some old code out.
But if the publisher cannot handle such a large code base, I am in trouble. Though I have not yet confirmed that the problem is due to a large amount of code.
Yes this is the 40 WDL limit. I had it too and once I reduced them to 38 it ran.
It also in the manual, under Publish "Typical errors are missing files, or exceeding the patch table memory by including more than 40 WDL files without using a resource."
Oh god! you are so right, I did not see a bunch of other include in there. I swore it was less, but after counting them, ooops!!!! I just combined a couple of similar ones and that resolved it.
Thanks for your advice everyone, I feel dumb that I didnt catch this myself