Cause 1
Salesforce is trying to create or edit a record as requested but has encountered a problem.
An Error 00004 with this message "System.NullPointerException Attempt to dereference a null object" is often due to a completed job in the device trying to create / update a record but that record cannot be found. Either the name of the record you have entered is incorrect or the record has already been deleted or changed in salesforce.
Solution 1
- Look at the answers by pressing on the task. You will be taken back into that form.
- Look for questions that you have mapped to Id Fields - it is helpful to have the published form open on the field mapping page. Check your answers to these questions, and make sure the record you are trying to edit / lookup to exists.
Cause 2
Another cause of this issue could be if your system was recently upgraded to TaroWorks 4.3.X and the administrator did not complete all of the steps.
Solution 2
Contact your administrator that conducted the upgrade and confirm that articles 02 and 03 were completed.
Cause 3
A question mapped to an ID field is skipped. In logic, skipped questions return blank values to fields that are mapped to. The same applies to sections as well. When a section is hidden all questions within it are also hidden automatically.
Solution 3
Have questions mapped to ID fields put outside the section that will be skipped.
Often you will discover one of three things:
- The Mobile User has mistyped the Id Field of the record, and so it cannot be found by Salesforce. Make the change in the completed job on the device. See this video on Editing and Deleting Jobs.
- The back office user has deleted the record. This is usually problematic, you can undelete the record in Salesforce (please consult salesforce.com documentation on "Recycle Bin")
- The back office user has renamed the record. You should rename the record back and then try syncing again.
If you are unable to resolve this, or if the completed job on the device does not have any valuable data, you may wish to delete that job instead. See this video on Editing and Deleting Jobs.
Prevention
- Avoid deleting or renaming records in Salesforce unless necessary.
- Mobile users should check the answer before saving a job and syncing.
- Prefill questions using the information from the Hierarchy Drill Down as you build your job.
Comments
0 comments
Please sign in to leave a comment.