Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
Hello the FME support team,We have an FME server and I would like to call a job and pass some parameters to that and get a response with some other parameters. Something common in Rest API/WSDL.I have tried different ways, data streaming and data downloader. One of them send me a file as a response which I need to download and read and the other send me the job ID which none of them is not the response that I expect. I expect a response that I can get without downloading a file. The same way that we send some parameter to the API (e.g published parameter in the body tag from here https://playground.fmeserver.com/csharp-request/ as I am using .Net )Many thanksMohsen
My case is similar with this case ‘’ Deleting files from FTP - no errors in WorkSpace but files not deleted‘’ but a suggested solution didn’t work for me.I have problem with FTPCaller when I try to delete oldest files on an FTP server. The URL is the Full path and point to the specified files (remote file). See the transformer setting parameters screen shoot bellow.But after a run of the workbench, the translation log on FME show that these files has been deleted and everything seems good, as you can see bellow (URLs paths here are schematized based on my real data URLs configuration, Sorry, Confidentiality!!!!) , but the files are not physically deleted on my FTP server.The same user name works well when I manually delete the file using Filezilla and WinSCPI have tried various parameters setting, no solution fund yet. Translation Log (extract)12:32:41| 5.4| 0.0|INFORM|FTPCaller_OldFilesDeleter(FTPFactory): FTP: Deleted file 'https://myftpsite/_TestForDataFolders/ProductFolder/Pro
Hello the support team.I am planning to call a FME workbench on our FME server and get the response back. The request will be passed to the FME server from a web application which uses .Net. In the meanwhile, it is not clear how the processing time is handled at the client side. If the client pass a job to the FME server and getting the response takes 10 min, how this waiting time should be handled? What kind of parameters (response) from FME server tell the developer about the result? Is there any callback from the server or any other acknowledgment/timing/triggering mechanism?Many thanksMohsen
Is it possible to turn off REST API for specify user, but keep all functionality of user Web App Interface?
Hello,I am trying to add a background map in FME Data Inspector. I am using a WMS server which returns an XML having a following structure:<WMT_MS_Capabilities version="1.1.1" updateSequence="0"><Service></Service><Capability><Request></Request><Exception></Exception><Layer></Layer><Layer></Layer></Capability></WMT_MS_Capabilities>We have two <Layer> sections. It is not visible here, but they contain <SRS> tags and a set of nested <Layer> tags, which are used to populate the Layer List in WMS Parameters. It seems however, that the Layer List is missing nested layers from the second <Layer> section, only the ones from the first section are loaded. Could you please make sure that complete set of layers is loaded from a WMS server?Best regards
I am trying to collect Fees & Taxes for all airport locations from https://www.avis.com/en/home which requires getting through two pages.I am new to web scraping. The first page requires pick up location, pick up date and drop off date. For starters, is there a way to submit this form and get to the next page using FME?I have been trying to use HTTPCaller and looked at following: https://knowledge.safe.com/questions/42386/how-to-get-information-from-website.htmlbut did not have any luck. Thanks,
I have been trying to get the FTPCaller transformer to upload data to a sftp site. I'm afraid everything ends up in the <Rejected> port and I get the following error "HTTP/FTP transfer error: 'Error in the SSH layer'". Any thoughts on what I can do to fix this? I'm able to upload data without issue using FileZilla and it does appear that I'm connecting to the sftp server correctly. Any support would be much appreciated!
I'm using the FTPCaller to try and delete files on an FTP server. The translation log says "FTP: Deleted file 'ftp://<URL REDACTED>', total time: '0.281 seconds'" but when I refresh the directory in my FTP client, the file is still there.The FTP client shows dfrw permissions for the file and I can delete it in the FTP client.I've tried using upper and lower case versions of the file name with the same result.Any ideas?
Hello guys,I have an FTP that has a folder and inside it several subfolders. I've been able to list the folder through FTPCaller, but I'm not able to access and view the subfolders to identify the files I want to delete. How can I do this?
"FME Fails to check overlapped hatches when transform them from AutoCad to ArcMap."FME transform overlapped hatches within the same layer from Autocad to ArcMap with no notification of double hatches. And this leads to defect in data when uploading them to our system.What do you think about this?Is there anyway to check double hatches in Autocad when Transforming?Thanks!Alaa
I am reading and writing to an ESRI SDE database table. my workspace reads one feature class then compares it to another SQL table with possible merges from three different attributes that are tested and merged one at a time. It seems to be running fine but is just taking a long time. Not sure how or iff it can be sped up.
Is it possible to download (and upload) a complete folder (including all subfolders and files) from a FTP-server.
FME 2018.0 build 18284In the object returned from the FME.getSession function, the value of "session" becomes user name who logged in the server. Is it intentional?App:<!DOCTYPE html><html><head><title>FME Server Session ID</title></head><body onload="onBodyLoad();"><script type="text/javascript" src="http://api.fmeserver.com/js/v1.1/FMEServer.js"></script><script type="text/javascript">function onBodyLoad() { var host = 'http://*************.com'; var token = '****************************************'; var repository = 'Tests'; // example var workspace = 'fme-parameters.fmw'; // example FMEServer.init({server: host, token: token}); FMEServer.getSession(repository, workspace, function (obj) { alert(JSON.stringify(obj)); });}</script></body></html>Returned JSON (formatted): "session" = "superuser" (user name){ "serviceResponse":{ "statusInfo":{ "status":"success
I'm getting the following error when trying to use ESRI World_Street_Map in Inspector as the background map. Lots of workers retrieving tiles and then a RegExp error?Worker 15400 > |INFORM|ArcGIS Online Map Service Reader: Retrieved tile [8, 155, 227] from https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/8/155/227?f=jsonWorker 15400 > |INFORM|ArcGIS Online Map Service Reader: Retrieved tile [8, 156, 228] from https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/8/156/228?f=jsonWorker 15400 > |INFORM|ArcGIS Online Map Service Reader: Retrieved tile [8, 157, 229] from https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/8/157/229?f=jsonWorker 15400 > |INFORM|ArcGIS Online Map Service Reader: Retrieved tile [8, 156, 227] from https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/8/156/227?f=jsonWorker 15400 > |ERROR |Python Exception <PyJsExc
Has anyone had success with triggering a workbench on server using SOAP? We are replicating an Oracle database using Informatica Power Exchange. For any spatial table, Power Exchange is going to send parameters to FME server to do the replication. I know you can do this with REST, but from the Informatica side it seems easier to do with SOAP, so I was curious if anyone had any luck.
Anyone else have this issue when updating a File GDB? I am updating (not writing any new features) 4 string fields in a line feature class (in a feature dataset). I cant even find a description of this error anywhere.
I’m using FME Server 2017.1.1.1 and REST API to create a repository and publish workspace into it. This is fairly straightforward. Once done, I’d like to share that repository with other users already existing on the server. Is there a way to do it via REST API? I wasn’t able to find it in API documentation.
When I try to run a pythoncaller within FME, every time I hit run, it generates an error, where it inserts a single quote (') at the first line of code. the quote does not exist. please help,screenshot included below of the error:and here is the script: (clearly no single quote existing in it)import fmeimport fmeimport fmeobjectsimport arcpyimport osimport sys# Template Function interface:# When using this function, make sure its name is set as the value of# the 'Class or Function to Process Features' transformer parameterdef processFeature(feature): logger = fmeobjects.FMELogFile() logger.logMessageString("It's lo-og, lo-og. It's big, it's heavy, it's wood!")
Good morning!I have a workspace that creates a KML and a zip with SHAPE Files. I'm going to upload it to FME Server so the user can download those file easily.Before doing anything I have checked the API documentation. The respone from a job looks like this:result {id (integer): Unique identifier for this job,numFeaturesOutput (integer, optional),priority (integer, optional),requesterHost (string, optional),requesterResultPort (integer, optional),resultDatasetDownloadUrl (string, optional),status (string, optional) = ['SUBMITTED', 'QUEUED', 'ABORTED', 'SUCCESS', 'FME_FAILURE', 'JOB_FAILURE' or 'PULLED']: Job success, failure, or other status,statusMessage (string, optional),timeFinished (string, optional),timeRequested (string, optional),timeStarted (string, optional)}The "resultDatasetDownloadUrl" is not an array, so that makes me think the Server will create just one URL. How does FME Server choose between my KML or ZIP file with SHAPES?Is there a way to force FME Server to create tw
Hi there,Is there an FME tool that can output all the file path locations for layers that are saved in an ArcMap MXD file? If so, what is the tool called?Thanks!
When running a workspace on FME Server, you get a summary as to whether the workspace completed successfully and how many features were written. However not all workspaces end with a writer, so this information is not always valuable/relevant. You then have to browse through the log details to inspect whether you got the desired results.A perfect scenario for when this happens is when you have workspaces that call REST APIs. I would like a way to return the response or error from a workspace. Regardless of the response, FME Server reports that the workspace completed successfully, but that doesn't mean I got the desired result. For example all is good if I get a 200 back, but if I get a 400/403/404 etc., then I would want to see that clearly without having to go through the logs. Is there a way to customize this summary? It would be great if one could easily define the attributes etc. in the workspace that you want to be visible in the summary screen. Thanks.
On FME Server 2017 Rest API V3, the header token based authentication always fails. I am setting the header based on this documentation: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.htmlFor example:curl -X GET -H "Content-type: application/json" -H "Accept: application/json" \-H "Authorization: fmetoken token=abc123456789" \'http://myfmeserver/fmedatastreaming/metering/meterping.fmw?meterid=123456' receives the following error: The request has not been applied because it lacks valid authentication credentials for the target resource.But, using the token in a query param works:curl -X GET -H "Content-type: application/json" -H "Accept: application/json" \'http://myfmeserver/fmedatastreaming/metering/meterping.fmw?meterid=123456&token;=abc123456789' Also basic auth with an Authorization header works:curl -X GET -H "Content-type: application/json" -H "Accept: application/json" \-H "Authorization: Basic mybase64digest=" \'http://myfmeserver/fmedatastreaming/metering/me
If this is an answered question, please excuse me and point me in the right direction.I'm working on a web-based system that leverages FME server to run serveral tasks and provides the result to the user.By programatically building parameters and calling the FME Server data download endpoint at$"{repository.Url}/fmedatadownload/{repository.RepositoryName}/{analysis.WorkspaceId}";and setting the parameter opt_servicemode to sync I get a response on the form:{ "serviceResponse":{ "jobID":10261, "statusInfo":{ "mode":"sync", "status":"success" }, "fmeTransformationResult":{ "fmeEngineResponse":{ "outputLocation":"C:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\resources\\\\system\\\\temp\\\\engineresults\\\\FME_176D3A2A_1504696983768_3368.zip", "resultRootDir":"/fmedatadownload/results", "statusNumber":"0", "logFileName":"job_10261.log", "downloadUrl":"http://server/fmedatado
I have an issue with running a SQL Statements which should be executed Before Translation of ESRI GDB Reader. SQL statement looks like like following:FME_SQL_DELIMITER ; DELETE FROM UTARC.FCL_FP_GEOD_ALTI_PT_EVW WHERE AUTOMODE = 1 AND OFFSET = $(OFFSET);...where OFFSET is a published parameter - integer with default value of 50.Error message returned is ORA-00911 - Invalid Character.I tried also to set '$(OFFSET)' with apostrophes as string but no difference.If i execute FME_SQL_DELIMITER ; DELETE FROM UTARC.FCL_FP_GEOD_ALTI_PT_EVW WHERE AUTOMODE = 1 AND OFFSET = 50;workbench is successfully finished.I imagine I am missing some point how I should reference published parameters in SQL script. Does somebody have idea what can be the problem?Thanks in advance for any suggestion.Dušan
Hi, I am trying to pull the data form an API that first need to get the JESSIONID by using the login server (post request like this https://url/api/login?email=MYUSERNAME&password;=MYPASSWORD). Then the JESSIONID cookie value is session ID that need to be included in header as a value of COOKIE in further request to obtain the data (for example https://url/api/v1?objectType=assets&action;=load&accountFilter;=MYACCOUNTID).Any idea to achieve this will be highly appreciated.Himal