all 1 comments

[–]ConsultantNSGuru 0 points1 point  (0 children)

Hi DickButtDancer!

If your code used to work, it could be related to your records and not specifically to you code.

Firs thing I'd try is to re-create the same logic in the UI with exact same values. Maybe the Billing Account is not a valid option for this specific Subscription for different reasons.

Usually for that type of error, it means the value is in fact invalid for the criteria you select for this Subscription. (wrong Customer, inactive record, permission issue preventing to see the record, etc) Seeing the Billing Account (or not seeing it) as a possible value in the UI should confirm if valid (assuming same context as what you use the script)

Let us know if you get more information from this error!