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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

(0) ShareShare
ReportReport
Posted on by 2,475

We made Batch job to calculate statement for some reason we restart AOS while calculate statement  was working ,by anyway batch job create a lot of statement we clear and delete almost except 3  then When we try to clear the statement that create by batch then interrupted by stop AOS the error appear "Quantity 1.00  cannot be returned because items have already been returned or marked as open transactions."

Kindly help to solve this issue , We need to clear these statement .

*This post is locked for comments

I have the same question (0)
  • Albrecht Prieler Profile Picture
    857 on at
    RE: Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

    Hello,

    check if items where already returned, cause you can only return same quantity as original quantity if you are using original inventtransid for return.

  • Verified answer
    w.sallam Profile Picture
    2,259 on at
    RE: Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

    Please try the following script on SQL Server:

     

    update RETAILTRANSACTIONSALESTRANS
    set INVENTTRANSID = ''
    where STATEMENTID in ('XXXXXXX')   -- put your statement ID 
    and qty > 0v
    and TRANSACTIONSTATUS = '1'
    and inventtransid != ''

    after the script you can clear the statement and delete it.

    if you calculate the statement again you will get the same error so you can apply this hotfix  KB 4013834 “InventTransId is assigned to retail sales transactions with status Voided” to prevent this issue from occurring again . 

     https://fix.lcs.dynamics.com/Issue/Details?kb=4013834&bugId=3811615

  • Arshad Ahmad Profile Picture
    100 on at
    RE: Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

    Hi!

    I'm having same issue I ran this script on SQL Server but still I am having the same the issue.

    Is there something else to be done?

    Regards

    Arshad

  • Community Member Profile Picture
    on at
    RE: Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

    Hi Ahmed, did you get the solution. Please provide the solution. Thanks in advance.

  • Suggested answer
    Khaled Ahmed Profile Picture
    2,475 on at
    RE: Error when Clear statement "Quantity 1.00 cannot be returned because items have already been returned or marked as open transactions."

    Please try the following script on SQL Server:

    update RETAILTRANSACTIONSALESTRANS

    set INVENTTRANSID = ''

    where STATEMENTID in ('XXXXXXX')   -- put your statement ID

    and qty > 0v

    and TRANSACTIONSTATUS = '1'

    and inventtransid != ''

    after the script you can clear the statement and delete it.

    if you calculate the statement again you will get the same error so you can apply this hotfix  KB 4013834 “InventTransId is assigned to retail sales transactions with status Voided” to prevent this issue from occurring again .

    fix.lcs.dynamics.com/.../Details;bugId=3811615

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans