Skip to main content
Developer Communities Admin
Community Manager
September 15, 2026

Any ideas for the following API error?

  • September 15, 2026
  • 3 replies
  • 0 views

Originally posted by Hong Zhao on February 3, 2026 at 6:54 PM.

 

Any ideas for the following API error?

 

POST: {{host}}/Api/{{company}}/V1/EmployeeSchedules?isValidateOnly=false&orgUnitXRefCode=DUMMY_ENTITY_DD_LOCATION_U

 

Request:

[

  {

    "TimeEnd": "2026-01-24T17:00:00",

    "TimeStart": "2026-01-24T09:00:00",

    "employeeXRefCode": "260203182208465",

    "positionXRefCode": "AO Classification 1 Primary",

    "segments": [

      {

        "PositionXRefCode": "AO Classification 1 Primary",

        "TimeEnd": "2026-01-24T17:00:00",

        "TimeStart": "2026-01-24T09:00:00"

      }

    ]

  }

]

 

Response:

{

  "requestId": "1d11f84c-b691-4202-a879-a332dc3920f9",

  "processResults": [

    {

      "context": "260203182208465",

      "message": "Employee does not have a matching work assignment for duration of ScheduleSegmentDayforce from 1/24/2026 9:00:00 AM - 1/24/2026 5:00:00 PM."

    }

  ]

}

    3 replies

    Developer Communities Admin
    Community Manager
    September 15, 2026

    Originally replied by Frank Ruffolo on Feb 4, 2026, 9:33 AM.

     

    Hi @Hong Zhao​ I was able to execute on my sandbox. Can you see if the employee has a Work Assignment that covers the date of the planned schedule/shift?

    Developer Communities Admin
    Community Manager
    September 15, 2026

    Originally replied by Hong Zhao on Feb 4, 2026, 5:28 PM.

     

    Thanks @Frank Ruffolo​ . The test employee has the following work assignment. I don't see anything missing. "WorkAssignments": {

    "Items": [

    {

    "Position": {

    "Department": {

    "XRefCode": "TD_ADMINISTRATION_STREAM",

    "ShortName": "TDTEST - Administration Stream",

    "LongName": "TDTEST - Administration Stream"

    },

    "Job": {

    "IsUnionJob": false,

    "JobRank": 1,

    "EffectiveStart": "1950-01-01T00:00:00",

    "JobFamily": {

    "XRefCode": "TDTEST Admin Officer Jobs",

    "ShortName": "TDTEST Admin Officer Jobs",

    "LongName": "TDTEST Admin Officer Jobs"

    },

    "XRefCode": "AO Classification 1 Primary",

    "ShortName": "AO Classification 1 Primary"

    },

    "Executive": false,

    "LedgerCode": "",

    "XRefCode": "AO Classification 1 Primary",

    "ShortName": "AO Classification 1 Primary",

    "LongName": "AO Classification 1 Primary"

    },

    "Location": {

    "LegalEntity": {

    "Country": {

    "Name": "Australia",

    "XRefCode": "AUS",

    "ShortName": "Australia",

    "LongName": "Australia"

    },

    "LegalEntityAddress": {

    "Address1": "000 Sample St",

    "City": "Sydney",

    "PostalCode": "2000",

    "Country": {

    "Name": "Australia",

    "XRefCode": "AUS",

    "ShortName": "Australia",

    "LongName": "Australia"

    },

    "State": {

    "Name": "New South Wales",

    "XRefCode": "AU-NSW",

    "ShortName": "New South Wales"

    }

    },

    "LegalIdNumber": "53489788255",

    "XRefCode": "DUMMY_ENTITY",

    "ShortName": "zz_Dummy Entity",

    "LongName": "Dummy Entity"

    },

    "XRefCode": "DUMMY_ENTITY_DD_LOCATION_U_DD_AO",

    "ShortName": "DD - Location U - TDTEST Administration Stream",

    "LongName": "DD - Location U - TDTEST Administration Stream"

    },

    "EmploymentStatusReason": {

    "IsCompChangeReason": true,

    "IsLeaveReason": false,

    "IsPositionChangeReason": true,

    "IsTerminationReason": false,

    "XRefCode": "NEW ASSIGNMENT",

    "ShortName": "New assignment",

    "LongName": "New assignment"

    },

    "EffectiveStart": "2020-01-01T00:00:00",

    "FlatAmount": 0.00000,

    "IsPAPrimaryWorkSite": false,

    "IsPrimary": true,

    "IsStatutory": false,

    "IsVirtual": false,

    "LastModifiedTimeStamp": "2026-02-04T10:22:25.177",

    "PositionTerm": {

    "XRefCode": "REGULAR",

    "ShortName": "Regular",

    "LongName": "Regular"

    },

    "IsShiftMarketplace": false

    }

    ]

    }

    Developer Communities Admin
    Community Manager
    September 15, 2026

    Originally replied by Frank Ruffolo on Feb 5, 2026, 8:56 AM.

     

    Hey @Hong Zhao​ thanks. The error refers to the work assignment being invalid in some regard. Can you check the effective start dates for the following and ensure none are end dated?

     

    These can be found under Org Setup:

    Jobs

    Job Assignments

    Org Units (where OrgLevel = both Site and Department)

    Legal Entity