Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error: The download failed

Dear All,

Unfortunately i found out an error message in my report log file " Error: The download failed". Till yesterday it was working fine but today the report was stuck with this error. Please any suggestions.

Error.PNG

Link: http://maps.googleapis.com/maps/api/geocode/xml?address=Italy,31050,Menastrie,Via+dell´+Artigiano+12...

Thanks in Advance.

5 Replies
migueldelval
Specialist
Specialist

Hi Varun,

Could you attach your script?

Regards

Miguel del Valle

Not applicable
Author

Hi Mguel,

Please find the script file in attachment.

Thanks

Varun K

elyM
Partner - Creator
Partner - Creator

Hi Varun,

could you attach qvw's log file ?

Maybe  From request is incorrect, some special characters not url encoded.

Regards,

Ely

Not applicable
Author

Hi Ely,

Please find the attached Log file.

Thanks in advance.

elyM
Partner - Creator
Partner - Creator

Hi Varun,

I confirm that is url encoding issue about your URL parameter address.

Base URL is ok

http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=

Before to pass adress to url you need to encode his QlikView variable address.

Define in Macro Module JScript language and define

function __JS_encodeURI (uri){

    return encodeURI(uri);

};

function __JS_encodeURIComponent (uri){

    return encodeURIComponent(uri)

};

into QlikView Script you can call your function replacing replace instruction

//-- COMMENT --let address = Replace('$(address_tmp)', '°', '');

let adress = __JS_encodeURIComponent(address_tmp);

Regards,

Ely Malki