I have a script that runs for a long time (2 days) for deploying a large Utility Network. The script makes a connection to portal early on using the SignInToPortal function, however by the time subsequent commands are run I get a ...
Error: ERROR 002119: Must be connected and signed into the portal.
Failed to execute (AssetPackageToUtilityNetwork).
I checked the token returned by SignInToPortal and it expires 12 hours after the request. Using Fidder to capture the request I can see "expiration" is part of the request.
/portal/sharing/rest/generateToken/username=utilitynetworkowner&password=abcdefg&expiration=720&client=referer&referer=http://www.esri.com/AGO/B90FF998-17C8-4248-8F0A-A7000000000
Is there anyway to change the timeout request?
Thanks,
Neil