Skip to main content

Hello,

we use an Uniface service for the communication with MS Word.

This is the commandline to open a document:

$hv_DOCUMENTS$->OPEN($hv_DOCUMENT$,sv_WORD_DOC_PATH,bv_CONFIRMCONVERSION,bv_READONLY,bv_ADDTORECENTFILES,-,-,-,-,-,-,-,-,-,-,-,-)

If we use this service into our application in a modal form or whatever it works very well.

But...

we wand to use the same function over urouter-userver into our rest-api.

In this case we had this error meassage:

ICCDRV-COM-ERR Error with ICC system occurred, Unable to convert data to UNIFACE type UNIFACE-type(16)?, parameter 1

$procerror:

[ERROR] MSOWORDBSV LP_DOCUMENTS_OPEN: Word_Fault -1127 
 ERROR=-1127MNEM=<UPROCERR_DATATYPE>DESCRIPTION=Data type not validCOMPONENT=MSOWORDBSVPROCNAME=LP_DOCUMENTS_OPENTRIGGER=OPERLINE=13


Any idea what happend?

Thanks a lot

greeting Dirk

Hello,

we use an Uniface service for the communication with MS Word.

This is the commandline to open a document:

$hv_DOCUMENTS$->OPEN($hv_DOCUMENT$,sv_WORD_DOC_PATH,bv_CONFIRMCONVERSION,bv_READONLY,bv_ADDTORECENTFILES,-,-,-,-,-,-,-,-,-,-,-,-)

If we use this service into our application in a modal form or whatever it works very well.

But...

we wand to use the same function over urouter-userver into our rest-api.

In this case we had this error meassage:

ICCDRV-COM-ERR Error with ICC system occurred, Unable to convert data to UNIFACE type UNIFACE-type(16)?, parameter 1

$procerror:

[ERROR] MSOWORDBSV LP_DOCUMENTS_OPEN: Word_Fault -1127 
 ERROR=-1127MNEM=<UPROCERR_DATATYPE>DESCRIPTION=Data type not validCOMPONENT=MSOWORDBSVPROCNAME=LP_DOCUMENTS_OPENTRIGGER=OPERLINE=13


Any idea what happend?

Thanks a lot

greeting Dirk

Hi Dirk

Does $hv_DOCUMENT$ do have the right signature?
(should be, as this work in a classic environment, but ...)

Let's try it with an procedure local variable like v_ANY by a type of "any"

$hv_DOCUMENTS$->OPEN(v_ANY,sv_WORD_DOC_PATH,bv_CONFIRMCONVERSION,bv_READONLY,bv_ADDTORECENTFILES,-,-,-,-,-,-,-,-,-,-,-,-)

Just two ideas, not knowing if they are helping in any kind :-)
Ingo