Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Permission issue on execution of codeunit.

(0) ShareShare
ReportReport
Posted on by 255

Hello Everyone,

For i while i'm trying to make a 2013 tenant database upgrade to 2016. I use powershell to this, but when i sync the tenant, i get following error:

you do not have permission to run codeunit data upgrade. execute. I searched on forums, and someone had the same issue. I have a developer license, and importet it to the database. Can anybody provide me a workaround or a actual solution. 

The thing is, when i force sync the tenant, the error disapears, but i want to sync with validiate. 

I created myself as SUPER user on tenant database, but thats not enough i think

*This post is locked for comments

  • Suggested answer
    dkatson Profile Picture
    dkatson 2,263 on at
    RE: Permission issue on execution of codeunit.

    This is absolutely data problem, some data is corrupted

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Permission issue on execution of codeunit.

    Please close this post if your initial issue is solved and create a new one.

  • lynix_x Profile Picture
    lynix_x 255 on at
    RE: Permission issue on execution of codeunit.

    thanks for the reply Maneesha. I solved the permission issue, now when i run the upgrade, i get below error.

    CodeunitId : 104025

    FunctionName : UpdateItemNextCountingPeriod

    StartTime : 3/27/2017 1:37:57 PM

    Duration :

    State : FailedPendingResume

    Error : The UPG Item does not exist. Identification fields and values: No.='1000'

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Permission issue on execution of codeunit.

    Hi ,

    If you correctly install developer license and still you get this means you don't have manipulation access to DB

    make your user as DB user

  • lynix_x Profile Picture
    lynix_x 255 on at
    RE: Permission issue on execution of codeunit.

    i DID IT, and now it work. but when i ran upgrade process, got following error.

    Sync-NAVTenant : The schema synchronization may result in deleted data. The following destructive changes were detected:
    Table: 372, Payment Buffer
    Field: 170, Creditor No.: Length reduced
    Field: 171, Payment Reference: Length reduced
    Examples of code to migrate data:
    DataUpgradeMgt.SetTableSyncSetup(DATABASE::"Payment Buffer",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);

    I don't think it is an license issue now. I cannot continue the process.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Permission issue on execution of codeunit.

    when you say import, is it Upload? did you restart service after upload?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans