Comments (5)
@langdonms you need to be a dispatcher in the project in order to use the Workforce module in the Python API. You could add your admin user as a dispatcher to the project and then should be able to do everything.
from workforce-scripts.
Closing, feel free to re-open needed.
from workforce-scripts.
Also, for automation, does the https://developers.arcgis.com/python/api-reference/arcgis.apps.workforce.html work with V2 projects?
from workforce-scripts.
@langdonms This is because the assignment types are stored in a separate table and are not a coded value domain. This was an intentional decision to support assignment type changes when projects are offline and need to sync changes. There's no good way to resolve this in Pro unfortunately.
The referenced api does work but you need to use the 1.8.3 pre-release version of the ArcGIS API for Python which is backwards compatible with older projects. This can be installed using conda install -c esri/label/prerelease -c esri arcgis
from workforce-scripts.
Thanks for the quick reply and explanation @apulverizer I had hoped to do an append with field mapping to migrate & load new assignments but I'll take a closer look at the migrate script then. 👍
Follow-up Q:
Do you need to be the owner of the project to perform the scripts or can any admin account work? I say this bc my main account is authenticated through our G-Suite which might be a pain to use in the scripts while we have other automation accounts that are named user on AGOL. I'd prefer to keep myself as the owner of the projects for convenience but can change ownership if needed for the scripts to auth with a named user.
from workforce-scripts.
Related Issues (20)
- Service name already exists; misreported error, perhaps '&' HOT 3
- How to migrate completed assignments? HOT 1
- Handle_json_error HOT 2
- Type Error: 'NoneType' Object is not subscriptable HOT 1
- Authentication fails when using Enterprise login HOT 4
- Unknown object [OBJ] causes export_assignments_to_csv.py script to fail HOT 3
- Copy assignments does not copy feature service attachments HOT 3
- Will assign assignments based on point features HOT 2
- Exceptions on migrate_assignments.py HOT 2
- Assignment Migration - Attachments Failing HOT 3
- Automation needed features HOT 1
- Do scripts work with New WorkForce? HOT 10
- Export assignment to CSV is still using arrow instead of pendulum
- Cannot execute create_assignments_from_csv due to Type error HOT 4
- Can't Assign Work: ValidationError: Assignment must have geometry HOT 4
- assignementread field doesn't exist HOT 1
- Getting KeyError as "assignments" when using workforce with geoprocessing tool. HOT 6
- Not letting worker finish assignment if worker is not nearby assignment HOT 2
- Optimally Creating and Assigning Work Orders Based on Routes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workforce-scripts.