Creating and organizing workspaces. How to use Workbench.
Recently active
If you were experienced in FME and had very basic python knowledge, what sorts of things would you like to see in a hands-on 'Using Python in FME' workshop?I'm particularly looking for suggestions for practical exercises.
Hello, I have in front a reader SpatiaLite composed of different layers (hydrographic basins, communal limits, regional limits ... "). I want to propose to the end user a list of extraction options (list of watersheds, list of municipalities, list of regions ...) according to a type of previously selected right-of-way ("watersheds", " regions ", ...).I arrive with a published parameter applied on a transform tester to select the type of footprint stored in the format attribute "fme_feature_type" and store it in a new field "Emprise" with the "conditional attribute values" in an AttributeManager.But I do not succeed after to chain a selection on the selection via a second published parameter. The selection of the right of way is not filtered according to the first choice. Thank you in advance for all your advice.
sorry for the confusing title.I have two regular polygon grids consisting of different sized squares with the same x-y origin. Grid 1 consists of 4km x 4km squares and grid 2 consists of 1km x1km squares. Thus 1 tile from grid 1 contains exactly 16 squares of grid 2. Think Matrix of ever decreasing resolution.Each little square contains a file name in an attribute row. I need to run a process(combine point cloud) on the 16 file names contained within each selected large square. How do I set up the select-iteration mechanism?
I use attribute with extracted geometry in WorkspaceRunner and pass it to another workspace's user parameter. I then use user parameter in GeometryReplacer and get reject.I asume that problem accours when user parameter changes attribute encoding. I tryed to lab with AttributeEncoder with no success. Every time i use value from user parameter with geometry string, encoding is changed to utf-8 and GeometryReplacer seems to not like that.Is FME cabable av passing geometry to other worspace as attribute?
I'm looking for a way to set a datasource based on where the workspace is run.My current setup:Private Parameters PathDev, PathTest and PathProd.AttributeCreator creating Path. Value is conditional:if $(FME_ENGINE) has no value then PathDevelse if $(FME_ENGINE) contains test then PathTestelse PathProdFeatureReader reads from Path / FeatureWriter writes to Path.This works well but it has a disadvantage when writing. I can assign Path in the beginning of the workflow and have to keep the Path attribute through the entire stream. Or I can assign just before the FeatureWriter but then it has to run the conditional for all features, which is useless expensive.Can someone give me a pointer how to do this? My Python is nonexisting...I hoped something like this:if FME_MacroValues['FME_ENGINE'].str == "": return FME_MacroValues['PathDev']if FME_MacroValues['FME_ENGINE'].str like "test": return FME_MacroValues['PathTest']else: return FME_MacroValues['PathProd']Thanks in advance.
What is the best way to process SDE feature classes from a .csv file that contains the names of the feature classes to process? SDE contains hundreds of feature classes but I only want to process the feature classes that are named in the .csv file.
I have a template that I call and run with parameters but one of the parameters can be like this "something - else", but it only read "something", I need the whole word. any ideas?Thanks
Every once and a while our controller workspace is unable to run because it: "Failed to access FME Server web connection" . This web connection is the user name and password used in the FME Server Job Submitter transformer. This connection is a stored web connection on FME Server.Can you provide any insight to why this might be?
I have created a shared resource directory (named PROJ) based on this article.I'm using it in a (type: text) private parameter (named SHAREDRESOURCE_PROJ) as I would do with an FME parameter :$(FME_SHAREDRESOURCE_PROJ)\TemplatesAnd I access that parameter from a number of scripted private parameters like this:import fmetemplateA = fme.macroValues[‘SHAREDRESOURCE_PROJ’] + '/templateA.ini'return templateAWhen executing my workspace from FME Server it throws the error ' failed to evaluate Python script'.If I replace $(FME_SHAREDRESOURCE_PROJ) with the actual path to the folder it works so the problem is the resource directory parameter, but I don't want to use the hardcoded path.What am I doing wrong?
Hi! Is there a way to copy envelop parameters of a FR to another one?Because we can edit the first one, copy the Minimum X, then paste to the second one and do it third times again, but................ If anyone as the key, i would appreciate !!
I find that GLTF has too few formatting properties, and a lot of things get lost.The very important globalId property I need to add to GLTF
Hi there - I am now to the FME software, so please bear with me! I am running the SnakeGrid Projector, converting ECW files from OS Grid to Rail Project SnakeGrid. I have run a batch of files, but the output files aren't the same filename as the input source filenames. I can't see identify the filenames from the source filename. Can somebody please help Workspace looks like thisThanks for your assistance.Tom
I have defined a custom transformer, and it is outputting more attributes than what I want. I just want to output these two attributes (network_id and lower_network_id): But when using it in the main workbench, it is also outputting attributes from the original input features: I assume this is is because they automatically propagate all source attributes forward, but I want to avoid this, I just want the two-column list. How can I achieve this?
I have a workflow where I need to use the featureReader to read in some data. The dataset parameter is an attribute containing a wildcard character in the path. Is there any way of determining the actual file a feature belongs to, as the fme_dataset attribute does not seem to be present on the feature (it's not a matter of exposing it, it's not there to be exposed).
Has described in the article job priority is no more supported. I've migrated to fme server 2018.1.0.3 and dekstop too. I have upgraded FMEServerJobSubmitters but in advanced settings of the transformer I find Job priority ... 100 . Why? I can't delete the value and if I run my jobs I find warning in fmeserver.log:WARN RequestHandler-Thread 404636 : Job 1801 specifies a priority, but job priority is no longer supported. Use job queue priority instead. Please see: http://fme.ly/KB72058 How to fix warning and my workbench? Thank you
I have 2 records with identical attribute values except for one field (FeatureID). How can I merge the records but create a list from the FeatureID. The result should be highlighted on the attached picture
I have a large dataset in an Intergraph Geomedia SQL Server feature class that is a compound feature class. It is a combination of line and area features, but I only want the area features. Because of the size of the dataset, I would like to get the database to do the work separating the two as it reads in the data (not using a GeometryFilter on the canvas). To do this, I'm trying to use a WHERE clause on the reader that only selects a certain geometry type from an exposed Format attribute ("fme_geometry" = 'fme_polygon'). But this isn't working. I've been successful with a similar WHERE clause on a User attribute, but can't get any results with the Format attribute.Is it even possible to use a WHERE clause on a Format attribute?
Hi all! I need the adjacent feature within a loop but I get the error that Attribute Manager is a blocking transformer and therefore it won't work. I use blocking transformers in linked custom transformers all the time and it works fine. Is there a particular reason that you can't use the Attribute Manager within a loop? Thanks!
Is it possible for the FMEServerJobSubmitter to also work against DataDownloadservice? Or is the only option to use the REST-api and "hardcode" your own custom transformer?I would submit the job in async-mode and wait for it to generate the files for Download. It complains about: `Undefined macro `FME_SERVER_DEST_DIR' dereferenced in file `XXX\YYY.fmw''
I have a huge shape file which contains whole country data. i have one more file which contains a boundary. for example we can say zipcode boundary. i wnated to write the features falling inside this boundary.FMe's fearure merger or area overlayer reads all the features and checks with the boundary if it is intersects or not. this process takes too long. I need some kind of mechanism which will read only the features which is near (buffer) to the boundary. or any kind... or method. reading whole country data is not recommended rught? How can we process fast ?can anyone from the team help me?
I've found an odd quirk with FME Server.When I remove " from a file path on an FME workbench when it's uploaded to the server, the guest role will be able to run the work bench but the admin role won't be able to. This also occurs vice versa when adding " it works for the admin role but not for the guest role.I am using a direct link to run the workbench but this bug occurs without using the direct link to.My question is is this intentional or a bug?Server verison: FME Server 2018.1 - Build 18520 - win64
Dear everyone, I have an shutdown python scripts which basically sends email to admin after one datadownload has been succeed or failed. My existing py script is as follows: I now want to impose one "if" condition before email generate, if my user name is "A" and email is "A@nnn.com" then email will not generate.. I have ended my script as follows but it did not work, FME server shows me error. if nutzer != 'A' AND user_mail != 'A@nnn.com': smtpserver = smtplib.SMTP(smtpServerAdress,smtpPort) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo smtpserver.sendmail(emailFrom, emailTo, msg.as_string()) smtpserver.close() ............... Did I have done some mistakes? And another issue is, I want to also store the result inside sql server DB , how i can write the right script before'send mail? ThanksMuqit
Hi folks, I have a main workspace that calls a bunch of data validation workspace, my 'child' workspaces. All child workspaces have exactly the same published parameters (values may be different of course). In the main workspace each feature has a parameter WsName with the full name of the child workspace that needs to be called. When I use a WorkspaceRunner and set the parameter 'FME Workspace' to the WsName (rather than actually selecting a workspace), I cannot specify any parameters to pass on to the workspace. Is there any way to overwrite this and specify them anyway programmatically? I am aware that I could use a PythonCaller to run the child workspaces and pass whatever parameters, as explained on https://knowledge.safe.com/articles/Samples_and_Demos/Run-an-FME-Workspace-from-Python-using-FMEWorkspaceRunner however, for reasons of controlling the flow of workspaces that are called I prefer to use a WorkspaceRunner, not a PythonCaller. Thanks, Joep
Hi, I've created some published parameters for some tranformers, I used Choice with Alias for all parameters and they all have same set of aliases. For example, choice "2000" represents 576 of rows and columns in Tiler and represents E of attribute value of AttributeCreator. Every time I ran the workbench I have to set every published parameter into 2000.I'm wondering if I can create a universal published parameter of these published parameters, so I only need to choose one time every time I run the workbench.@takashi @DaveAtSafe @david_r @jdh @Mark2AtSafe
Hi,everybody ,I use the fmeobject4net to process a bit data,and use the c# samples priject code,then some log info is unrecognition charact .the code and the debug info as follow: FMEO_LogCallbackFunc viewInitialized = new FMEO_LogCallbackFunc(LogCallBack);fmelogfile.SetCallBack(viewInitialized); public void LogCallBack(FMEOMessageLevel severity, String message){ // Following code to ensure thread safety to avoid the// InvalidOperationException thrown by VS// string str = ParseChCodeString(message);if (this.txtlogbox.InvokeRequired){Invoke(new FMEO_LogCallbackFunc(LogCallBack),FMEOMessageLevel.Inform,message);}else{ txtlogbox.AppendText(message + Environment.NewLine);}} and the output loginfo in my app as follow: and i open the log file, it is right as folow : how to resolve the problem? Somebody can help me?thanks