cancel
Showing results for 
Search instead for 
Did you mean: 

Fail to generate PDF and give exception Unable to LOCK

Former Member
0 Kudos

Hi members.. today we generate Adobe PDF in R/3 and hit such error.

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_FP_API_INTERNAL', was not caught

in

procedure "GENERATE_PDF" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

Unable to lock form ZTFPT50

Anyone face this error before, tried google around but not much info about it.

Thanks, many thanks,

kahwai

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Remove UUID from XML code will solve all this issue.

robert_kunstelj
Active Contributor
0 Kudos

Hi. I have the same problem. Can you please explain how to do the following...

"Remove UUID from XML code"

Former Member
0 Kudos

Hi Robert,

Today only i receive email notification on you asking in my thread.

Its 3yrs back, I remember we need to remove UUID tag in livecycle designer, XML Source Code tab.

OttoGold
Active Contributor
0 Kudos

what was the last change of the form? or it is happening out of the blue? Otto

Former Member
0 Kudos

hi otto,

The error message prompt in Production server,it work fine in Development server. It's the first time we see this kind of error too. Certain of the pdf get this error message while some is ok.

Any other info you need me to provide?

regards,

kahwai

OttoGold
Active Contributor
0 Kudos

is your ADS running ok? must be a basis issue...

or maybe not? I have seen some weird errors caused by the good data coming to the wrong place or bad coming to the right place. I mean: is it possible that any of the values coming into the form could be malformed, blank (but never meant to be blank/initial) or something like that? What can you tell from the logs or ST22?

Regards Otto

Former Member
0 Kudos

Hi Otto,

I am having a similar issue:

The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_FP_API_INTERNAL", which was raised in the program
"SAPLFPGEN",
specifically in line 38 of the (include) program "LFPGENF01".
The cause of the exception was:

Unable to lock form ********

I was creating a Web Request in our CRM 7.0 System and I needed to update the Request Data Structure with a few new fields. After adding these fields and saving, I regenerated my Adobe Interactive Form to create the new fields, activated my form, checked my interface, and then tried to run my web request again. Now I am receiving the above error telling me that the form cannot be locked. Any ideas/suggestions of what might be the issue?

Thanks,

Chris

UPDATE:

I have figured out the problem. It wasn't the lock that was the problem, the first run of the program is accessing the table D010INC table doing a DELETE and is causing an extremely long runtime causing the program to timeout. I was just running the web request while that was still processing and that is why it was telling the form cannout be locked. The note Note 1232776 - Long runtimes for accesses to D010INC or D010TAB address the long runtime accesses for the D010INC table and is a BASIS issue.