<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muhammad Imran Qasmi on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Imran Qasmi on Medium]]></description>
        <link>https://medium.com/@mimranqasmi967?source=rss-745b9ae611c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B7v2ckoCSxJrFyFyJlyZnw.jpeg</url>
            <title>Stories by Muhammad Imran Qasmi on Medium</title>
            <link>https://medium.com/@mimranqasmi967?source=rss-745b9ae611c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:10:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mimranqasmi967/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DB sync failed after moving objects between models in D365 F&O]]></title>
            <link>https://medium.com/@mimranqasmi967/db-sync-failed-after-moving-objects-between-models-in-d365-f-o-fd0ab9122906?source=rss-745b9ae611c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd0ab9122906</guid>
            <dc:creator><![CDATA[Muhammad Imran Qasmi]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 08:09:33 GMT</pubDate>
            <atom:updated>2025-12-03T08:09:33.955Z</atom:updated>
            <content:encoded><![CDATA[<p>When working in Microsoft Dynamics 365 Finance &amp; Operations, it’s common to reorganize customizations by moving objects from one model to another. However, after performing this task, many developers encounter a critical issue during <strong>database synchronization. </strong>During synchronization, you may see an error similar to:</p><p><em>Microsoft.Dynamics.AX.Metadata.Storage.MetadataReadCrossAssemblyDuplicateException: <br>Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies.</em></p><p>This error typically occurs after moving objects from one model into another model.</p><p><strong>💡Why This Happens</strong></p><p>This is a <strong>duplicate metadata</strong> issue. When you drag-and-drop objects (classes, tables, forms, extensions) into a new model:</p><ul><li>Visual Studio <strong>creates a new copy</strong> of the object under the new model.</li><li>But the <strong>old copy still exists</strong> in the previous model’s physical folder.</li><li>During build, D365 F&amp;O loads metadata from <strong>all models</strong>, so it finds: One object in the old model and One object in the new model.</li></ul><p>This results in:</p><p>⚠️ “The same metadata artifact has been defined in multiple assemblies.” The system doesn’t know which definition to use → <strong>Synchronization fails</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd0ab9122906" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Move the objects from one model to another — D365 FO]]></title>
            <link>https://medium.com/@mimranqasmi967/move-the-objects-from-one-model-to-another-d365-fo-0a16b9f1e470?source=rss-745b9ae611c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a16b9f1e470</guid>
            <dc:creator><![CDATA[Muhammad Imran Qasmi]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 07:52:31 GMT</pubDate>
            <atom:updated>2025-12-03T07:52:31.382Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://anithasantosh.wordpress.com/2018/01/18/move-the-objects-from-one-model-to-another-d365-fo/">Move the objects from one model to another — D365 FO</a></h3><p>When working in Microsoft Dynamics 365 Finance &amp; Operations, you may encounter situations where objects need to be moved from one model to another. A common example is restructuring your customization layers, separating extensions, or aligning development to new architecture standards.</p><p>Many developers take the manual route — copying object files from one model folder to another in the AOSService\PackagesLocalDirectory. While this works for small numbers of objects, it becomes risky and tedious when the object count increases.</p><p>In order to move the objects from one model to another model, we opt to copy -paste from original model’s physical folder to destination model’s folder. This is feasible when we have limited objects. but if the object count is more, this approach is tedious. So here is another way to move the objects from one model to another.</p><ol><li>Open the project which has all the objects.</li><li>In the same solution, create another project and set its model to the new one .</li><li>Drag and drop the objects from the above project to the new one .</li><li>Sync and Rebuild.</li><li>Now the objects are ready in new model .</li></ol><p>This way our job becomes easy and we can be sure the objects are not missed because there are chances of missing the objects when they are moved across physical locations.</p><p><strong>Important Note: Label Files Cannot Be Moved Using This Method:</strong></p><p>Label files (e.g., XYZ.en-US.label.txt) behave differently from standard application objects. They cannot be moved by drag-and-drop between projects. Why?</p><ul><li>Label files are not tied to Visual Studio projects in the same way as classes/tables.</li><li>Each model has its <strong>own label module</strong>, and labels belong permanently to that module.</li></ul><p><strong>What You Must Do Instead</strong></p><p>Create a New Label File in the New Model</p><ul><li>Go to <strong>Dynamics 365 → Labels → Create Label File</strong></li><li>Assign it to the target model.</li><li>Recreate or copy/paste the labels manually inside the label editor.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a16b9f1e470" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring your D365 F&O Environment with LCS]]></title>
            <link>https://medium.com/@mimranqasmi967/monitoring-your-d365-f-o-environment-with-lcs-19609411d17e?source=rss-745b9ae611c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/19609411d17e</guid>
            <dc:creator><![CDATA[Muhammad Imran Qasmi]]></dc:creator>
            <pubDate>Tue, 27 May 2025 21:38:28 GMT</pubDate>
            <atom:updated>2025-05-27T21:38:28.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft D365 F&amp;O offers a robust Environment Monitoring tool within Lifecycle Services (LCS) to help administrators and IT professionals oversee system health, performance metrics, and user activities. This guide provides a detailed walkthrough of accessing and utilizing this tool effectively.</p><h3><strong>Accessing the Environment Monitoring Tool:</strong></h3><ol><li><strong>Sign in to LCS</strong>: Navigate to <a href="https://lcs.dynamics.com/">https://lcs.dynamics.com</a> and log in with your credentials.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*akmxNYrqye_iO73BPOrakw.png" /></figure><ol><li><strong>Select Your Project</strong>: From the list of available projects, click on the one associated with your D365 F&amp;O environment.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*cU9OYOhLQ-YuvcSWFk3Stg.png" /></figure><ol><li><strong>Open Environment Details</strong>: Within your project dashboard, locate the <strong>Environments</strong> section and click on the specific environment you wish to monitor.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*yyCcQw11tSpVk_QgFimOAg.png" /></figure><ol><li><strong>Access Environment Monitoring</strong>: In the environment details page, find the <strong>Monitoring</strong> section and click on <strong>Environment monitoring</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5ITRsfNmHpPY7n_hIeSvg.png" /></figure><p><strong>Navigating the Environment Monitoring Dashboard:</strong></p><p>Upon accessing the Environment Monitoring dashboard, you’ll encounter several tabs and sections:</p><h3>1. Overview Tab</h3><p>Provides a summary of the environment’s health.</p><p><strong>AOS and Batch Server Status</strong>: Displays the number of Application Object Servers (AOS) and batch servers receiving traffic.</p><p><strong>System Health Indicators</strong>: Shows key metrics like CPU usage, memory consumption, and error rates.</p><h3>2. Activity Tab</h3><p>Allows you to query raw logs with predefined filters for common events.</p><p><strong>Long Queries</strong>: Identify SQL queries that take an unusually long time to execute.</p><p><strong>Deadlocks</strong>: Detect situations where two or more operations are waiting indefinitely for each other to release resources.</p><p><strong>Crashes and Errors</strong>: Monitor unexpected system crashes or error messages.</p><p><strong>User Sessions</strong>: Track distinct user sessions and activities.</p><p>You can also export these logs to a CSV file for further analysis.</p><h3><strong>3. Health Metrics Tab</strong></h3><p>Offers visual charts to monitor system performance over time:</p><p><strong>CPU and Memory Usage</strong>: Line charts display usage trends, helping identify performance bottlenecks.</p><p><strong>SQL Execution Metrics</strong>: Analyze SQL execution times and identify slow-running queries.</p><h3><strong>4. SQL Insights Tab</strong></h3><p>Provides advanced SQL performance analysis tool.</p><p><strong>Live View</strong>: Monitor currently executing SQL statements and identify blocking issues.</p><p><strong>Queries</strong>: Access predefined queries to retrieve metrics on demand, such as active plan guides or expensive queries.</p><p><strong>Actions</strong>: Perform predefined actions to mitigate issues, like terminating blocking statements.</p><p><strong>Performance Metrics</strong>: Review the most resource-intensive queries based on execution count, duration, CPU time, and more.</p><h3><strong>Practical Use Case: Investigating High CPU Usage:</strong></h3><p><strong>Access Health Metrics</strong>: Navigate to the <strong>Health Metrics</strong> tab to view CPU usage trends.</p><p><strong>Identify Spikes</strong>: Look for periods with unusually high CPU usage.</p><p><strong>Drill Down with SQL Insights</strong>: Switch to the <strong>SQL Insights</strong> tab to examine live SQL statements and identify any long-running or blocking queries during those periods.</p><p><strong>Take Action</strong>: If necessary, use the <strong>Actions</strong> feature to terminate problematic queries or processes.</p><h3>Important Considerations:</h3><p><strong>Data Retention</strong>: Telemetry data is retained for 30 days, allowing for historical analysis.</p><p><strong>Access Restrictions</strong>: Environment Monitoring is available for Tier 2+ environments (UAT and Production) and requires appropriate permissions.</p><p><strong>Real-Time Monitoring</strong>: While data is near real-time, there may be slight delays in telemetry data availability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19609411d17e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[c]]></title>
            <link>https://medium.com/@mimranqasmi967/c-b5ec670b8e6f?source=rss-745b9ae611c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5ec670b8e6f</guid>
            <dc:creator><![CDATA[Muhammad Imran Qasmi]]></dc:creator>
            <pubDate>Fri, 23 May 2025 22:34:26 GMT</pubDate>
            <atom:updated>2025-05-23T22:34:26.594Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WErpVumZsCtqUYRvlRrSCg.jpeg" /></figure><p><strong>Understanding </strong><strong>CacheLookup table property in D365 F&amp;O</strong></p><p>The <strong>CacheLookup</strong> property in D365 F&amp;O defines how data from a table is cached during runtime. Properly setting this property can significantly <strong>improve performance</strong> and ensure correct data handling, especially in large-scale systems.</p><p>There are four caching levels available:</p><ol><li><strong>None </strong>: When CacheLookup is set to None, no caching is applied.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*Ql6IGhrvJKdXn1YjA7gtvw.png" /></figure><p>2. NotInTTS: When CacheLookup is set toNotInTTS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*ka49LwsPXRgEfXYKNKedeQ.png" /></figure><p>NotInTTS:Not in Transaction Tracking Scope</p><p>3. <strong>Found: </strong>When CacheLookup is set to Found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*95UTMxLiGocxyrjVnLqbRA.png" /></figure><p>4. <strong>EntireTable: </strong>When CacheLookup is set to EntireTable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*sYoRP9uHNoNU5Evx6PSNDA.png" /></figure><h4>Key Considerations</h4><ul><li>Cached data is only refreshed when records are updated or explicitly flushed.</li><li>Avoid using EntireTable on large or frequently updated tables, as it can negatively impact system performance.</li><li>Found and EntireTable are best suited for static reference or parameter tables.</li></ul><p>Choosing the right CacheLookup level is crucial for maintaining a balance between performance and data accuracy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5ec670b8e6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>