Hey all,
Enterprise 11.2
Having a strange thing happening with Workforce, when creating the Workforce assignment and appending it to a list, the assignments all turn into <Assignment None>.
When attempting to batch_add said list of assignments, I get an error stating that 'NoneType' object has no 'properties', here is my setup:
NewLocates.append(
workforce.Assignment(
project,
geometry=pt,
location=Location,
description=x,
priority=int(Priority),
work_order_id=Record["CaseNumber"],
assignment_type=TicketType,
status="unassigned",
due_date=TicketInfo['DueDate']
)
)
print(NewLocates)
project.assignments.batch_add(NewLocates)
Any idea what could be happening here? I've attempted to batch add a single item in a list, and attempted to use just add, neither worked. I've also checked that every item inside of the Assignment function is valid, well valid to my mind.
What should I do next?
Thanks in advance!
Solved! Go to Solution.
Hey All,
Update, looks like there was a bug: https://support.esri.com/en-us/bug/the-following-error-message-typeerror-object-of-type-fe-bug-00017...
This bug was about ArcGIS version 2.3, and when moving up to 2.4, it worked without most issues. I'm still having one or two, but nothing crazy.
Cody
Hey All,
Update, looks like there was a bug: https://support.esri.com/en-us/bug/the-following-error-message-typeerror-object-of-type-fe-bug-00017...
This bug was about ArcGIS version 2.3, and when moving up to 2.4, it worked without most issues. I'm still having one or two, but nothing crazy.
Cody