Hi @juliarozema, basically FME is doing the check so you dont need to 'let the task scheduler know' that ArcGIS is installed.
Could it be that you have FME 32 and 64 installed on the same machine where you are scheduling the task?
Hi @juliarozema, basically FME is doing the check so you dont need to 'let the task scheduler know' that ArcGIS is installed.
Could it be that you have FME 32 and 64 installed on the same machine where you are scheduling the task?
Hi @itay,
Only FME 64 bit & ArcGIS Pro are on the machine. ArcGIS Pro is logged in with an account with the correct license level.
Now an unrelated job that runs ArcGIS Pro from task scheduler failed, so maybe this is all related to something else. I will continue to investigate but am open to any other suggestions on what to investigate.
Is everything on the same machine?
Are you not running the batch trough a task scheduler on an other machine/server?
Have you tried scheduling an other workbench which does not require the bg geoprocessor. (I assume for the geo index) See if it works?
I’m also experiencing this issue. We’re running FME Desktop 2019.2.
My observations so far;
1. Workspace runs within FME and completes successfully.
2. Workspace runs when manually initialising the workspace from a batch file and completes successfully.
3. Running the scheduled task on demand (logged in) initialises the workspace and completes successfully.
4. Setting the scheduled task to “run whether user is logged in or not” will result in a failed task if the user is not logged in.
I’m surmising that when the user is not logged in the scheduled task is running inside a ‘shell’ and any ArcGIS Pro user profile information is not loaded resulting in FME not being ‘aware’ the user has the appropriate licencing.
Below are snippets from the FME workspace logs that may confirm this.
Task Success (logged in):
2020-02-11 16:02:21| 2.0| 1.4|INFORM|The ArcObjects license 'Advanced' is being selected from the ESRILicenseInfo ArcObjects call
2020-02-11 16:02:21| 2.4| 0.4|INFORM|FME has checked out an Esri license. The product checked out is 'Advanced'
2020-02-11 16:02:21| 2.4| 0.0|INFORM|Installed ArcGIS version is '2.4'
Task Failure (not logged in):
2020-02-12 10:02:25| 1.6| 0.0|INFORM|Opening the Geodatabase reader
2020-02-12 10:02:25| 1.6| 0.0|INFORM|An ArcGIS license is already checked out. The product checked out is 'Advanced'
2020-02-12 10:02:25| 1.6| 0.0|INFORM|Installed ArcGIS version is '?.?'
2020-02-12 10:02:25| 1.8| 0.1|ERROR |Could not open the Enterprise Geodatabase. The error number from ArcObjects is: '-2147220952'. The error message from ArcObjects is: {The Product License has not been initialized.}
Is anyone aware of a resolution to this issue?
Could be because the account you use to log into your machine (your AD credentials) is not recognized by FME as the the Named User account for the ArcPro license--you will want to check that association (between your AD and Named User) in the Portal that manages your ArcPro licenses.... I had this same issue / error when trying to run Workbenches in FME Server. The workaround for me in that case was to change the 'LogOn as' user in Windows Services panel so that FME Server runs under my personal AD credentials--which is less then ideal to say the least. ESRI seems to have tightened up its license policing with ArcPro --Con-current or Server Licenses are no longer acceptable eg....Named Users only.
Could be because the account you use to log into your machine (your AD credentials) is not recognized by FME as the the Named User account for the ArcPro license--you will want to check that association (between your AD and Named User) in the Portal that manages your ArcPro licenses.... I had this same issue / error when trying to run Workbenches in FME Server. The workaround for me in that case was to change the 'LogOn as' user in Windows Services panel so that FME Server runs under my personal AD credentials--which is less then ideal to say the least. ESRI seems to have tightened up its license policing with ArcPro --Con-current or Server Licenses are no longer acceptable eg....Named Users only.
A couple of things to add...
- The account you're using to run the task may need to be a local adminstrator.
- You may need to run/signin to ArcGIS Pro once using the same user account (assuming the user has a named user licence assigned).