Operation returned an invalid status code (...) "Invalid input. The maximum length of 'label_text1' is 20 for this service (158)"} [Solution]

Modified on Mon, 17 Aug, 2020 at 11:43 AM

When processing FedEx orders, you might come across the "Operation returned an invalid status codeBadRequest' {"status":"error","error_code":"errors.invalid_input","error_message":"Invalid input. The maximum length of 'label_text1' is 20 for this service (158)"} " error.




This error happens when the one or more Label References exceeds the length of 20 characters when using FedEx


To solve this, you can either:


a) Use shorter Customer Order numbers

b) If that's not possible, or if you're using Fixed References, remove or replace the reference on the Billing Account profile you're processing through as this article indicates: https://support.techdinamics.com/solution/articles/227983-adding-reference-numbers-on-labels-step-by-step-guide- 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article