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.

  • Martin Dráb Profile Picture
    231,801 Most Valuable Professional on at
    RE: Wrong assignments after restoring a backup

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

  • khalid82 Profile Picture
    15 on at
    RE: Wrong assignments after restoring a backup

    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
    231,801 Most Valuable Professional on at
    RE: Wrong assignments after restoring a backup

    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
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup

    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"?

  • khalid82 Profile Picture
    15 on at
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup

    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?

  • MuthukumaranAX Profile Picture
    2,901 on at
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup

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

  • khalid82 Profile Picture
    15 on at
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup
    [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

  • khalid82 Profile Picture
    15 on at
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup

    How to compile it?

  • MuthukumaranAX Profile Picture
    2,901 on at
    RE: Need help for Microsoft dynamics 2009. Error wrong assignments after restore backup

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,933 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans