cancel
Showing results for 
Search instead for 
Did you mean: 

MDM JAVA API - UpdateRecordsBySearch

Former Member
0 Kudos

HI,

Has anyone used UpdateRecordsBySearch() to update multiple records in MDM table? I modified the code from the API lib manual but got run time error. In my code, I replaced "Product" table with "Employees". I have used a program to

test same freeform search using the same parameters "ALLEN" and returned correct results.

The followin are the code:

Search search = new Search("Employees");

SearchParameters params = search.GetParameters();

FreeFormTableParameter fftParam =

params.NewFreeFormTableParameter("Employees");

FreeFormParameterField ffParamField =

fftParam.GetFields().New("Last Name");

ffParamField.GetValues().NewString("ALLEN", FreeFormParameter.EqualToSearchType);

A2iFields fields = new A2iFields();

fields.Add(new A2iField("Last Name", new Value("ALLN")));

A2iIntArray ids = catalog.UpdateRecordsBySearch(search, fields);

Error message:

a2i.core.StringException: Error updating records

at a2i.common.CatalogData.UpdateRecordsBySearch(Unknown Source)

at MDMConnect.MySearch.updateMultiple(MySearch.java:275)

at MDMConnect.MySearch.run(MySearch.java:43)

at MDMConnect.MySearch.main(MySearch.java:32)

Free form search Result:

Logged into MDM server from MDMConnect.

Enter last name: ALLEN

Number of records found: 2

Personnel Number Last Name First Name Date of Birth

00010129 ALLEN NORINE 1934/09/27 00:00:00

00010364 ALLEN PAUL 1931/06/17 00:00:00

Thank you in advance.

YW

Accepted Solutions (1)

Accepted Solutions (1)

AndreasSeifried
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

the described behaviour is confirmed to be a bug, which is planned to be corrected with the next patch after MDM 5.5 SP03 P2.

Kind regards

Andreas

Former Member
0 Kudos

Hi Andreas,

Is there a place where we can find an overview of the 'bugs' in MDM 5.5 ?

Thx,

Dirk

Answers (1)

Answers (1)

AndreasSeifried
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dirk,

all bugs, at least all that are detected based on a customer reporting a problem via OSS, should be available as a SAP Note.

Regards

Andreas