web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Wrong assignments after restoring a backup

(0) ShareShare
ReportReport
Posted on by 15

Hello,

 

the issue After we made reset for the server and made backup and restored the backup.

 

Then when we make entry coming this messages.

"Error executing code: Wrong argument types in variable assignment."

 

(S)\Classes\SalesFormLetter\new - line 14

(S)\Classes\SalesFormLetter_Invoice\new - line 3

(S)\Classes\SalesFormLetter\construct - line 10

(S)\Classes\SalesFormLetter\mainOnServer - line 34

(C)\Classes\SalesFormLetter\main - line 49

(C)\Classes\FormFunctionButtonControl\Clicked

C)\Classes\FormFunctionButtonControl\Clicked

(C)\Classes\FormMenuButtonControl\Clicked

Best Regards.

I have the same question (0)
  • MuthukumaranAX Profile Picture
    2,903 on at

    can you compile this class and see are there any errors?

  • khalid82 Profile Picture
    15 on at

    How to compile it?

  • khalid82 Profile Picture
    15 on at
    [quote user="khalid82"]

    Hello,

     

    the issue After we made reset for the server and made backup and restored the backup.

     

    Then when we make entry coming this messages.

    "Error executing code: Wrong argument types in variable assignment."

     

    (S)\Classes\SalesFormLetter\new - line 14

    (S)\Classes\SalesFormLetter_Invoice\new - line 3

    (S)\Classes\SalesFormLetter\construct - line 10

    (S)\Classes\SalesFormLetter\mainOnServer - line 34

    (C)\Classes\SalesFormLetter\main - line 49

    (C)\Classes\FormFunctionButtonControl\Clicked

    C)\Classes\FormFunctionButtonControl\Clicked

    (C)\Classes\FormMenuButtonControl\Clicked

    Best Regards.

    [/quote]

    error-messgae-when-i-go-to-invoice.JPG

    when i go to press invoice give me this message

  • MuthukumaranAX Profile Picture
    2,903 on at

    go to AOT, select this class and right click on the class. there should a option "compile"

  • khalid82 Profile Picture
    15 on at

    iam accountant, i dont have access to the AOT, I told our new IT manager ,may be we need to change some setting in AOT but he said he  does  know what the AOT,then he suggested to bring company to fix it.

    many forms and report i made it before now not existed after backups.

    do you think the configuration of backup is not  in a proper way ?

    do you think maybe the  new AOS is  not connected with database?

  • khalid82 Profile Picture
    15 on at

    invalid-range.JPG

    also when i go to the report to choose the date and go to select give me this message "invalid date"

    how to fix "invalid date"?

  • Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    The environment clearly is in a wrong state and trying to use it before it gets fixed looks like a waste of effort to me.

    There is nothing you can do as an accountant.

    The IT guys should review what was done (I don't know what you mean by "made reset for the server and made backup and restored the backup") and take some actions, such as fixing the current environment (compilation, DB sync etc.), if meaningful, restoring the system to the original state, deploying a new environment or so.

  • khalid82 Profile Picture
    15 on at

    I mean the IT guy  shout down the sql server because suspicious of virus as they claim, last backup was in 2-Jan-2023 . As We lost data of transactions for that date .

    Do you think there is a chance to fix the issue or its impossible and difficult ?

  • Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    I can't comment on how difficult it is without knowing more about what was done and what's wrong at the moment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans