<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cage Code 00000</title><link>https://www.aras.com/community/f/getting-started/9409/cage-code-00000</link><description>Good day all. Would having a Cage Code of all 0&amp;#39;s cause a problem when a report is ran? I receive errors for some of my parts reports that indicate that I do not have permissions to run the report (I&amp;#39;m an Admin). When I try to run the report from the</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4783?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 18:20:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d24b56d6-0373-4a41-b41b-2c1297bf04e8</guid><dc:creator>Nathan</dc:creator><description>&lt;p&gt;Chris,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for everything.&amp;nbsp; Going through all of the Methods &amp;amp; what they are doing is on my list of things to do.&amp;nbsp; The more I learn about Aras, the more I am puzzled by the huge deviations that were done.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I can tell the&amp;nbsp;Parts List ItemType was used as a way to attach a scanned document that had old part lists on them and then add the parts to the Parts List.&amp;nbsp; Problem is, when they were adding things, they were adding parts, other parts lists, drawings, and documents to the &amp;quot;BOM&amp;quot; section.&lt;/p&gt;
&lt;p&gt;From what I can tell, I would have to create a report that would search through the Parts List for the parts, then go to those parts to reference the Parts List attached to the part &amp;amp; search that list, then start the process over again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It would have been a lot easier if they would have just used some of the standards set in Aras already.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you again for all of your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4781?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 18:06:15 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3008aa6d-2042-4fd3-ba85-7d9085710936</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;It would depend on the exact data model of the Part List ItemType. I&amp;#39;d recommend checking out our blog posts on AML (&lt;a href="/b/english/posts/aml-basics"&gt;Basics&lt;/a&gt;&amp;nbsp;and &lt;a href="/b/english/posts/advanced-aml-topics"&gt;Advanced&lt;/a&gt;) for some info on how an AML query is structured.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For a standard Part BOM, we have a data model&amp;nbsp;where a parent Part has a relationship to a child Part via a Part BOM. We can do a very simple query to get one level of this BOM by using the AML below.&lt;/p&gt;
&lt;div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;lt;AML&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Item&amp;nbsp;type=&amp;quot;Part&amp;quot;&amp;nbsp;action=&amp;quot;get&amp;quot;&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Relationships&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Item&amp;nbsp;type=&amp;quot;Part&amp;nbsp;BOM&amp;quot;&amp;nbsp;action=&amp;quot;get&amp;quot;&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;related_id&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Item&amp;nbsp;type=&amp;quot;Part&amp;quot;&amp;nbsp;action=&amp;quot;get&amp;quot;&amp;nbsp;/&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/related_id&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Item&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Relationships&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Item&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;lt;/AML&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;We can also take a slightly more advanced approach and use a&amp;nbsp;&lt;a href="/b/english/posts/special-aml-actions"&gt;special AML action&lt;/a&gt;&amp;nbsp;to get all of the levels of our Part BOM.&lt;/p&gt;
&lt;div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;lt;AML&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Item&amp;nbsp;type=&amp;quot;Part&amp;quot;&amp;nbsp;select=&amp;quot;name,item_number,id&amp;quot;&amp;nbsp;action=&amp;quot;GetItemRepeatConfig&amp;quot;&amp;nbsp;id=&amp;quot;YOUR_PART_ID&amp;quot;&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Relationships&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Item&amp;nbsp;type=&amp;quot;Part&amp;nbsp;BOM&amp;quot;&amp;nbsp;select=&amp;quot;related_id,quantity&amp;quot;&amp;nbsp;repeatProp=&amp;quot;related_id&amp;quot;&amp;nbsp;repeatTimes=&amp;quot;10&amp;quot;/&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Relationships&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Item&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;em&gt;&amp;lt;/AML&amp;gt;&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Since your environment has a customized data model. You would need to look to see how the Part List and Part are used to construct a full BOM.&lt;/p&gt;
&lt;p&gt;As an aside, it worries me a bit when SQL is used so prevalently. I understand you inherited this system, so if you&amp;#39;re taking over administrating this database, I&amp;#39;d recommend making a note to take a look at the methods that use SQL stored procedures. When you&amp;#39;re more comfortable working with Aras Innovator, it might be good to revisit these methods and rewrite them to avoid calling SQL directly. While there are times when using SQL is appropriate (namely when performance is very bad), using AML will make the code more maintainable and will ensure that the logic follows the Aras permission model.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4779?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 17:23:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2d65056f-fd69-42ba-8f7e-e503c6da2494</guid><dc:creator>Nathan</dc:creator><description>&lt;p&gt;Christopher,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the recommendations.&amp;nbsp; I was wondering what the sp_name was, I have seen it in a lot of the methods I have looked at.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the method, it looks like it is calling a process from the SQL server.&amp;nbsp; Unfortunately, I have not gotten access to the SQL server yet.&lt;/p&gt;
&lt;p&gt;Since this is an odd thing, any recommendations for pulling a BOM report when all of the parts are referenced through Parts List ItemTypes instead of the part itself?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you again for all of your help with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4778?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 16:41:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:46b7c0d9-8369-4a5f-95c2-298da9d12f98</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Nathan,&lt;/p&gt;
&lt;p&gt;Thanks again for the additional info. For a simple report, the information you gave would probably be enough, but looking at the Report Query, there&amp;#39;s a couple other places that you&amp;#39;ll need to check.&lt;/p&gt;
&lt;p&gt;The action of the query isn&amp;#39;t doing a simple&amp;nbsp;&lt;em&gt;get&lt;/em&gt;. Instead it&amp;#39;s calling a custom Method:&amp;nbsp;&lt;em&gt;s_Indentured_Drawing_List&lt;/em&gt;. You can look at the source code for this Method inside of your instance by logging in as an admin and searching for it under&amp;nbsp;&lt;strong&gt;TOC &amp;gt; Administration &amp;gt; Methods&lt;/strong&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Additionally, the attribute&amp;nbsp;&lt;em&gt;sp_name=&amp;quot;s_BOM_Quantity_RollUp&amp;quot;&lt;/em&gt; caught my eye. I can&amp;#39;t be 100% since this is a custom method, but based on the name, I&amp;#39;d guess that this method is also calling a SQL stored procedure (sp) called&amp;nbsp;&lt;em&gt;s_BOM_Quantity_RollUp&lt;/em&gt;. You&amp;#39;ll likely have to look at that stored procedure directly in the database through SQL Server Management Studio.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I&amp;#39;m correct about the SQL stored procedure, then the error could be caused either by the method code or the stored procedure. I&amp;#39;d try looking for the name in the original error message&amp;nbsp;&lt;strong&gt;DataSet1&lt;/strong&gt; in&amp;nbsp; both places to try to track down where the error is actually happening. If the error is in the method code, you can check out&amp;nbsp;our blog post on&amp;nbsp;&lt;a href="/b/english/posts/debugging-in-aras-innovator"&gt;debugging inside of Innovator&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please let me know if this is indeed calling a SQL procedure. In general, we strongly discourage using direct SQL for queries as it bypasses the Aras permission model, and there&amp;#39;s almost always a way to do the same query using AML alone.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4773?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 15:27:20 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:52c1f992-d275-48f1-8858-ba516866efd4</guid><dc:creator>Nathan</dc:creator><description>&lt;p&gt;Here is the Report information.&amp;nbsp; I&amp;#39;m still learning the system, so I&amp;#39;m sure there is something that I am missing.&lt;/p&gt;
&lt;p&gt;Name:&amp;nbsp; s_BOM Quantity RollUp&lt;/p&gt;
&lt;p&gt;Type:&amp;nbsp; Item&lt;/p&gt;
&lt;p&gt;Location:&amp;nbsp; Client&lt;/p&gt;
&lt;p&gt;Target:&amp;nbsp; One Window&lt;/p&gt;
&lt;p&gt;Method:&amp;nbsp; N/A&lt;/p&gt;
&lt;p&gt;Label:&amp;nbsp; BOM Quantity RollUp&lt;/p&gt;
&lt;p&gt;Description:&amp;nbsp; Displays all parts of an assembly &amp;amp; subassemblies below it, including quantities of each of those parts for the entire structure&lt;/p&gt;
&lt;p&gt;Report Query:&lt;/p&gt;
&lt;p&gt;&amp;lt;Item type=&amp;quot;s_Part&amp;quot; action=&amp;quot;s_Indentured_Drawing_List&amp;quot; part_id=&amp;quot;{@id}&amp;quot; sp_name=&amp;quot;s_BOM_Quantity_RollUp&amp;quot;/&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4772?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 15:20:48 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f8c0cd99-8a43-482c-aa04-62c8bfbad6cf</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Thank you for the additional info. :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since this is a customized data model, could you also provide some more specifics about the report to help us diagnose the issue? Is this a Report item inside of Innovator (&lt;strong&gt;TOC &amp;gt; Administration &amp;gt; Reports&lt;/strong&gt;) or an external report in something like SQL Server Reporting Services? What query is this report running exactly?&lt;/p&gt;
&lt;p&gt;Could you also provide some more details on the data model with Parts List? I&amp;#39;m not sure I understand the added value of wrapping the Parts and Documents inside of the Parts List instead of relating the Documents directly to the Parts.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4769?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 15:03:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:617fd213-f8ec-460c-a0c9-a0cc1170989d</guid><dc:creator>Nathan</dc:creator><description>&lt;p&gt;Christopher,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Good day.&amp;nbsp; CAGE stands for Commercial and Government Equipment.&amp;nbsp; It is one of the fields that we have in our Parts.&amp;nbsp; The previous care takers of our database created a Parts List ItemType where the document and all of the parts are attached to.&amp;nbsp; Then the Part pulls the Parts List to display, instead of using the Part and BOM feature built into the system.&amp;nbsp; I have a report that is supposed to act like the BOM reports, but a couple of them lock up the system and the one that does run, has errors until I can get to a low enough level to run it.&amp;nbsp; I have been trying to figure out why the report produces an error, but have not had much luck so far.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are a lot of things that I have noticed wrong about this.&amp;nbsp; There are Parts Lists,&amp;nbsp;Drawings, and&amp;nbsp;Documents&amp;nbsp;inside of Parts Lists.&amp;nbsp; I&amp;#39;m not sure what exactly is causing the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cage Code 00000</title><link>https://www.aras.com/community/thread/4768?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 14:53:34 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:34d42401-ef05-443d-afdc-6317b50118be</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Nathan,&lt;/p&gt;
&lt;p&gt;Could you clarify what you mean by &amp;quot;Cage Code&amp;quot;? Do you mean the ID of the item?&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>