Help me, I have problem with "Force user download file

The function returns the following error:

NWW0011 ERX error 00000000 occurred.

Severity = Success
Message:
Partner cancelled the conversation.

:?:

Could you elaborate more on your issue - it helps to describe the platforms and versions of the products you are working with.

I’m assuming from the message that you are using Natural Web interface. Is the error message seen in a client browser? Or is it being reported on the mainframe side?

“Partner cancelled the conversation” sounds like an EntireX Broker error that indicates that the partner (server? client?) specifically terminated the exchange (conversation was closed with a “cancel” option). In EntireX applications, this is an application signal that the transaction failed (e.g. due to invalid data or other business issues) and the partner (client) should react accordingly (back out any associated work on the partner’s side and/or report the transaction failure. As such, it is not an “error”, but a normal response to an application/business condition.

Take several references and this one is the result (The parameters fit)

For the community:


/*                                                 
/* RUTINA DE: Force file download                  
/* POR  : ANGEL MENDOZA O - SOFTWARE AG VENEZUELA  
/* FECHA: 10/10/2008                               
/*                                                 
/*                                                 
DEFINE DATA
PARAMETER USING W3PARM
LOCAL USING W3CONST
LOCAL USING W3PINFO
LOCAL
1 W3VALUE        (A) DYNAMIC
1 #SOURCE        (A) DYNAMIC
1 #value         (A) DYNAMIC
1 #FILE-EXTENSION (A) DYNAMIC
1 #MIME-TYPE      (A) DYNAMIC
1 #CONTENT      (A) DYNAMIC

/*1
END-DEFINE
* --- ERROR HANDLING ---
* ON ERROR
*   PERFORM W3ERROR ##W3ERROR
*   PERFORM W3END ##RPC
*   ESCAPE ROUTINE
* END-ERROR
*
* --- INITIALIZE Web Interface ---
PERFORM W3INIT ##RPC
*
* --- SET TYPE OF RETURN-PAGE to Word Document ---
/*PERFORM W3CONTENT-TYPE 'application/octet-stream'
PERFORM W3CONTENT-TYPE 'text/plain'
*
#MIME-TYPE := 'text/plain'
* --- WRITE THE HEAD OF THE DOCUMENT ---
PERFORM W3HTTP-HEADER 'headerName' 'headerValue'
OPTIONS TQMARK=OFF
#SOURCE := 'myPath/myFile.txt'
COMPRESS  'attachment; filename="' #SOURCE '"'
  INTO #VALUE LEAVING NO
PERFORM W3HTTP-HEADER 'Content-Disposition' #VALUE
/*
PERFORM W3HTTP-HEADER 'Cache-Control' 'public'
PERFORM W3HTTP-HEADER 'Expires'       '0'
PERFORM W3HTTP-HEADER 'Pragma'        'public'
/*
/*#FILE-EXTENSION := 'c:\sa002x.txt'



/*PERFORM W3MIME-TYPE #MIME-TYPE #FILE-EXTENSION

DEFINE WORK FILE 12 'myPath/myFile.txt' TYPE "UNFORMATTED" ATTRIBUTES "KEEP,NOAPPEND,NOBOM"
READ WORK FILE 12 #CONTENT
END-WORK
CLOSE WORK 12
PERFORM W3BINARY #CONTENT

/*

*
* --- END Web Interface ---
PERFORM W3END ##RPC
*
END