Select to view content in your preferred language

Strange results from Workforce Module

189
1
Jump to solution
01-22-2025 01:20 PM
CodyPatterson
MVP Regular Contributor

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!

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
MVP Regular Contributor

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

View solution in original post

1 Reply
CodyPatterson
MVP Regular Contributor

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