cancel
Showing results for 
Search instead for 
Did you mean: 

Get IDoc Number Lock

Former Member
0 Kudos

Hi,

We are on PI 7.31 and have a File to IDoc scenario that is failing within PI.  The error says that it is failed when trying to get a lock to generate next idoc outbound message number.  The interface is setup to process a message every 15 seconds in the case we get a batch of interface files.  The first IDocs seem to process sucessfully and then over time the next few receive this error, so that tells me that somthing is hanging or a lock is not being cleared.  I've looked into the NWA lock list and nothing stands out to me as being specific to IDocs.  Any suggestions would be appreciated. 

Below is the message monitor log for the error:

IDoc: Preparing idoc
document list for send failed due to Error while idoc number db operation:
Cannot get lock to generate next idoc outbound message number

MP: exception caught with
message Error while idoc number db operation: Cannot get lock to generate next
idoc outbound message number

Exception caught by
adapter framework: Error while idoc number db operation: Cannot get lock to
generate next idoc outbound message number

Transmitting the message
to endpoint <local> using connection File_http://sap.com/xi/XI/System
failed, due to:
com.sap.engine.interfaces.messaging.api.exception.MessagingException:
java.lang.Exception: Error while idoc number db operation: Cannot get lock to
generate next idoc outbound message number

Thanks,

Nate

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184789
Active Contributor

Hi,

I had also faced this issue .In NWA, go to

  Configuration-> Infrastructure->Application Resource->Java IDoc Adapter .You will find an option Auto Number from DB. Change it to false...Reward points if helpful..


former_member191435
Contributor
0 Kudos

Hi Nathan,

Please follow what adarsh said.....

Thanks,

Sreenivas

Former Member
0 Kudos

Hi,

Is there any SAP message for this error or regarding parameter change ?

Thanks

Manas Behra