Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
I know from this question (https://knowledge.safe.com/questions/33872/define-sucessfailure-topics-when-publishing-worksp.html ) that there used to be a way to add success and failure topics to a workspace but does anyone know if there is a way to do this with FME Server 2018+. I can't really see how I could do it in the REST API
Server 2019. I try to submit a data streaming job via the rest api. This works partially now, as I get it running and finishing successfully but the published parameters don't come through. What I did was change the url fromhttps://<base url>/fmerest/v3/transformations/submit/<repository>/<workspace>.fmwtohttps://<base url>/fmeserver/streaming/fmedatastreaming/<repository>/<workspace>.fmwand kept the json body like I do when submitting via the job submitter. When I run it from the GUI in server I see the published parameters being added to the request as Form Data, but before I try to change the request to Form Data I would like to double check if the JSON way is not possible? Thanks for looking.
I have a requirment to delete a file if the workspace has failed and I need to revert the output file which I have written. I used python caller to remove by passing a file path as parameter, but the file is not removed from the directory, however the translation is showing as successful with 0 features written.
Hello, I did a processing where I classified the individual LAS files into "floors" and "buildings " and subsequently generated them into mosaics. Mosaics only contain values " 0 "= floors and building heights. The picture shows a mosaic.I would like to calculate the H / W index by dividing the average height of buildings by the area of cells with "0". How should I start? which transformer should I use?Thanks in advance,Kristina
Hi all, I am trying to access my Strava data specifically where I have ran/cycled for some data vis.I have added Strava as a web connection according to these instructions: https://hub.safe.com/publishers/gerhardatsafe/web-connections/strava While in the 'Managed Web Services' I have added in Client ID and Client Secret and testing the connection seems to be successful. I have also added it as a Web Connection/Service.When I run the HTTPCaller transformer with say https://www.strava.com/api/v3/athlete (or whatever else in http://developers.strava.com/docs/reference/) and put in authorization parameters into the Headers section: the translation log seems to indicated that the HTTP connection is unauthorized: I have been trying to figure out where I have gone wrong for hours - if someone could please point me in the right direction, it would be massively appreciated. @gerhardatsafe do you have any thoughts yourself? Cheers
I want to get and sort metadata from a CSW.I have tried using the HTTPCaller and sent this request: https://www.geonorge.no/geonetwork/srv/nor/csw-dataset with POST and BODY: <?xml version="1.0"?><csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" startPosition="1" maxRecords="15"> <csw:Query typeNames="gmd:MD_Metadata"> <!-- <csw:ElementSetName>brief</csw:ElementSetName> <csw:ElementSetName>summary</csw:ElementSetName> <csw:ElementSetName>full</csw:ElementSetName> --> <csw:Constraint version="1.1.0"> <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"/> </csw:Constraint> </csw:Query>
I am curious if it is possible to populate a field based on other feilds? Basically just how you would in arcmap via field calculator. Not sure how to make sense of the parameters in the PythonCaller transformer. And I'm not very experienced with python. Any help would be appreciated.
I´m trying to use api http-url as a data source and merge two APIs.The url is: https://alpha-nuukaopenapi.azurewebsites.net/api/v1.0/EnergyData/Monthly/ListByProperty?Customer=Helsinki&Record=PropertyCode&SearchString=PROPERTYCODE&ReportingGroup=Electricity&StartTime=01%2F01%2F2019&EndTime=12%2F31%2F2019 PROPERTYCODE changes and it is read for another data source / table. HTTPCaller I tried to make proper URL call with text editor: Any hints, why this is not working? Thanx!Please see the attachment:
12RAJSSUSSESSE SSURAJ CITYSTATEPOSTALCODEKARIMNAGAR TELANGANA505152WARANGALHYDTELANGANA505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 i want to result like Name of the tableTable_1Table_2no.of records in table39
Hello, I'm having a problem when trying to write records from an ESRI file geodatabase feature class to an ArcGIS Online hosted feature service. The error message in the log is as follows: ArcGIS Online Feature Service Writer: Encountered an unexpected error. The error code from the server was '504' and the message was: 'Your request has timed out.'. Details: '' Any ideas on how to resolve this issue? Thanks.
Hi,I'm trying to call an API endpoint using PythonCaller but this endpoint requires authentication. I made it work by first (in the init) connect to the web connection and get the token than send it to the def input and used the token in the header of my endpoint call.My question is: is there a way to get this token from one of my web connection set in the Tools->FME Options->Web Connections (or either from a published parameter configured with one of them)? The idea is to use the PythonCaller as a HTTPCaller which uses Authentication thank you
Hi, I'm trying to use a HTTPCaller with multiple features but when the API has no response (no content) with the OK code 204, HTTPCaller give me back a timeout. It is like its is expecting anything otherwise, HTTPCaller returns timeout. On the API endpoints with OK return (200) there is no problem, but when calling the API with no content as return, this problem happens. I could bypass this problem with a Decelerator with 1 second per feature (less than 1 sec same error occurs), but I don't thing this is the most appropriate way to do it so. Any Ideas?Thanks
When I make a GET request to /transformations/jobs/completed there are two objects returned that both include a 'status' element; the Job and the Result object. What are the differences between these two?Second, what status values can be returned and how are they defined?
Hello community,I'm trying to call the REST API in ajax from another application. In this call, I do a POST request to submit a workspace. The call works fine in Postman and I get a job id in return. However in the response headers, I only get the following parameters: Content-Length, Content-Type and Date. For the purpose of my application, I also need the Access-Control-Allow-Origin in the response headers.Any idea how I can make that happen?version used: FME server 19.1 over https (port 8443)Thanks in advance
Hey More of an fyi than a question. Over the past years I’ve had to do a lot of FME Server automation using the fme server rest api. I’ve created an python wrapper to help make fme server automation easier for me. Had this code kicking around for a while but recently found the time to sanitize/share it.The code for this can be found here:https://github.com/bcgov/dbc-pylibThere is some getting started docs here:https://github.com/bcgov/dbc-pylib/blob/master/docs/FMEServer.mdHoping it will be useful to someone, if so please use! If you are interested in contributing even better. If there are desired features / functionality let me know as well by posting to the issues on the github repo: https://github.com/bcgov/dbc-pylib/issuesCheersKevin
Hi FME Experts,I am trying to read/write from/to fgdb/ArcSDE from fme server 2019.2 64 bit and ArcGIS pro are installed (Standard License) but unfortunately it does not work, when I checked the log file, it is mentioned that the ArcGIS license does not advanced.Please advise
There are some postings on this topic but it does not work for me yet:I am trying to contact an external API via HTTP POST to get a token back. If I use Postman from the same computer everything is okay:The response from Postman is:{ "access_token": "<access_token>", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "<refresh_token>", "token_type": "bearer", "not-before-policy": 0, "session_state": "c25bf161-2dee-426c-9bdc-970836fe4f4f", "scope": "email profile" } Comment: Hostname, company, username, password, access_token and refresh_token are replaced by dummy text in this posting...This response ist correct! But when I try to do the same in FME 2019 I got errors:Multipart Upload 'password' is missing in this screenshot. Other values are replaced by dummy text... There are no parameters set
Hello, I'm trying to connect to the cloud with a HTTPCALLER. I received an URL, Username and password to connect to ODATA/MSPROJECTS (Office365). When I run the workspace I get the message: HTTPCaller(HTTPFactory): Received HTTP response header: 'HTTP/1.1 403 Forbidden' from 'https://XXX.sharepoint.com/sites/pwa/_api/Projectdata' How can I connect? do I need additional software? do I need to use an other transformer (ODATA?) Please help, thanks
Hello,I want to calculate slope between neighbor points. I want to use python caller to do something like take the first point (pointID is smallest) go to the next one , calculate the slope between the points and write it in a new attribute (_slope). Then go to the next point (so 2nd and 3rd) calculate slope and save the value.I am new with python in fme, so could you help me?
I just started to receive this error on FME Server 2019.2 that won't allow me to view the jobs. Here is the API response with the error below.{"message":"org.dom4j.DocumentException: Error on line 1 of document : An invalid XML character (Unicode: 0x7f) was found in the value of attribute &quot;value&quot; and element is &quot;NM_DIRECTIVE&quot;. Nested exception: An invalid XML character (Unicode: 0x7f) was found in the value of attribute &quot;value&quot; and element is &quot;NM_DIRECTIVE&quot;."} What can I do to diagnose what the issue is with the invalid character? Also, I have only noticed this issue with transformations/jobs/completed API call, as the others are working correctly.
I'm trying to read data from an API endpoint using a JSON reader. Unfortunately, I'm getting a http / ssl error. However, when I'm try to read data from the same API endpoint using a HTTP caller transformer, everything works fine. So, there is nothing wrong with the endpoint. Am I encountering an error in the JSON reader? I'm usinf FME Desktop 2019.1
Hi all, I'm trying to extract an URL from this website: https://www.acehardware.com/store-details/16798 <a target="_blank" rel="noopener" href="https://maps.google.com/maps?ll=46.859727,-122.845546&amp;z=12&amp;t=m&amp;hl=en-US&amp;gl=US&amp;mapclient=apiv3" title="Open this area in Google Maps (opens a new window)" style="position: static; overflow: visible; float: none; display: inline;"><div style="width: 66px; height: 26px; cursor: pointer;"><img alt="" src="https://maps.gstatic.com/mapfiles/api-3/images/google4.png" draggable="false" style="position: absolute; left: 0px; top: 0px; width: 66px; height: 26px; user-select: none; border: 0px; padding: 0px; margin: 0px;"></div></a> - I've tried the HTTPCaller but the specific URL is not showing in the output. - Also tried the HTMLExtractor (both href and div a), getting a lot of
Hi, I tried to find a way to change the ownership of an item in FME Server using REST API. There seems to be no possibility?
Hi, I'm trying to get some data from a hotel chain website: https://www.ihg.com/destinations/us/en/explore.html My HTTPCaller is throwing an error when I put in above url: "Failure when receiving data from the peer" Cheers, Ed
I am attempting to use the arcpy module in the python caller transformer in FME workbench 2019. I am using 64 bit FME 2019.1 build (19643), ArcGIS Desktop 10.6.1 with 64 bit background processing installed. I am wondering if there are any suggestions to getting my workbench to successfully access the arcpy module so I can use Esri GP tools inside my PythonCaller transformer. I have tried the following settings for preferred python interpreter and python home:when using this setting it appears that it defaults to FME Python 3.7, the following messages appear to show this in my translation log:0.0|INFORM|Loaded module 'PythonFactory' from file 'C:\Program Files\FME_2019.1.3.1\plugins/PythonFactory.dll'0.0|INFORM|FME API version of module 'PythonFactory' matches current internal version (3.8 20190621)0.0|INFORM|Using Python interpreter from `C:\Program Files\FME_2019.1.3.1\fmepython37\python37.dll' with PYTHONHOME `C:\Program Files\FME_2019.1.3.1\fmepython37'0.0|INFORM|Python version 3.7