cancel
Showing results for 
Search instead for 
Did you mean: 

MDM Java API - Checked out record Syndication

former_member207744
Contributor
0 Kudos

Hello Gurus,

I am trying to syndicate checked out recordIds through Java API and passed all the required fields to AddSyndicationRecordIdsCommand.

When executing AddSyndicationRecordIdscommand, I am getting "Not Found" exception.


RecordId[] recordIds = new RecordId[1];

RecordId recordId = new RecordId("R42292"); // Checked out recordId

recordIds[0] = recordId;

AddSyndicationRecordIdsCommand addSyndRecordCmd = new AddSyndicationRecordIdsCommand(conAccessor);

addSyndRecordCmd.setSession(userSessionId);

addSyndRecordCmd.setFilePrefix(filePrefix);

System.out.println("PortId::"+portProperty.getId()+"::RemoteSystemId::"+portProperty.getRemot);

addSyndRecordCmd.setPortId(portProperty.getId());

addSyndRecordCmd.setRemoteSystemId(portProperty.getRemoteSystemId());

addSyndRecordCmd.setRecordIds(recordIds);

System.out.println("RecordId lenght::"+addSyndRecordCmd.getRecordIds().length);

try {

       addSyndRecordCmd.execute();

  } catch (CommandException e) {

  // TODO Auto-generated catch block

       e.printStackTrace();

  }

Please help me to solve this error.


com.sap.mdm.commands.CommandException: Not found (0x80010001)

  at com.sap.mdm.data.commands.AddSyndicationRecordIdsCommand.executeImpl(AddSyndicationRecordIdsCommand.java:108)

  at com.sap.mdm.commands.AbstractCommandBase.execute(AbstractCommandBase.java:129)

  at com.test.TestSyndication.main(TestSyndication.java:134)

Caused by: com.sap.mdm.internal.protocol.manual.ServerException: Not found (0x80010001)

  at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:132)

  at com.sap.mdm.data.commands.AddSyndicationRecordIdsCommand.executeImpl(AddSyndicationRecordIdsCommand.java:103)

Accepted Solutions (1)

Accepted Solutions (1)

former_member207744
Contributor
0 Kudos

This issue is solved by changing the automatic port to manual.

Former Member
0 Kudos

Thank you for insight. You saved me a lot of time when looking for reason for error.

Answers (0)