Bala
01/02/2025, 9:25 AMCeligo AI
01/02/2025, 9:26 AMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** The error message you're encountering, "You cannot add an item and purchase order combination that does not exist to a Vendor Bill," typically occurs when you're trying to create a Vendor Bill from a Purchase Order (PO) using SuiteScript, and the combination of item and PO you're trying to add to the Vendor Bill doesn't exist. In the context of the SuiteScript code you've shared, it seems like you're trying to add a line to the Vendor Bill that references a specific line from the PO (
vendorBill.setCurrentSublistValue('item', 'orderline', poLineId);
). If the poLineId
you're referencing doesn't exist on the PO, or the item associated with that line doesn't exist, you'll encounter this error.
To resolve this issue, you should ensure that the poLineId
you're referencing exists on the PO, and that the item associated with that line also exists. You can do this by checking the PO in the NetSuite UI, or by using SuiteScript to load the PO and inspect its lines.
In addition, it's worth noting that you cannot add multiple vendors and/or currencies to a single Vendor Bill. This is a restriction in NetSuite to prevent ambiguity in identifying which vendor to use for the bill. If you're trying to bill POs from different vendors, you'll need to create separate Vendor Bills for each vendor.Celigo AI
01/02/2025, 9:26 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82910049
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827524304
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826324522
Celigo AI
01/02/2025, 9:26 AM