Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RAM Batch adding relationship update problem

Hi,

 

I got the exception below while trying to add relation between existing assets in RAM by batch application. Then I got the exception below..

 

 

HTTP Error trying to upload. (500: Internal Server Error), STATUSTEXT:Internal Server Error, RESPONSE:Error 500: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0

: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."

- Error when uploading the asset {0}.KRDPPARM[1.0]

Manifest = <?xml version="1.0" encoding="UTF-8"?>

<defaultprofile:Asset xmi:version="2.0"

xmlns:xmi="http://www.omg.org/XMI" xmlns:defaultprofile="http:///defaultprofile22.ecore" name="KRDPPARM"

id="7362C430-AA61-BBDF-DB95-CD9AB3996D43" state="Initial" version="1.0" shortDescription=" Program Name is --> KRDPPARM">

<classification>

<descriptorGroup name="AssetType">

<nodeDescriptor href="http://rampoc:13080/ram/classif/assetTypesSchema.xmi#cobol_pgm"/>

</descriptorGroup>

<descriptorGroup name="CustomAttributes">

<freeFormValue value="B">

<freeFormDescriptor href="http://rampoc:13080/ram/classif/assetTypesSchema.xmi#batch__online"/>

</freeFormValue>

<classificationSchema href="http://rampoc:13080/ram/classif/assetTypesSchema.xmi#/"/>

</descriptorGroup>

<descriptorGroup name="Service Category">

<nodeDescriptor href="http://rampoc:13080/ram/classif/service_development.xmi#id_61561"/>

<classificationSchema href="http://rampoc:13080/ram/classif/service_development.xmi#/"/>

</descriptorGroup>

<descriptorGroup name="StandardInfo">

<freeFormValue value="19" freeFormDescriptor="//@classification/@descriptorGroup.3/@freeFormDescriptor.0"/>

<freeFormDescriptor name="revisionCount"/>

</descriptorGroup>

</classification>

<solution/>

<relatedAsset name="KRDPSOGU" relationshipType="PGM Call (CAST)" assetId="AE87D23A-C59A-EC61-7A30-6F84274192C1"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=2012&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=540&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPMNUU" relationshipType="PGM Call (CAST)" assetId="38137D30-9A27-C3FC-84BD-0340F97B83F4"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=1943&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=544&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPESKU" relationshipType="PGM Call (CAST)" assetId="CCB469A8-F1A6-38B7-FDFE-DCD3B99757AD"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=1862&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=645&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPAGCU" relationshipType="PGM Call (CAST)" assetId="54F3DEF1-8776-743D-09DE-49E2376475E4"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=1792&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=668&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPTMNU" relationshipType="PGM Call (CAST)" assetId="EEA3D628-BAC2-A058-A71F-652AE5728130"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=2066&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=677&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPUYAU" relationshipType="PGM Call (CAST)" assetId="78DF2395-4CC1-4202-288C-63AEE86029AD"

assetVersion="1.0">

<description value="com.ibm.ram.asset.related.asset.dbid=2078&#xD;&#xA;com.ibm.ram.asset.related.stateid=101&#xD;&#xA;com.ibm.ram.asset.related.id=699&#xD;&#xA;"/>

</relatedAsset>

<relatedAsset name="KRDPUUGU" relationshipType="PGM Call (CAST)" assetId="115A8CAC-2915-768C-1B2A-FE0C2B4C17B2"

assetVersion="1.0"/>

</defaultprofile:Asset>

Archive = [no file]

- The asset KRDPPARM[1.0] was not updated.

com.ibm.ram.internal.client.RAMServiceException: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."[500]

at com.ibm.ram.internal.client.RAMClient.uploadAsset(RAMClient.java:1535)

at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3212)

at com.ibm.ram.client.RAMSession.put(RAMSession.java:5029)

at com.ibm.poc.asset.RelationManager.addRelationInExcel(RelationManager.java:50)

at com.ibm.poc.execution.RelationCreator.main(RelationCreator.java:28)

- The asset KRDPPARM[1.0] was not updated.

- RAM Runtime Exception.

com.ibm.ram.common.data.exception.RAMRuntimeException: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."

at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3429)

at com.ibm.ram.client.RAMSession.put(RAMSession.java:5029)

at com.ibm.poc.asset.RelationManager.addRelationInExcel(RelationManager.java:50)

at com.ibm.poc.execution.RelationCreator.main(RelationCreator.java:28)

Caused by:

com.ibm.ram.internal.client.RAMServiceException: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."[500]

at com.ibm.ram.internal.client.RAMClient.uploadAsset(RAMClient.java:1535)

at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3212)

... 3 more

- Unexpected Error : Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."

com.ibm.ram.common.data.exception.RAMRuntimeException: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."

at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3429)

at com.ibm.ram.client.RAMSession.put(RAMSession.java:5029)

at com.ibm.poc.asset.RelationManager.addRelationInExcel(RelationManager.java:50)

at com.ibm.poc.execution.RelationCreator.main(RelationCreator.java:28)

Caused by:

com.ibm.ram.internal.client.RAMServiceException: Repository exception trying to submit asset - KRDPPARM - ID#7362C430-AA61-BBDF-DB95-CD9AB3996D43 Version#1.0: Restrictions prevented an immediate retry of the transaction. Try again later. The cause is "There was a conflict on the save of asset "7362C430-AA61-BBDF-DB95-CD9AB3996D43" version "1.0" that could not be resolved."[500]

at com.ibm.ram.internal.client.RAMClient.uploadAsset(RAMClient.java:1535)

at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3212)

... 3 more


 

0 votes



One answer

Permanent link
From the trace, it seems that you are uploading from the client API - is it possible that that is an existing asset that was already updated (from the web or another thread/session)?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,132

Question asked: Jun 18 '12, 9:02 a.m.

Question was seen: 5,232 times

Last updated: Jul 13 '12, 11:46 a.m.

Confirmation Cancel Confirm