cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error Code 240

Hi,

 

I'm using python to create items and to sell them on eBay.

To be more specific, I'm using ebaysdk.trading.

 

My program was working well like last week, but uncertainly I get the Error Code 240 now without any changes being done:

ebaysdk.exception. Connection Error: 'AddItem: Class: RequestError, Severity: Error, Code: 240, Der Artikel kann weder eingestellt noch bearbeitet werden. Der Artikel kann weder eingestellt noch bearbeitet werden. Die Artikelbezeichnung und/oder -beschreibung enthalten unter Umständen unzulässige Begriffe oder das Angebot verstößt gegen die eBay-Grundsätze.'

 

This is the description i want to implement:

'<![CDATA[<p>{title_name}</br>OEM: {part_number}</br>FIT:</br>{passende_auto_text}</br></br> FIT CHECK ON REQUEST! </p>]]>

 

OFC title_name, part_number, passende_auto_text is replaced with correct values, which does not violate eBays policy.

 

I called eBay to check if there are any restrictions on our eBay account, but unfortunately not.

 

Pls help!

  • He
Message 1 of 4
latest reply
3 REPLIES 3

Re: Error Code 240

Hello,

It sounds like you’re encountering a frustrating issue with the eBay API. Error Code 240 typically indicates that the item title or description contains prohibited terms or violates eBay’s policies1. Here are a few steps you can take to troubleshoot and resolve this issue:

Check for Prohibited Terms: Even if you believe your terms are compliant, double-check the title and description for any words or phrases that might be flagged by eBay’s filters. Sometimes, seemingly innocuous terms can trigger errors.
Simplify the Description: Try simplifying the description to see if the error persists. For example, remove HTML tags and special characters to ensure they aren’t causing the issue.
Use eBay’s Sandbox Environment: Test your item listing in eBay’s sandbox environment to see if the error occurs there as well. This can help isolate whether the issue is with your account or the listing content.
Review eBay’s Listing Policies: Make sure your listing adheres to eBay’s latest policies and guidelines. Policies can change, and something that was allowed previously might now be restricted.
Update SDK and Dependencies: Ensure that you are using the latest version of the ebaysdk and its dependencies. Sometimes, updates can resolve unexpected issues.
Log Detailed Error Messages: Enable detailed logging in your application to capture more information about the error. This can provide additional context that might help in troubleshooting.
Here’s a simplified version of your description to test:

description = '<![CDATA[<p>{title_name}</br>OEM: {part_number}</br>FIT:</br>{passende_auto_text}</br></br> FIT CHECK ON REQUEST! </p>]]>'


Hope this work for you.
Best Reagrd,
rechard563

Message 2 of 4
latest reply

Re: Error Code 240

Is this reply helpful to you or not? 


 

 

 

 

 

Regards,
rechard563
myloweslife

Message 3 of 4
latest reply

Re: Error Code 240

Hi @rsihrautohaus @rechard563 

 

There are several reasons for Error Code 240 - "The item cannot be listed or modified". Most of the time, the response returns the Message tag, which can contain very detailed information about the actual problem and how it can be resolved.  

As a best practice, capture all the Messages and render only the distinct messages to your user for further action.

 

You can refer to the Knowledge Base articles below for more details on Error 240:

https://developer.ebay.com/support/kb-article?KBid=694

https://developer.ebay.com/support/kb-article?KBid=69 

https://developer.ebay.com/support/kb-article?KBid=308 

Best Regards,
eBay Developer Support
Message 4 of 4
latest reply