Reply
Highlighted
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?

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
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.

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
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

Highlighted
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.

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
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

Highlighted
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!