cancel
Showing results for 
Search instead for 
Did you mean: 

The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:transactionKey' element is invalid - The value XXXXXXX

My XSD request clearly contains a TransactionKey, but on response, it's complaining that the value "XXXXXXXXXXXXXXXX' is invalid, and the actual lenght is greater than the maxlength value.  

 

how can that be, if i'm sending the transaction key correctly?  below is the request array:

 

net\authorize\api\contract\v1\CreateCustomerProfileRequest Object ( [profile:net\authorize\api\contract\v1\CreateCustomerProfileRequest:private] => net\authorize\api\contract\v1\CustomerProfileType Object ( [paymentProfiles:net\authorize\api\contract\v1\CustomerProfileType:private] => [shipToList:net\authorize\api\contract\v1\CustomerProfileType:private] => [merchantCustomerId:net\authorize\api\contract\v1\CustomerProfileBaseType:private] => 136167 [description:net\authorize\api\contract\v1\CustomerProfileBaseType:private] => [email:net\authorize\api\contract\v1\CustomerProfileBaseType:private] => nicklee0875@gmail.com ) [validationMode:net\authorize\api\contract\v1\CreateCustomerProfileRequest:private] => [merchantAuthentication:net\authorize\api\contract\v1\ANetApiRequestType:private] => net\authorize\api\contract\v1\MerchantAuthenticationType Object ( [name:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => 3kEn6xMB23a [transactionKey:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => 8Ax55gRVe85647VH [sessionToken:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => [password:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => [impersonationAuthentication:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => [fingerPrint:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => [clientKey:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => [mobileDeviceId:net\authorize\api\contract\v1\MerchantAuthenticationType:private] => ) [clientId:net\authorize\api\contract\v1\ANetApiRequestType:private] => [refId:net\authorize\api\contract\v1\ANetApiRequestType:private] => ref1497465119 )

 

 

ascendo0875
Member
1 REPLY 1

Hi @ascendo0875,

 

Any chance you're accidentally including a space or something in what's being sent? That would definitely cause the error you see. If not, can you post your code that actually creates the request?

Aaron
All Star