I'm not sure why what you want to do to with the FeatureReader_2?
If you click on the magnifying glass icon on the rejected feature from the FeatureReader, you can inspect the error?
I'm not sure why what you want to do to with the FeatureReader_2?
If you click on the magnifying glass icon on the rejected feature from the FeatureReader, you can inspect the error?
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Does it work when opened directly?
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
MyProject1.gdb alone and it worked.
MyProject1.gdb and an exact duplicated called MyProject2.gdb through the same transformers but with their own independent readers and this worked too.
But running the workspace you helped me with that reads the folder containing the 2 of them at the same time fails to read the 2nd file.
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Sorry @nielsgerrits I think I misunderstood what you asked, so what I did now was I deleted MyProject1 but left MyProject2 in my folder my path is reading from.
So as of right now there's just a single GDB file in my folder.
I first run this through a workspace here to make sure that my file is valid and since the features are getting written without issue, the file should be safe to use.
But when I run the workspace that looks for gdb files in my folder it gets automatically rejected and I don't know why. Let me post the error log in a separate reply since I can't fit it in here.
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
I created a sample set demonstrating how it should work.
- Scan a folder for *.gdb.
- Read the found .gdb's using path_windows.
- Write a .dwg for each .gdb using path_rootname and fme_feature_type for autocad layer name.
Edit: And please do realize, because of FeatureCaching, if you change anything in the inputfolder during workspace development, you need to rerun the workbench. (Rerun Entire Workspace) Because changes in the folder will not be detected when FeatureCache is on, as the initial state is cached.
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Holy crap this is exactly what I need, thank you so much! I'm gonna try to figure out how I can combine this with the color settings from my previous questions as well, thank you @nielsgerrits !
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Update:
Found out how to dynamically read datasets where the Workspace is stored:
$(FME_MF_DIR) is where the workspace is located:To get the templatefile I just needed to add the name of the template right behind $(FME_MF_DIR) and now I can read any gdb files as long as they are in the same place as my workspace without having to manually specify them.
For the Bat file, I was able to create a file that opens and loads up my workspace based on where I run my Bat file from:
@echo off
start "" "C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\fmeworkbench.exe" "%~dp0GDB_to_CAD.fmw" --run
Only problem is the "--run" doesn't seem to run the actual workspace once the user is loaded in, still trying to figure out how I can do that within the bat file.
Oh one more thing @nielsgerrits , is it possible to create a script that a user can click and automatically run the entire workspace without having to open FME Workbench at all?
Like a bat file or a python script or something that they just need to double click to run the conversion?
Also how do you ensure that the location of the Dataset and output changes accordingly to where I put the file?
Cos my idea right now is that I put a button in my ArcGIS Add on that will run the workspace in the default project directory, and then the conversion of all GDB files will be completed within the entire project without the user having to navigate out of the ArcGIS Project folder or even ArcGIS itself.
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Oh one more thing @nielsgerrits , is it possible to create a script that a user can click and automatically run the entire workspace without having to open FME Workbench at all?
Like a bat file or a python script or something that they just need to double click to run the conversion?
Yes. When you run a workspace, on the top of the log you will see how to command line this:
Command line to run this workspace:
C:\apps\fme_2021_2_6\fme.exe "C:\TMP\New folder (17)\Test.fmw"
--FME_LAUNCH_VIEWER_APP "YES"
Also how do you ensure that the location of the Dataset and output changes accordingly to where I put the file?
Cos my idea right now is that I put a button in my ArcGIS Add on that will run the workspace in the default project directory, and then the conversion of all GDB files will be completed within the entire project without the user having to navigate out of the ArcGIS Project folder or even ArcGIS itself.
You can use the FME Parameter $(FME_MF_DIR) to do this. This parameter is the path where the workspace is. Also see the documentation.
My bad I forgot to delete FeatureReader_2, I was testing to see if I could replicate the problem with a fresh reader and FeatureReader, I did.
Unable to connect to the File Geodatabase at 'MyProject1OG.gdb'. Make sure the correct filename was specified, and that the geodatabase wasn't saved with a newer version of ArcGIS than the one installed locally. The error number from ArcObjects is: '-2147024893'. The error message from ArcObjects is: {}
A fatal error has occurred. Check the logfile above for details
A fatal error has occurred. Check the logfile above for details
The below feature caused the translation to be terminated
FeatureReader_<Rejected> (TeeFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
FeatureReader (QueryFactory): Termination Message: '%0'
PATH_PATH_1_-1_18_Player (RecorderFactory): FeatureReader_<Rejected>: Termination Message: 'FeatureReader output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''
Oh sorry I just realized you replied me after I edited up comment to update what I found haha.
UPDATE:
I'm dumb, I saved this as a bat file instead of running it in CMD directly and it works, but it still doesn't auto run the workspace once I get into workbench, I'll still need to manually run the thing.
Command line to run this workspace:
"C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\fmeworkbench.exe" %~dp0GDB_to_CAD.fmw
-FME_LAUNCH_VIEWER_APP "YES"
Currently my command line doesn't seem to even recognize my FME Workbench:
# I ran this, didn't work
C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\fmeworkbench.exe "%~dp0GDB_to_CAD.fmw"
#And just this and it didn't work either :
C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\fmeworkbench.exe
I'm having better luck with my bat file though it doesn't seem to automatically run my workspace once it loads it up:
@echo off
start "" "C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\fmeworkbench.exe" "%~dp0GDB_to_CAD.fmw"
--FME_LAUNCH_VIEWER_APP "YES"
But it does at the very least open my workspace file dynamically so I can now just chuck the workspace anywhere in any projects containing a gdb file so that's a hell lot better than where I was last week .