Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FetchVersion() Error

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hi All,

Recently i found an error in executing FetchVersion()
-> if (doc.FetchVersion(volumeID, dataID, versionNum, objectFullpath) != 0) {...}

whenever my filename contains :

1) \
2) /
3) :
4) *
5) ?
6) "
7) <
8) >
9) |

The errors I got are:

Exception in MainController.dumpVersionToDisk() :: dataID : 775444 :: Could not create file: D:\\S_BATCH_APP\\e-registry\\out\\1 karen/ china.odt
com.opentext.api.LLIOException: Could not create file: D:\\S_BATCH_APP\\e-registry\\out\\1 karen/ china.odt
at com.opentext.api.LLFileUtils.streamWriter(Unknown Source)
at com.opentext.api.LLConnect.receiveFileDownload(Unknown Source)
at com.opentext.api.LLConnect.executeTraditional(Unknown Source)
at com.opentext.api.LLConnect.execute(Unknown Source)
at com.opentext.api.LAPI_DOCUMENTS.FetchVersion(Unknown Source)
at MainController.dumpVersionToDisk(MainController.java:3766)
at MainController.handleFiling_F(MainController.java:2723)
at MainController.startProcessing(MainController.java:1346)
at RequestTableHandler.selectRequest_R(RequestTableHandler.java:186)
at PDFApp.main(PDFApp.java:36)
+++ Start of session errors +++
Status Code: 0
Api Error:
Error Message:
Status Message:
+++ End of session errors +++


Hope anyone who encountered this before or has any idea about this, can share with me on this forum.

many thanks in advance =)
smallredville
 
Hi Greg,

Thanks for the reply. Appreciate it very much.

Just to check with you, since this time round, the filename contains characters like :

1) \
2) /
3) :
4) *
5) ?
6) "
7) <
8) >
9) |

not the SQL keywords like "update, insert, etc" anymore
So is answering the issue?

many thanks in advance =)
smallredville
 
This happens intermittently.

Sometimes no issue with FetchVersion(executed successfully) for filename "data\test.odt" (once downloaded it will become "datatest.odt" -> as Windows OS does not allow \)

But sometimes, it will give the error :

com.opentext.api.LLIOException: Could not create file: D:\\S_BATCH_APP\\e-registry\\out\\data\test.odt
at com.opentext.api.LLFileUtils.streamWriter(Unknown Source)
at com.opentext.api.LLConnect.receiveFileDownload(Unknown Source)
at com.opentext.api.LLConnect.executeTraditional(Unknown Source)
at com.opentext.api.LLConnect.execute(Unknown Source)
at com.opentext.api.LAPI_DOCUMENTS.FetchVersion(Unknown Source)
at MainController.dumpVersionToDisk(MainController.java:3766)
at MainController.handleFiling_F(MainController.java:2723)
at MainController.startProcessing(MainController.java:1346)
at RequestTableHandler.selectRequest_R(RequestTableHandler.java:186)
at PDFApp.main(PDFApp.java:36)
 
You cannot in windows create a file containing those characters
1) \
2) /
3) :
4) *
5) ?
6) "
7) <
8) >
9) |

In GUI livelink it invokes a routine converting that to underscores.In lapi if it does not do that by defauly you have to write a routine to do it.All FectcVersion does is take the file in livelink filestore and give it to you at the path that you specify so it had better obey the rules of the OS.I have no time to test this whether lapi does this for you but I rememebr having to account for that a long time back

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008
 
Thanks Appnair and Greg for the feedbacks.

Appreciate that very much =)

smallredville
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top