Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
I try to post a message to MS Team by using HTTPCaller. I connected to Mocirasoft Graph successfully by using FME Web Connection. However, I have no idea how I can post a message to MS Team by using FME. Please find the log file attached when I used HTTPCaller. Thank you.
I'm getting an error with the HTTP Caller in my workbench. I'm calling a POST request on my dev website and keep getting the following error; "HTTPCaller (HTTPFactory): Received HTTP response header: 'HTTP/1.1 415 Unsupported Media Type' from 'https://xxxxxxx.com/dev/xxxxxxxxx/xxxxxxx?sample_id=J55-1-29&apitoken=xxxxxxxxx&sample_depth_base=1391.1&surface_latitude=50.68319&surface_longitude=-101.860471&location_name=test1&toc=99&lithostrat_group=NULL&formation=Winnipeg&member=NULL&sample_lithology=Shale%2Fmudstone&gts_period_old=Ordovician&s_c_ratio=NULL&o_c_ratio=NULL&h_c_ratio=NULL&inertinite=NULL&liptinite=NULL&vitrinite=NULL&s2=96.19&tmax=435&hydrogen_index=924&oxygen_index=16&production_index=0.01&vroe=0.8&ro=NULL&thermal_alteration_index=NULL&spore_colour_index=NULL'Β The string it is trying to pass through works successfully when pasted into a browse
Hi,I have ArcGIS desktop 10.2.2 (with background geoprocessing) and ArcGIS Pro 2.1.2 installed. I'm running FME 2018.0 , no admin rights. Β How do I call specifically the ArcGIS Pro Python 3.x (C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3) from the Python Caller?Β When running the Python Caller example here:https://knowledge.safe.com/articles/47216/using-arcpy-for-fme-feature-processing.html Β I see this message in the log:Using Python interpreter from `C:\\WINDOWS\\system32\\python27.dll' with PYTHONHOME `C:\\Python27\\ArcGISx6410.2'Python version 2.7 loaded successfullyΒ I don't quite understand the implications of changing the FME interpreter itself...does that limit the functionality of FME tools if I change the entire workbench to run from another version of Python? Incidentally when I've changed it in FME>options>translation>Python interpreter (from FME 2.7 to the ArcGIS Pro option) - it has no impact. Β In my head - what I want to do i
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?