Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
I am new to FME. I have lot of Arcpy code which I want to run on FMEI tried to follow this example https://knowledge.safe.com/articles/47216/using-arcpy-for-fme-feature-processing.html. But I am getting below errorI am currently using Arcgis Pro 2.4 and FME 2019.1Could any one please helpThis is the error I get :- The python interpreter I am using : Many Thanks,Divya
Hi,I'm trying to use a FME Server Subscription (SFTP) to send the excel spreadsheet to the server outside.The port 22 has been open for that sftp, the customer can see me connecting to their server, there is no file being transfered though.I have a simple workspace what is generting excel table and sending an email with that table as an attachement. That workspace is published on the FME Server, the process is scheduled to run once a week, I want to use that worspace to also upload that table to the sftp. I decided to create a topic Success_for_SFTP and us it for 'post to topic that topic on success' for the Job Submitter when I published that workscpace The table is written to: $(FME_SHAREDRESOURCE_DATA)/folder/table.xlsxThe SFTP Subscription screenshot below.I want the Subscription to take the file from the $(FME_SHAREDRESOURCE_DATA) and upload it to the /ftp/files on the customer serverThe workspace: The workspace runs succesfuly, it is sending an email, it is making
I am using the API to generate an inventory of our server FME workspaces for an upcoming migrationCan you return an SDE connection string that isn't a published parameter? Example call:http://stdcap-koaa-001/fmerest/v3/repositories/BASISDATA/items/KLIC.fmw/datasets/destinationResponse:[ { "format": "GEODATABASE_SDE", "name": "GEODATABASE_SDE_1", "location": "", "source": false, "featuretypes": [ { The location is "". For an Oracle Spatial connection:http://stdcap-koaa-001/fmerest/v3/repositories/BASISDATA/items/KLIC.fmw/datasets/source Response:[ { "format": "ORACLE_SPATIAL", "name": "ORACLE_SPATIAL_1", "location": "BI@PDB1", "source": true, "featuretypes": [ { Dgn and Excel readers/writers also have a filled location string.Am I missing something?Thanks,Annette
Having some trouble downloading the contents of a remote FTP directory, keep getting error message 'Remote file not found'. Is it possible to download an entire directory via FTP using the FTPCaller? Doesn't look like there's an option to download an entire folder.
I have a script that will turn off ArcFM auto updaters. However, the script needs to run once FME starts writing to the SDE geodatabase. Is there a way to set the PythonCaller Transformer to begin once FME starts writing to SDE?
I would love an example workspace if possible.
Hello, We were using fme server 2016. Now we moved to 2019. We tried it with FME REST API v 3 and it works great but my question is: Is FME 2019 compatible with FME REST API v2? Can I communicate wit hfme 2019 using rest v2? Thanks for help with that.
Just want to confirm when the Windows version of FME Desktop 2019.0 sends https connections from httpcaller, does it use the Windows Certificate Store or the CA Root Certificates from Mozilla? I have the impression that the Windows version is using the Windows Certificate Store. However, I saw the message "added 135 certificate(s) from CA file 'C:\\Program Files\\FME\\ssl/cacert.pem'" Thanks,
Hey! I've written this Python script that is comparing three diffrent path distances from a starting point and the three nearest target Points, and choosing the shortest one to be output. Does anyone have a clue if I can make it more efficient? Atm it takes a long time since it iterates through ca 82000*82000 features... class FeatureProcessor(object): def __init__(self): self.featureList = [] def input(self,feature): self.featureList.append(feature) def close(self): r = int(len(self.featureList)/3) for i in range(1, r+1): valueList = [] nearestList = [] for feature in self.featureList: j = int(feature.getAttribute('gid')) if j == i: nearestList.append(feature) for feature in nearestList: value = feature.getAttribute('Totalt_Avstånd') valueList.append(value) minValue = min(valu
Is there a way to detect whether or not the user has set their FME Server interface to Dark Mode or not? There doesn't seem to be an API call in 2019.0
I've test it in Build 19238 and 19578, all nodes at every level are missing children nodes. Like this:
As it says, is there any log file or something that will give me information what are older values of token for some particular user? I also need a time information of how long did old token last (from-to).We experienced restart of a token but we don't know why... We're working on FME Server 2017.1.
Hello, I'm using new version of fme (2019) and I'm testing REST API v3, I have fresh installation of fme server 2019. I tried documentation API and this is sample request: with tag set to linux but on the fme server job was submitted with tag: Default: What is the reason for that?
Is it possible to run an FME Workspace from within an ArcGIS 10.x Python Toolbox (.pyt)?I've got ArcGIS Desktop v10.6.1 installed, with 64-bit Background Geoprocessing installed and switched on. And I've got FME 2019.0.1 (64-bit) installed.I know how to run a workspace in Python, as explained here, and that works all fine in 64-bit.But when I try to embed some very simple FME Python code in an ArcGIS Python Toolbox, it crashes my ArcGIS! I guess it's something to do with ArcGIS being 32-bit by default that causes it, so maybe it cannot be done. But I'd still like to find out if anybody else has managed to crack this.This is what I do:In ArcGIS, right-click in a folder and add New > Python Toolbox. This creates a Toolbox.pyt file with a tool called 'Tool' in it.Right-click the Toolbox.pyt file, and select Edit, which opens the file in my IDEAdd the 3 usual lines to import fmeobjects at the top (see below in bold)Set "self.canRunInBackground = True", which ensures the tool runs in the
Hello Team, When i call following url from HTTPCaller getting error code:415 what could be the reason? Following is the url:-https://identity.trimble.com/token?username=XXXXXXXXX%40nisource.com&password=XXXXXXXX%21&grant_type=password&scope=openid&tenantDomain=trimble.com Thanks...Nagendra
We load in FME Server 2017 backup from FME Server 2014. Specified Email (IMAP) publications was validated and it was ok. After 7 days FME Server stop getting mails and we have to push validate again. Is there any configuration for this or how to make it work without stoping?
Hello Team,Can somebody help me to call following curl command through HTTPCaller?curl --user <consumer_key>:<consumer_secret> -X POST https://identity.trimble.com/token -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=password&username=<user_email>&password=<password>&scope=openid&tenantDomain=trimble.comIf possible can provide one example, Following command we are going to use to generate Token Id. Thanks..
Hello Team,Can we generate token id from FME to connect trible connect?Present we are generating token id manually and passing it as published parameter. But users don't know about the token to execute the workbench. Can we make generation process withing workbench?Thanks..Nagendra
Can we input the HTTPCaller output as reader dataset in the same workspace. Using HTTPCaller we are dowloding a file from trimble connect, The downloaded .jxl file should be used as input dataset for reader. Could somebody provide your views to resolve this issue.
I want to create a repository in FME Server 2015 where anyone can run the workspaces.
When using a HTTPCaller with a Post request and a Form Data input the @ character in this input will make FME reject the feature.It will give the following error message:"This FME edition does not recognize the `' function. Please ensure that the current platform supports this function, the function name is spelled correctly, and that you have installed all required plug-ins" How do I escape the @ in this mail address so fme will post the data? The error message is not helping here because there is no call to a `' function.
Hello,I've attempted to connect to a few different APIs via an HTTPCaller using GET, in order to lookup UK postcodes based on a list of X & Y coordinates from a CSV file. The URLs being run through the workspace are all valid (I've clicked on them via the translation log, and they appear in internet explorer), but regardless of which API I try to connect to, I always get a 'Couldn't resolve host name' error returned. The APIs I'm connecting to require no authentication, so I that's not the issue. Is it possible the issue relate to restrictions with my corporate network?
I have shapes stored as GEOGRAPHY column in a SQL Server database table. I need to convert these into an ESRI .SHP file. I can do this using the UI but I need API that I can call from C#. Does C# API exist? if yes, is there any sample code?
Hello Team,Following is the workbench i am using to download a file from trimble connect. And I am getting an error while executing it. could somebody help me to get resolved.Error Message; When we are calling a file from Trimble connect is there any credentials or Token Ids to be generated? If yes than in the parameters where we need to update those details in HTTPCaller. Thanks..Nagendra
I want to collect the _response_body of a certain website ( for example https://www.odnzkg.nl/mozard/!suite86.scherm0325?mPag=636 ). Normally the HTTPcaller or HTML tabel in a FeatureReader does the trick. However, by trying this on the url posted above it returns HTTPCaller(HTTPFactory): HTTP/FTP transfer error: 'Number of redirects hit maximum amount'HTTPCaller(HTTPFactory): Please ensure that your network connection is properly set upHTTPCaller(HTTPFactory): No proxy settings have been entered. If you require a proxy to access external URLs, please ensure the appropriate information has been entered I already tried it at different networks to check if it is a proxy error. When I try to retrieve the HTML code using a PythonCaller it returns the required response_body import fmeimport fmeobjectsimport requests as req# 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