Forum Discussion

G_Forster's avatar
6 years ago

Re: System.InvalidOperationException

This is the error I receive when I try and save the empdupe file, please assist.

 

 

System.InvalidOperationException: An exception occurred while reading a database value for property 'EmployeePayrollDetailsUserDefinedEntitlementLine.Hours'. The expected type was 'System.Decimal' but the actual value was null. ---> System.NullReferenceException: Object reference not set to an instance of an object.

 

  • Gayathri's avatar
    Gayathri
    6 years ago

    Hi G_Forster,

     

    Thank you for the post!

     

    I have run the script for you now. Could you please logout and login now.

     

    Do let us know how it goes.

     

    Thank you.

  • Hi Andrew,

    This is the error I receive when I try and save the empdupe file, please assist.

     

     

    System.InvalidOperationException: An exception occurred while reading a database value for property 'EmployeePayrollDetailsUserDefinedEntitlementLine.Hours'. The expected type was 'System.Decimal' but the actual value was null. ---> System.NullReferenceException: Object reference not set to an instance of an object.

    Last 4 Digits are XXXX 3463

    • Gayathri's avatar
      Gayathri
      Former Staff

      Hi G_Forster,

       

      Thank you for the post! Welcome to the MYOB Community Forum.  

       

      Could you provide me with few details as I see in our records using your forum email address, that you don’t have a active subscription.

       

      If you can send a private message with the details:

      1. The serial number of the company file (Setup>>Company Information).
      2. Email Address
      3. Company File ID
      4. Account Name

      Here is a link that will take you to your private messages- Private Messages . You can send us a private message here.

       

      If you have any further questions, please feel free to post again.

       

      Thank you.

    • Gayathri's avatar
      Gayathri
      Former Staff

      Hi G_Forster,

       

      Thank you for the post!

       

      I have run the script for you now. Could you please logout and login now.

       

      Do let us know how it goes.

       

      Thank you.

      • Thank you you're the best spent half an hour on the phone on hold then thought I would check this forum much better result.