cancel
Showing results for 
Search instead for 
Did you mean: 

'String' datatype maxLength

Hello,

 

I am making a request using createCustomerProfileTransactionRequest, and getting the following error response for one of my lineItems:

<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00003</code><text>The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid - The value '<the name of my line item goes here>' is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.</text></message></messages></ErrorResponse>

The line item name that I'm trying to send is 36 characters.

 

I apologize if I'm missing something somewhere, but I cannot find anywhere (in documentation, or in the WSDLs) that shows what the maxLength value is.  Also, it seems like 36 characters should be fine for a string.

 

So, does anyone know what that length is, or where I can find it?

 

Thanks,

   Josh

joshjryan
Member
10 REPLIES 10

Hi,

 

Use the "description" parameter inside the lineItems which accepts characters upto 255. And keep the "name" parameter short upto 31 characters.

 

Thanks