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!