cancel
Showing results for 
Search instead for 
Did you mean: 

Checkout -> modify record fails

former_member206107
Active Participant
0 Kudos

Hi all,

I am facing a strange problem with Java API SP06.

I am checking out the main table records and I am setting field values for a record. When i execute modifyrecords command for the checkedout maintable record, I am getting a server exception...

"The records is protected"

The user session is same for all the operation.

I cannot figure out the problem.

Cant we do modification on checked out records?

Best regards,

Arun prabhu S

Accepted Solutions (1)

Accepted Solutions (1)

former_member206107
Active Participant
0 Kudos

Hi Walter,

Thanks for the reply.

I was using modifyrecordCommand. i was getting "record is protected" exception.

Now i have changed my approach.

I am using modifyrecordscommand. Here i am supplying the records which i have modified. But the modification does not affects the checked out records.

BTW...Where do i supply the record ids? From my knowledge modifyrecordsbyID is not supported in SP06.

Kindly clarify.

Thanks and best regards,

Arun prabhu S

Former Member
0 Kudos

Hi,

After executing the CheckoutRecordsCommand you can call the method getCheckoutRecordIds(). Then retrieve records by ID (the checked-out ID) and modify these records.

Regards,

Walter

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Ensure that the RecordId's you supply to the command are the checked-out record ID's and not the "original" record ID's.

Walter

former_member206107
Active Participant
0 Kudos

refresh

former_member206107
Active Participant
0 Kudos

Hi Sharma,

The records are not protected.

My scenario : I am trying to modify the checked out records. I am not protecting the records any where.

This is strange. i donno why i am getting an irrelavent exception!

Best regards,

Arun prabhu S

Former Member
0 Kudos

If using Admin role, Go to DM and right click on record and unprotect it.

if using own userid, try first unprotect record and also it may be the case you dont have authorization to unprotect it. Check with your Admin.

BR,

Alok