Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Item number must be specified.

(0) ShareShare
ReportReport
Posted on by 70

I trying to use a runnable class to post on a journal, but I'm getting Item number must be specified. Please I need help. Thanks.

req2.jpgreq3.jpg

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Item number must be specified.

    Hi, Do you want to execute this code in legal entity DAT. If not then either change the company of project or run this runnable class from the correct legal entity.

    ItemId would be in another legal entity, that might be the reason for this error. 

    community.dynamics.com/.../running-runnable-class-through-url-in-dynamics-365-for-operations

    Also, may I know why ItemId mapped in LedgerJournalTrans and the one specified to initFromInventTable statement is different.

  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Item number must be specified.

    Does Item **123 really exist in the system ?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans