On the Salesforce Field Service Mobile app, when the user clicks the "plus" icon to create a time-sheet entry from the Time Sheet, the error "illegal state" will display. On a Web interface, it’s working as expected.
Whenever we have a custom record type created for TimeSheetEntry, the Field Service mobile app is unable to get the Record Type ID as part of the GET Call and results in an illegal state exception.
The following is the error message from the mobile device logs.
2023-03-06T10:19:05.532994Z W/XPlat: RecordDataManager::loadRecordForCreate is a DEPRECATED method and will be removed
2023-03-06T10:19:05.909236Z E/XPlat: SalesforceLoader - http response 404 - record deleted remotely
2023-03-06T10:19:05.909496Z E/XPlat: SalesforceLoader - unable to load data. Loader Name: RecordDataLoader. [ERR(NO_RECORD) msg: record deleted remotely for: /services/data/v57.0/sobjects/RecordType/012000000000000AAA api: undefined]
2023-03-06T10:19:05.910033Z E/PageMonitor: RecordEdit has encountered an error loading data
After we remove the Record Type field from the Time Sheet Entry Page Layout, the problem is resolved.
000394833

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.