Solved

DWG-file name from Publiced Parameter don't work when using the Data Download Service....

  • 6 August 2021
  • 6 replies
  • 4 views

Badge +1

Hi I'm creating a DWG-file witch gets it name from the published parameter outfile.

fmeThis works fine when I call the workbench directly from the desktop. But if I upload the workbench to the FME-server and then using the Data Download Service I get the default name instead of the supplied parameter.

Here is an example of a http-request to the fme-server:

http://localhost/fmedatadownload/SPIV/spiv2dwg.fmw?export_spiv_data_id=99&outfile=newname.dwg

 

I first thought I somehow failed to supply a value for the outfile-parameter, but since the other parameter is working fine, I don't think that could be the problem...

 

Regards

Nils

P.S I'm using FME Workbench and server 19.1 resp 19.0

icon

Best answer by virtualcitymatt 6 August 2021, 10:02

View original

6 replies

Userlevel 4
Badge +26

The output parameter is ignored by the DataDownload service, you will need to use a dataset fanout in the writer to set the filename, otherwise I think it will just use the default.

Badge +1

The output parameter is ignored by the DataDownload service, you will need to use a dataset fanout in the writer to set the filename, otherwise I think it will just use the default.

Hi, thanks for quick reply! The fanout solution works like a charm for DWG-files. But when I try to do the same for DGN-files I ran into problems. [cid:image003.jpg@01D78AC8.1BAE50A0] When I run from Desktop workbench everything works fine. But when I’m using the Data Download Service I don’t get a file back. This is the json-output from the call: { "serviceResponse": { "jobID": 492072, "statusInfo": { "mode": "sync", "status": "success" }, "fmeTransformationResult": { "fmeEngineResponse": { "outputLocation": "D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012.zip", "resultRootDir": "/fmedatadownload/results", "statusNumber": "0", "logFileName": "job_492072.log", "numFeaturesOutput": "182", "statusMessage": "Translation Successful", "notificationLocation": "D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012_nw" }, "fmeServerResponse": { "request": "\\"SPIV/spiv2dwg/spiv2dwg.fmw\\" -XML_PARAMETER {\\"remote-addr\\":\\"10.79.2.187\\",\\"host\\":\\"sp100spanfme.tcad.telia.se\\",\\"user-agent\\":\\"PostmanRuntime/7.28.3\\"}119testfil_dgn55.dgnhttp://sp100spanfme.tcad.telia.se/fmedatadownload/SPIV/spiv2dwg.fmw?export_spiv_data_id=119&outfile=testfil_dgn55.dgn&opt_responseformat=jsonhttp://sp100spanfme.tcad.telia.se/fmedatadownload/SPIV/spiv2dwg.fmw?export_spiv_data_id=119&outfile=testfil_dgn55.dgn&opt_responseformat=json%3c/PUBLISHED_PARAMETER%3e%3cPUBLISHED_PARAMETER> name=\\"FME_SERVER_REQUEST_PARAMETERS\\">{\\"opt_responseformat\\":\\"json\\",\\"outfile\\":\\"testfil_dgn55.dgn\\",\\"export_spiv_data_id\\":\\"119\\"} --FME_SECURITY_USER \\"admin\\" --FME_SECURITY_ROLES \\"token:admin.Webfunctions SPIV_POC\\" --FME_SERVER_HOST \\"localhost\\" --FME_SERVER_PORT \\"7071\\" --FME_SERVER_WEB_URL \\"http://SP100SPANFME:80\\<http://SP100SPANFME:80/>" -ACAD_1_DATASET{*} \\"!FME_AUTO_DIR_NAME!.zip\\\\ACAD_1/.\\"", "jobStatus": "SUCCESS", "timeRequested": "Fri-06-Aug-2021 01:16:22 PM", "requestKeyword": "FILE_DOWNLOAD_SERVICE", "description": "", "timeStarted": "2021-08-06 01:16:22", "requesterHost": "131.115.86.66", "priority": "-1", "result": "0:Translation Successful|NotificationLocation=D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012_nw|OutputLocation=D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012.zip|ResultRootDir=/fmedatadownload/results|NumFeaturesOutput=182|LogFileName=job_492072.log", "requesterResultPort": "64946", "resultSuccess": "true", "serviceSuccess": "true", "id": "492072", "timeFinished": "2021-08-06 01:16:27", "serviceMsg": "" } } } } The translation seems to be ok and there is also a reference to a zip-file… but this zip-file doesn’t exists on the server. When I look in the FME Server log I see these error messages: [cid:image004.jpg@01D78AC8.1BAE50A0] I don’t really understand what this means, maybe you do 😊 Regards Nils
Userlevel 4
Badge +26
Hi, thanks for quick reply! The fanout solution works like a charm for DWG-files. But when I try to do the same for DGN-files I ran into problems. [cid:image003.jpg@01D78AC8.1BAE50A0] When I run from Desktop workbench everything works fine. But when I’m using the Data Download Service I don’t get a file back. This is the json-output from the call: { "serviceResponse": { "jobID": 492072, "statusInfo": { "mode": "sync", "status": "success" }, "fmeTransformationResult": { "fmeEngineResponse": { "outputLocation": "D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012.zip", "resultRootDir": "/fmedatadownload/results", "statusNumber": "0", "logFileName": "job_492072.log", "numFeaturesOutput": "182", "statusMessage": "Translation Successful", "notificationLocation": "D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012_nw" }, "fmeServerResponse": { "request": "\\"SPIV/spiv2dwg/spiv2dwg.fmw\\" -XML_PARAMETER {\\"remote-addr\\":\\"10.79.2.187\\",\\"host\\":\\"sp100spanfme.tcad.telia.se\\",\\"user-agent\\":\\"PostmanRuntime/7.28.3\\"}119testfil_dgn55.dgnhttp://sp100spanfme.tcad.telia.se/fmedatadownload/SPIV/spiv2dwg.fmw?export_spiv_data_id=119&outfile=testfil_dgn55.dgn&opt_responseformat=jsonhttp://sp100spanfme.tcad.telia.se/fmedatadownload/SPIV/spiv2dwg.fmw?export_spiv_data_id=119&outfile=testfil_dgn55.dgn&opt_responseformat=json%3c/PUBLISHED_PARAMETER%3e%3cPUBLISHED_PARAMETER> name=\\"FME_SERVER_REQUEST_PARAMETERS\\">{\\"opt_responseformat\\":\\"json\\",\\"outfile\\":\\"testfil_dgn55.dgn\\",\\"export_spiv_data_id\\":\\"119\\"} --FME_SECURITY_USER \\"admin\\" --FME_SECURITY_ROLES \\"token:admin.Webfunctions SPIV_POC\\" --FME_SERVER_HOST \\"localhost\\" --FME_SERVER_PORT \\"7071\\" --FME_SERVER_WEB_URL \\"http://SP100SPANFME:80\\<http://SP100SPANFME:80/>" -ACAD_1_DATASET{*} \\"!FME_AUTO_DIR_NAME!.zip\\\\ACAD_1/.\\"", "jobStatus": "SUCCESS", "timeRequested": "Fri-06-Aug-2021 01:16:22 PM", "requestKeyword": "FILE_DOWNLOAD_SERVICE", "description": "", "timeStarted": "2021-08-06 01:16:22", "requesterHost": "131.115.86.66", "priority": "-1", "result": "0:Translation Successful|NotificationLocation=D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012_nw|OutputLocation=D:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_342C652D_1628248582587_17012.zip|ResultRootDir=/fmedatadownload/results|NumFeaturesOutput=182|LogFileName=job_492072.log", "requesterResultPort": "64946", "resultSuccess": "true", "serviceSuccess": "true", "id": "492072", "timeFinished": "2021-08-06 01:16:27", "serviceMsg": "" } } } } The translation seems to be ok and there is also a reference to a zip-file… but this zip-file doesn’t exists on the server. When I look in the FME Server log I see these error messages: [cid:image004.jpg@01D78AC8.1BAE50A0] I don’t really understand what this means, maybe you do 😊 Regards Nils

Hmm, I can't see the images coming through. Can you please try and upload them again?

Badge +1

ok, here comes the pictures in the same order as they where missing in my latest mail.

Picture 1.

picture1Picture 2.

picture2 

Regards

Nils

Userlevel 4
Badge +26

ok, here comes the pictures in the same order as they where missing in my latest mail.

Picture 1.

picture1Picture 2.

picture2 

Regards

Nils

OK you can ignore those BADNEWS lines, they are part of the debug logging (you can turn off debug logging in the FME Desktop settings and republish.

 

One reason that the dgn file isn't getting included in the data download could be because the writer wasn't added when publishing? could that be possible?

 

Try publishing the workspace again and modifying the data download settings.

Badge +1

Oh, yes, now it works :-) I was using the republishing button all the time today even after that I added the DGN-writer. A normal publish and modifying the data download settings as you suggested solved the problem.

Thank you very much for your time and help.

 

Regards

Nils

Reply