Batch Post Vendor Trade Agreements

Hello! I am trying to create a new menu option that will take all unposted vendor trade agreements and post them. We have an integration that brings in any new vendor quoted price from our CRM and creates a vendor trade agreement, but right now we have to manually go in and post each one. I created similar batch posting jobs for hour journals and expense journals so that those could be batch posted, but the trade agreement is behaving differently.

I have added the menu option and it allows me to create the batch, but then the batch job fails saying it could not find the object (meaning the trade agreement).

Any help would be greatly appreciated.