Een krachtige functie van ArcGIS Data Interoperability<\/STRONG> en 'verwant' FME<\/STRONG> is het vermogen om verbindingen met webapps op te slaan en te delen. Eenmaal geconfigureerd, kunt u een webverbinding gebruiken om gegevens te lezen en te schrijven in een willekeurig aantal werkruimten terwijl u beveiligde referenties slechts op één plaats beheert.<\/P><\/P>Portal for ArcGIS<\/STRONG> is een onderdeel van ArcGIS Enterprise dat ik zie als een contentmanagementsysteem. U kunt er hier meer over lezen hier<\/A>. Een portal is een zeer capabel, single-tenant, veilig georuimtelijk infrastructuuronderdeel waar u data, kaarten, scènes en apps kunt maken, onderhouden en delen. Deze blog gaat over het maken en gebruiken van een portal-app om toegang te krijgen tot gehoste feature services die gelezen en geschreven kunnen worden met de ARCGISPORTALFEATURES<\/STRONG> reader\/writer of de ArcGISOnlineConnector<\/A> transformer.<\/P><\/P>Het startpunt is uw portal, hier is de startpagina van mijn portal (nep, maar u krijgt het idee):<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/index.html<\/A> <\/P><\/P>Het eerste wat u moet doen is een app maken waaraan u de webverbinding kunt koppelen.<\/P><\/P>Ga naar uw Content<\/STRONG>-weergave en klik op Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Kies 'An application<\/STRONG>' en klik op Application<\/STRONG> en vul de beschrijvende gegevens in:<\/P><\/P><\/P><\/P><\/P>De app wordt gemaakt en u wordt naar de start-URL gebracht, die er ongeveer zo uit zal zien:<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/item.html?id=50bfc12ef28840d48eac324c8ec67dd0<\/A> <\/P><\/P>Bovenaan rechts bevindt zich de Settings<\/STRONG>-weergave, klik daarop.<\/P><\/P><\/P><\/P>Scroll naar beneden (of klik linksboven op Application<\strong> naast General<\strong>) en u ziet App Registration<\strong>:<\p><\p>
<\/P>
Het startpunt is uw portal, hier is de startpagina van mijn portal (nep, maar u krijgt het idee):<\/P>
Het eerste wat u moet doen is een app maken waaraan u de webverbinding kunt koppelen.<\/P>
Ga naar uw Content<\/STRONG>-weergave en klik op Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Kies 'An application<\/STRONG>' en klik op Application<\/STRONG> en vul de beschrijvende gegevens in:<\/P><\/P><\/P><\/P><\/P>De app wordt gemaakt en u wordt naar de start-URL gebracht, die er ongeveer zo uit zal zien:<\/P><\/P>
Bovenaan rechts bevindt zich de Settings<\/STRONG>-weergave, klik daarop.<\/P><\/P><\/P><\/P>Scroll naar beneden (of klik linksboven op Application<\strong> naast General<\strong>) en u ziet App Registration<\strong>:<\p><\p>
Ah I see, sounds like a portal bug indeed. You could always shell out to ArcPy in the workspace, assuming the Geocode Addresses geoprocessing tool likes your portal locator, if not then use a file-based locator.
Code 401. You are not Authorized to access (geocoder)...Invalid Creds. I've tried my personal creds and the portal admin. I've tried all sharing levels for the Portal access app and the geocoder. ESRI Support blames it on 10.7.1. I'm upgrading in April or May. I survive til then. thanks for answering.
Hi, unless I'm missing something, if you change your Authentication Type to Generate Token then you'll embed your username and password into the Geocoder and a new token will be generated on each run.
I followed this set up to access a geocoding service in Portal and it worked perfectly for a day. I found the way to extend the Auth to 2 weeks / 20,000 minutes. But I still have to manually Reauthenticate the Web Connection every 2 weeks. It was great for years when I could specify a service and store a username and pw in the Geocoder. Any ideas or work arounds? Can I automate the Reauth?
I have to stay on 3.3 because of an integration. Thank you!!
Pro 3.3 and FME(R) 2023.1.1.1 (20231011 - Build 23636 - WIN64)
Hello RahulSharma_SfeSoft,
Thank you for your reply, do you think the same procedure works for ArcGIS Enterprise please?
cheers,
Kavi
Hello Kavi, The behavior you have described is expected. OAuth refresh token does have an expiration time that can be set at the Enterprise level; see the documentation here.
Pleae set the maximum value set (-1) for the refresh token as shown below.
To avoid re-authenticating the web connection, I would advise you the following.
Create a reader with the Esri ArcGIS Portal Feature Service Reader If required, restrict the reader to read 1 or 10 features (Maximum Features to Read under Parameters) Add a logger and save the workspace Publish the workspace to FME Flow (formerly FME Server) Schedule this workspace to run every two weeks(using Automation). This will trigger the web service and generate a refresh token before it expires.
Rahul Sharma
Hello Kavi, officially you should contact Safe Software support for an FME Server issue but to be helpful we'll connect with Safe at this end to put together a response. Please stand by the next few days.
Hello @BruceHarold ,
Thank you so much for this article.
We have several FME Server services that runs nightly to update feature hosted services. This all works well but every month or two the services all fail because they have lost their authentication to AGOL even though there were no account changes. I can re-authenticate the connection and then the services run for a month and then they lose their authentication again. Is there a way to set up a permanent authentication so that they do not have to be periodically re-authenticated?
Thank you.
I've followed these instructions but either when testing my new web service connection or trying to create a new web connection from my new web service connection, after clicking the Authenticate button, and logging in (via SAML), I get this screen with no way to go any further or save the new web connection.
Any ideas?
Hi, usually this sort of issue is fixed by re-authenticating the web connection, you can do this by going to the Web Connections pane in FME Options and right clicking on the connection, a menu option will be available.
@BruceHarold ,
I have successfully connected to my Portal and found the feature service I want to use. But when I go to generate a list of layers or find branched versions, the wheels just spin. It never seems to retrieve what I need. I've tried this on many different feature services. You help is much appreciated!
Are you clicking the Manage Services button and then using the Create From option from the + sign bottom left?
Bruce,
Nearly there - I can now see this option and select it but can't find an option to change the authentication information (app_id and password)..
Sorry about that, I replaced the attachment with what I think is the right file for you to copy into:
C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\WebServices
Thanks Bruce.
I added the xml but it has a "password" section there and when I leave it empty I get an error message "
Unable to read file 'C:\Users\asafe\Documents\Metrics\portal.xml'. Most likely cause is an incorrect password.
Encryption Error: AES Decrypt finalization failed."
Thoughts?
I added an attachment to the post but please also open a support call about the template not being available in your install. Thank you.
Hi,
I am trying to follow this workflow but cannot find the "Esri ArcGIS Portal (Template)" option. Do you have this in a file which I can import from?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.