Skip to main content
Question

FME 64 bit and arcpy shutdown script needs a portal sign on

  • August 19, 2018
  • 0 replies
  • 15 views

kimo
Contributor
Forum|alt.badge.img+10
  • Contributor
  • 96 replies

I have loaded FME 2018.1 64 bit and need to add attribute indexes after loading a filegeodatabase. This can be done with an (existing) shutdown python script. As long as the python compatibility is set to 2.7 or 3.4+ to get rid of the FME warning. The script needs to be python 3 which simply requires brackets around any print statements.

But now that FME calls the newfangled ArcGISPro 64 bit arcpy libraries I have to log in the the Esri Portal first. How can I do this from FME? (I did find a workaround by simply starting up ArcGIS Pro which requires a Portal login and then it did run successfully)

I tried arcpy.SignInToPortal_server("username","password", "") but that function was not found. Besides imbedding the credentials in the script is not ideal.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.