Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 5
Registered: ‎04-21-2015

Deleting User Profile via Java API returns a "reccord cannot be found error" but deletion successful

I am trying to delete user profiles in java via the code below.

 

net.authorize.cim.Transaction transaction=merchant.createCIMTransaction(TransactionType.DELETE_CUSTOMER_PROFILE);


transaction.setRefId(generateRefId());


transaction.setCustomerProfileId(profileId);


Result<Transaction> result = (Result<Transaction>) merchant.postTransaction(transaction);

 

Every response I get it the following

 

deleting user with profileId =32441194
Result Code: Error<br>
E00040 - The record cannot be found.<br>

 

The weird thing is the user profile Id is in fact active/correct and the deletion of the account completes successfully in the sandbox, even though the response claims there is an error.

 

Any ideas?

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

Hello @micromarty

I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.

Thanks,

Richard

Highlighted
Member
Posts: 5
Registered: ‎04-21-2015

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

Has anyone else been experiencing this? The behavior still seems to occur.

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

Are you calling the API or using the Java SDK?

 

Richard

Member
Posts: 5
Registered: ‎04-21-2015

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

I am using the java sdk.

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

In that case, I would encourage you to submit an issue on Github if you have not already done so.  This will directly notify the developer responsible for the SDK.

Richard

Member
Posts: 5
Registered: ‎04-21-2015

Re: Deleting User Profile via Java API returns a "reccord cannot be found error" but delet

Sounds good, thank you!