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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Merging of object from nav 2013 r2 modifed to nav 2015

(0) ShareShare
ReportReport
Posted on by 1,751

i am trying to merging modified object from nav 2013r2 to nav 2015 using windows powershell ISE.

my question is i want to find all the conflicted object .?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    keoma Profile Picture
    32,729 on at

    for that you would need a "where used function" like in the OM Tools from idyn.

    follow www.idyn.nl/.../object-manager-advanced

    or statical prism

    follow http://www.stati-cal.com/

    also check out community.dynamics.com/.../34-where-used-34-as-simple-as-you-can-get-it

  • Verified answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

    Hi Javed,

    You can start like this -

    1. Make Sure that the Language Layer is same in NAV 2013 R2 base objects (Crouns Objects) and Nav 2013 R2 Custom Objects (Customer Objects).

    2. Create a object only database for both database (Cronus and Customer) and do following -

    a. Create a Batch on object table (exclude tabledata) which sets these properties with below values -

    > Modified - False.

    > Version List - Upgrade.

    > Day - Say Today.

    > Time - Say 12:00:00

    b. Run that batch on both the database. Once Executed export all objects from both database as text -

    > Base Crouns database - Standard.txt.

    > Customer Database - Custom.txt

    c. Once you have both the file use Compare powershell utility with these two files.

    Refer Here (Part 1 only -Compare) -

    saurav-nav.blogspot.in/.../application-merge-utilities-how-to-use_15.html

    d. The Result of Compare utility will be a set of delta files. No of files inside delta folder will be your object count.

    Hope it clears the doubt.

  • javedakhtar Profile Picture
    1,751 on at

    Hello Saurav Sir ,

    Sorry to asked but i didnt get what you mean by this

    ----------------------

    Create a object only database for both database (Cronus and Customer) and do following -

    a. Create a Batch on object table (exclude tabledata) which sets these properties with below values -

    > Modified - False.

    > Version List - Upgrade.

    > Day - Say Today.

    > Time - Say 12:00:00

    ---------------------------------------------------------------------------------------

    how can i do the above things

  • Verified answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

    Hey Javed,

    What I meant is -

    1. Creating object only database is - Instead of this step you can keep a backup of all objects as fob, as we are changing properties of the objects. Do keep FOB of both database as safe.

    2. Why we need to do this is - as powershell utility (or any auto merge utility) compare everything as text comparison.

    Sometime we just design and save object or change the version. It changes the Modified, version, date and Time Properties of objects. We don't want to consider those objects as actually there is no change except property.

    For Skipping those we need to set the properties of all objects as same.

    ** Hope you understand what I meant.

    You can create a Report with dataItem Object filtered for Object Type <> TableData & <> Menusuit.

    IN on aftergetrecord you can set it like -

    Modified := False

    VersionList := 'Upgrade'

    Date := Today

    Time := 12:00:00

    Run the Report and the changes that we wanted will happen in all objects.

  • javedakhtar Profile Picture
    1,751 on at

    Hello Saurav Sir

    i am  not seeing any changes in all the object';

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

    What u did?

  • javedakhtar Profile Picture
    1,751 on at

    Hello Saurav Sir

    i taken a dataitem as object

    in the DataItemTableView:=WHERE(Type=FILTER(<>TableData),Type=FILTER(<>MenuSuite))

    in the onaftergetrecord

    //

    Modified := FALSE;

    "Version List":= 'Upgrade';

    Date := TODAY;

    Time:=Time;

  • Verified answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

    DataItem, Table View - SORTING(Type,Company Name,ID) ORDER(Ascending) WHERE(Type=FILTER(<>TableData&<>MenuSuite))

    OnPreDataItem-

    Object.MODIFYALL(Modified,FALSE);

    Object.MODIFYALL(Date,TODAY);

    Object.MODIFYALL(Time,120000T);

    Object.MODIFYALL("Version List",'UPGRADE');

  • javedakhtar Profile Picture
    1,751 on at

    Sir

    Microsoft Dynamics NAV

    ---------------------------

    You cannot modify table data in the Object table. Modify the table definition instead.

    ---------------------------

    OK

    ---------------------------

    Getting this error

  • Verified answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at

    Are you using Developer License?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans