span8
span4
span8
span4
Please note: This article applies only to FME Server 2012 and older.
To incorporate the log file into the data download results zip:
1.Open thefmeEngineConfig.txtfile which the first FME Engine is using i.e.\FMEServer\Server\fmeEngineConfig.txt.Modify the SUB_SECTION FILE_DOWNLOAD_SERVICE by inserting the following line of code,in my file it needed inserting into line 22:
POST_COMMAND !CONTINUE_WARN!cmd.exe /c copy "C:\Program Files\FMEServer\Logs\datadownload\!FME_AUTO_FILE_NAME_SIMPLE.log!" "!FME_AUTO_DIR_NAME!" \2.Here is the full section so you can see where it should be placed:
SUB_SECTION FILE_DOWNLOAD_SERVICE \FME_WORKING_DIR "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\fmedatadownloadresults" \FME_MAPPING_DIR "C:/Program Files/FMEServer/Server/repository" \FME_TRANSFORMATION_LOG_DIR "C:/Program Files/FMEServer/Logs/datadownload" \PRE_COMMAND mkdir "!FME_AUTO_DIR_NAME!" \POST_COMMAND cd !FME_AUTO_DIR_NAME!\POST_COMMAND !CONTINUE_WARN!cmd.exe /c copy "C:\Program Files\FMEServer\Logs\datadownload\!FME_AUTO_FILE_NAME_SIMPLE.log!""!FME_AUTO_DIR_NAME!" \POST_COMMAND !CONTINUE_NO_WARN!"C:/Program Files/FMEServer/Utilities/zip.exe"-rq "!FME_AUTO_FILE_NAME.zip!" * \POST_COMMAND !CONTINUE_NO_WARN!cd ..\POST_COMMAND !CONTINUE_NO_WARN!rmdir /S /Q "!FME_AUTO_DIR_NAME!" \SUCCESS_RESPONSE 0:Translation Successful|OutputLocation=!FME_AUTO_FILE_NAME.zip!|ResultPrefix=http:|ResultRootDir=//POMPOM:80/fmedatadownloadresults|NumFeaturesOutput=!FME_NUM_FEATURES_OUTPUT!|LogFileLocation=C:/Program Files/FMEServer/Logs/datadownload/!FME_AUTO_FILE_NAME_SIMPLE.log!\FAILURE_RESPONSE !FME_ERROR_NUMBER!:!FME_ERROR_MSG!
3.Repeat this process for the next \Server\fmeEngineConfig_n.txtfile.You will need to modify one file for each engine you are running.To check to see which Engines are using which configuration file check at the bottom of the \Server\processMonitorConfig.txt
Data Download Link Returning 404 Error
Data Distribution with Web Maps
Create specific directory structure in the Data Download ZIP file
FME Server Troubleshooting: Log Files
Data Download Service .ZIP Files Greater Than 10GB May Be Empty
Publish a Workspace to FME Server and Run It
Including additional files in the data download result zip file
© 2019 亚搏在线Safe Software Inc |法律