Vendor code “Vendor number” is not authorized for “item number”
Good day everyone! This is a tip for developers who are struggling with mysterious warning messages when creating a Purchase Order. When adding an item to a purchase order, you might get the error/warning:
Vendor code “Vendor number” is not authorized for “item number”
This is a configuration error. In AX 2012, you can specify which items can be purchased from what vendors. This prevents the purchasing/buyers departments from purchasing items from a variety of vendors at different prices and qualities.
How to enable this Item to your vendor.
You can setup approved vendors by navigating to the Released products (Product information management/Common/Released products). Click on the Purchase tab in the navigation ribbon and click Setup under the Approved vendor group. Here you can specify the approved vendors with valid to/from date.

Add the vendor to the specific product and we are done!
How do I change the Approved Vendor check method?
On an item by item basis (e.g. setting on Released Products), we can specify if we want to ignore the approved vendor lists functionality (No check), only throw an error if the vendor should not purchase from the order (Warning only), or halt the entire process (Not allowed). To change it, edit the product you want and on Purchase Fast Tab change the Approved Vendor properties.

This was originally posted here.
*This post is locked for comments